• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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