• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1403
  • Last Modified:

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
0
tyronenoel
Asked:
tyronenoel
  • 2
  • 2
  • 2
  • +2
2 Solutions
 
AegilCommented:
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.
0
 
AegilCommented:
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/
0
 
Hugh McCurdyCommented:
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"
0
Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

 
zicevaCommented:
Alternatively, if you don't have access to the php.ini file, you have to options:

Modify this parameter at runtime by calling
ini_set('memory_limit','256M');
In the php script (being a joomla platform you could get away with putting this somewhere on the top of index.php)

Second, you could edit/create the file with the name .htaccess in your Document Root and add

php_value memory_limit 256M
0
 
tyronenoelAuthor Commented:
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
0
 
lazysheepmediaCommented:
You could putt he php.ini file in the root of your directory (site) or in the admin folder

The entry for the .htaccess file you can put at the end but remember to put a line space at the end of the file - please also make sure you have the dot at the beginning of the file name "."htaccess#

regards

Mark
0
 
lazysheepmediaCommented:
also check to see if there is already an entry in the htaccess file already and change it accordingly
0
 
tyronenoelAuthor Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

  • 2
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now