I've just setup a default Drupal install along with the image module. The GD2 toolkit is installed and working properly. However, when I try to upload a jpg image into a gallery, I get a blank page, and I see this in my Apache log:
[client 127.0.0.1] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1980 bytes) in /var/www/html/drupal/includes/image.inc on line 221, referer: http://localhost/drupal/?q=node/add/image
What does this mean? The jpg is only 160 KB and the site itself is only taking up about 3 MB. How could this exced an 8 MB limit, and where is this limit set?
Any help is appreciated.
Thanks, Chris
What does this mean? The jpg is only 160 KB and the site itself is only taking up about 3 MB. How could this exced an 8 MB limit, and where is this limit set?
This is the default memory limit of a single PHP process. Generally, for any "major" application like Drupal, I don't run PHP with anything less than 24M per process. Look for "memory_limit" in your php.ini file (which could be located in /etc/, /etc/httpd/, /etc/apache/, /usr/local/etc/ - depends on your setup). Change it to 24M, then restart the Apache webserver and you should be fine.
Morbus Iff wrote:
What does this mean? The jpg is only 160 KB and the site itself is only taking up about 3 MB. How could this exced an 8 MB limit, and where is this limit set?
This is the default memory limit of a single PHP process. Generally, for any "major" application like Drupal, I don't run PHP with anything less than 24M per process. Look for "memory_limit" in your php.ini file (which could be located in /etc/, /etc/httpd/, /etc/apache/, /usr/local/etc/ - depends on your setup). Change it to 24M, then restart the Apache webserver and you should be fine.
That fixed the problem. Thanks for your help!
Chris