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

Matt McDougall

A lost and confused Drupal user. PLEASE HELP!

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.


Ravi Bhadauria
Web Developer & Educator’s picture

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

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

Yuvaraj A N

surya.sairaam’s picture

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

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