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/ on line 237"

I am wondering how to fix this.

I have tried adjusting the .htaccess with no avail.



ar-jan’s picture

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.

mattmcdougall’s picture

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

skrtvm’s picture

Got it worked... thank you ar-jan.

VM’s picture

per: please edit the opening post and move it to the 'post installation' forum. Thanks.

ravi_admec’s picture

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.’s picture

it works for me i just added the following line in settings.php

ini_set('memory_limit', '256M');

surya.sairaam’s picture

Hi, its works for me too, i just added the following line in settings.php

ini_set('memory_limit', '256M');

ravikiran@gocoop’s picture

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!

VM’s picture

your question deserves its own thread.

abarpetia’s picture

Have you found solution for this?


KaLiGuLasz’s picture

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.