• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Image Gallery not working

O

om4knowledge

Guest
when a few clients try to view their galleries they get....
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4096 bytes) in /home/USER/public_html/include/PEAR/Image/Transform/Driver/GD.php on line 146


looks fine while editing, the error comes when view a published site.

The images don't appear to be that large.

What can we do?
 
It is definitely lack of memory issue.
Try to increase 'memory_limit' value in php.ini file on your server with published website. Most probably it will be /etc/php.ini file:

memory_limit = 32M

after that restart apache service and check it one more time.
 
memory issue.

I'm using cPanel.
The user that is having the problem has an emtpy etc/ directory.

Where can I find the php.ini?
Thanks.
 
Try to put following file into site's directory:

# cat phpinfo.php
<? phpinfo(); ?>

and run it through the browser. There will find "Configuration File (php.ini) Path ". Use this file and do not forget to restart apache service after changes.
 
what do i name the file?
just put it in public_html?
thanks.
 
Just name it as phpinfo.php and yes, put it into public_html folder. After that run http://domain.tld/phpinfo.php through the browser and figure out the php.ini file path. After all modifications do not forget to restart apache service and remove phpinfo.php file from the publishing location.
 
Back
Top