Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By mattmcdougall on
So I am using the theme 'MD foto' (no documentation on their site for this issue)
I am using their module 'MD Foto Features'
which prerequisites 'features, Ctools, Media, and Context'
It creates a new content type, 'photo' to upload my work into. Any time I use the content creator and try to upload any files I got the following error
"Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20736 bytes) in /home/content/35/11382935/html/modules/system/image.gd.inc on line 237"
I am wondering how to fix this.
I have tried adjusting the .htaccess with no avail.
thanks
Comments
You currently have 64MB of
You currently have 64MB of memory available for php, you should try increasting that to e.g. 96 or 128 MB. In the php settings part of your settings.php, add:
ini_set('memory_limit', '128M');
Or read more about increasing PHP memory limit.
P.S. in general, it's useful to include information on what exactly you have already tried, in this case in your .htaccess.
Thanks
That worked.
I was more confused where the PHP memory override needed to go. I originally went to sites/default/default.settings.php and couldn't find where the memory section was.
I added and it worked.
Thanks for the quick reply
Thanks for the help
Got it worked... thank you ar-jan.
=-=
per: https://drupal.org/node/644164 please edit the opening post and move it to the 'post installation' forum.Thanks.Its cool,
Its cool,
working on my website too.
I was facing this problem from past 4 months. Tried .htaccess and php.ini even i called my hosting company too.
finally got the solution.
Thanks
Ravi Bhadauria
https://www.admecindia.co.in
https://www.web-development-institute.com
https://www.graphic-design-institute.com
https://www.cadtraininginstitute.com
Thanks ar-jan
it works for me i just added the following line in settings.php
ini_set('memory_limit', '256M');
Hi, its works for me too, i
Hi, its works for me too, i just added the following line in settings.php
ini_set('memory_limit', '256M');
Hi Guys,
Hi Guys,
I have created a view using Search API Index to work with FACETS. I am trying to show around 4500 nodes on the map using IP GEOLOC and Leaflet module.
But I am running out of memory everytime. What could be the solution? I have tried setting the Memory limit 1024MB though its not recommended, still no luck. Also even if we assign so much Memory, I believe this would still take lot of time to load and eventually might run into timeout or show results after a long long load.
What are the best solutions? Please help!
=-=
your question deserves its own thread.
Hello,
Hello,
Have you found solution for this?
Thanks
Set memory_limit=-1
If you have permission of php.ini, please set the memory limit to -1. It will resolve the issue
Image Magic
Hello, you can try install ImageMagic module. Try to check - Change image resolution to 72 ppi, Enable GraphicsMagick support and Convert colorspace to RGB. This works for me.