tyronenoel
asked on
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2408 bytes) in /home/swishclu/public_html/administrator/components/com_phocagallery/libraries/phocagallery/image/imagema
Hi There
I have a client who is battling with phocagallery
the moment you go into the images tab you get the following error
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2408 bytes) in /home/swishclu/public_html /administr ator/compo nents/com_ phocagalle ry/librari es/phocaga llery/imag e/imagemag ic.php on line 214
this is occuring without even uploading images
Please assist
Thanks
I have a client who is battling with phocagallery
the moment you go into the images tab you get the following error
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2408 bytes) in /home/swishclu/public_html
this is occuring without even uploading images
Please assist
Thanks
The below gives more information on doing this. I would recommend changing it globally through the php.ini file
http://www.ducea.com/2008/02/14/increase-php-memory-limit/
http://www.ducea.com/2008/02/14/increase-php-memory-limit/
Another place to look for php.ini on some Linux systems is in /etc/httpd
If you are using Linux (or some other *nix), and you can't find the php.ini file try this
# find /etc -name "php.ini"
If you are using Linux (or some other *nix), and you can't find the php.ini file try this
# find /etc -name "php.ini"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
apologies i didnt explain this correctly, it works in the front end it is just when you go into the administrators panel is when you get the error, i am going to try the following
Second, you could edit/create the file with the name .htaccess in your Document Root and add
php_value memory_limit 256M
ziceva i havent worked much in the .htaccess file, is there a specific place within the file i must insert the comment?
Thanks
Second, you could edit/create the file with the name .htaccess in your Document Root and add
php_value memory_limit 256M
ziceva i havent worked much in the .htaccess file, is there a specific place within the file i must insert the comment?
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
also check to see if there is already an entry in the htaccess file already and change it accordingly
ASKER
Hi Guys
I found the problem, it was a partially uploaded massive picture that had been uploaded, the .htaccess caused a 500 configuration error and the php.ini didnt work as my server host has allowoverride off
but i will award points as they were both valid answers
I found the problem, it was a partially uploaded massive picture that had been uploaded, the .htaccess caused a 500 configuration error and the php.ini didnt work as my server host has allowoverride off
but i will award points as they were both valid answers
memory_limit = 64M
Change it to 128M or something similar and it should resolve your issue.
The php.ini file is usually in /etc/php5/php.ini. once you have updated this it should resolve your issue. Your web host should be able to help you with this.