Link to home
Start Free TrialLog in
Avatar of tyronenoel
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/administrator/components/com_phocagallery/libraries/phocagallery/image/imagemagic.php on line 214

this is occuring without even uploading images

Please assist

Thanks
Avatar of Aegil
Aegil
Flag of United Kingdom of Great Britain and Northern Ireland image

you need to increase the php memory limit. There will be a directive like the following in the php.ini file

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.
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/
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"
ASKER CERTIFIED SOLUTION
Avatar of ziceva
ziceva
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tyronenoel
tyronenoel

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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
also check to see if there is already an entry in the htaccess file already and change it accordingly
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