-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory exhaustion caused by the buildLink method #105
Comments
Thanks for the report @jonchikly. To make it easier to investigate the issue I'd be great if you could send an email to support@contentful.com and include your space ID and API key. Please mention this issue. I'd also need to know what memory limit is configured in PHP and what query was performed when this happens. |
Another user has reported the same issue allowing me to reproduce it. The problem seem to happen with very complex content models (many references) that contain a loop in the response. The It's unlikely that we'll fix this bug this week. If you're affected please revert back to version 0.6.5, that is the newest version not being affected. |
Great @realityking. Thank you for your feedback. I am following up on this via email. |
… creates too many objects. The new behavior is, that any entry that appears multiple times in the graph of the response will be the same instance. Fixes #105
I've created #113 that should fix this issue. I'd be great if you could test if @jonchikly. Thanks you. |
… creates too many objects. The new behavior is, that any entry that appears multiple times in the graph of the response will be the same instance. Fixes #105
… creates too many objects. The new behavior is, that any entry that appears multiple times in the graph of the response will be the same instance. Fixes #105
… creates too many objects. The new behavior is, that any entry that appears multiple times in the graph of the response will be the same instance. Fixes #105
… creates too many objects. The new behavior is, that any entry that appears multiple times in the graph of the response will be the same instance. Fixes #105
Thank you @realityking. I will have a look and let you know if anything. Have a good day |
The code is stuck in what seems to be an infinite loop which causes a memory exhaustion when getting resources from the resource builder.
The issue seems to come from the buildLink method in the ResourceBuilder class (vendor/contentful/contentful/src/Delivery/ResourceBuilder.php)
Commenting out the lines below fix the issue:
Is there a fix for that?
The text was updated successfully, but these errors were encountered: