When you get an error that says: "Allowed memory size of Xxx bytes exhausted", you are using more memory that php has available. This can be caused by a very large image or a great amount of images at ones (with Zip upload or Directory scan).
There are a few ways to encrease the amount of available memory on your site.
php.ini
Open the php.ini file and change memory_limit = 8M to a larger value:
memory_limit = 16M
.htaccess
If you don't have access to the php.ini file (on most servers) you can try to add a line to your .htaccess file:
php_value memory_limit 16M
(note, this might give an Internal Server error if this isn't allowed on your server. Simply remove the line to fix it again)
In php script
If both methods are not working, the only option available is to change the php script. Open /administrator/components/com_easygallery/easygallery.class.php, locate this line:
define("PATH_EASYGALLERY", dirname(__FILE__));
and add this below it:
ini_set("memory_limit","16M");
That should be it. I used 16 MB in the example, if this isn't enough, simply encrease the value. (32M for 32MB, 64M for 64MB etc).
If there's no "memory_limit" parameter in your phpinfo page, then all PHP/Webserver processes are limited by the per process max memory limit. You'll have to ask an administrator to change the limit in this case.
| Next > |
|---|