Allowed Memory Size Exhausted
Permalink 1 user found helpful
I have a new site that is displaying the following error:
Allowed memory size of 268435456 bytes exhausted (tried to allocate 79847425 bytes)
I know there have been several threads on this issue but none of the fixes mentioned have worked for me. I am running (newly downloaded) 8.3.1 and hosting on Arvixe. I'm still running an older version for my other site.
My php.ini file showed I already had a 256MB memory limit, which should be plenty. I edited that line to be 512MB, which did not fix the problem. I also tried disabling and emptying the cache on my browser.
Any ideas on what is ging on here? This is a new url (addon domain) I am developing. I just loaded a new theme and started editing and adding photos with no issue. After adding a particular photo it crashed, and I can't access the site at all.
Any help would be much appreciated!
Allowed memory size of 268435456 bytes exhausted (tried to allocate 79847425 bytes)
I know there have been several threads on this issue but none of the fixes mentioned have worked for me. I am running (newly downloaded) 8.3.1 and hosting on Arvixe. I'm still running an older version for my other site.
My php.ini file showed I already had a 256MB memory limit, which should be plenty. I edited that line to be 512MB, which did not fix the problem. I also tried disabling and emptying the cache on my browser.
Any ideas on what is ging on here? This is a new url (addon domain) I am developing. I just loaded a new theme and started editing and adding photos with no issue. After adding a particular photo it crashed, and I can't access the site at all.
Any help would be much appreciated!
Uploading images with a large number of pixels is likely to exhaust your memory, because c5 tries to make thumbnail images for them. Can you upload smaller images?
Yes, I can upload smaller images in the future, but right now I'm completely unable to access the site due to the error. Any ideas on how to fix?
The screenshot below is all I have. No dashboard, no nothing.
The screenshot below is all I have. No dashboard, no nothing.
If you close the browser and restart it, then browse back to your site, do you get that error message without doing anything else?
Yes I get it every time. I also tried de-installing and re-installing the theme. Got the error on both my home and work computer after wiping browser history on both.
can you access your dashboard ? accessing directly /index.php/login ?
No, unfortunately I'm not able to access the dashboard at all. I'm guessing any fix will have to be done through my cpanel.
Just a suggestion, but I'd try temporarily setting it back to 512MB (your error message still showing 256) - but you might have to wait a while or maybe kill off the PHP if it's a CGI process. I haven't used Arvixe hosting before, but you could certainly ask them.
If you can make it past that, there are max thumbnail settings in the dashboard:
http://yoursite.com/index.php/dashboard/system/files/thumbnails/opt...
And something that I believe should never be larger than a reasonable display size:
http://yoursite.com/index.php/dashboard/system/files/image_uploadin...
These sort of things really should be handled by the core better. But then again, I never did care about Retina or any other proprietary thing that hurt everybody else - a rant for another time...
If you can make it past that, there are max thumbnail settings in the dashboard:
http://yoursite.com/index.php/dashboard/system/files/thumbnails/opt...
And something that I believe should never be larger than a reasonable display size:
http://yoursite.com/index.php/dashboard/system/files/image_uploadin...
These sort of things really should be handled by the core better. But then again, I never did care about Retina or any other proprietary thing that hurt everybody else - a rant for another time...
Can you copy the error Details?
Hey lizcook
We had a similiar issue with thumbnails. And we solved it by changing the processing image library form GD (standard) to imagick (installed on some hosting).
Imagick does a better job for generating thumbnails and did not use as much memory as GD library. So we managed to generate them.
You can try this by changing a config file on your server.
Look if there is a concrete.php in /application/config/ folder. If there is no such file you can create one. I have attached the setting as an example (concrete.zip contains the php file with the settings).
Place this snippet in the return array( ………… ) section.
After that try to call your site again. Perhaps you need to refresh your browser.
If it does not work. You can always revert your changes.
best regards,
Roland
We had a similiar issue with thumbnails. And we solved it by changing the processing image library form GD (standard) to imagick (installed on some hosting).
Imagick does a better job for generating thumbnails and did not use as much memory as GD library. So we managed to generate them.
You can try this by changing a config file on your server.
Look if there is a concrete.php in /application/config/ folder. If there is no such file you can create one. I have attached the setting as an example (concrete.zip contains the php file with the settings).
Place this snippet in the return array( ………… ) section.
After that try to call your site again. Perhaps you need to refresh your browser.
If it does not work. You can always revert your changes.
best regards,
Roland
Thanks Roland, this is a great idea – I'll try setting this up to avoid the issue on the future.
I had not put too many hours of work into the site yet so ended up completely uninstalling and re-installing Concrete5. Since then I've been shrinking all my image files and uploading them one at a time, and there has not been an issue so far.
I had not put too many hours of work into the site yet so ended up completely uninstalling and re-installing Concrete5. Since then I've been shrinking all my image files and uploading them one at a time, and there has not been an issue so far.
Thank you for this.
Roland... you rock! This fixed it for me.
if nothing works you can reset your site with all of your contents... bin/concrete c5:reset