WSN Gallery
Featuresspacer Showcasespacer Reviewsspacer Demosspacer Purchasespacer Manualspacer Support
Allowed memory size exhausted
Allowed memory size exhausted
By Paul

If you get an error message similar to

Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 3840 bytes) in /path/to/commonfuncs.php(245) : eval()'d code on line 1

This means something asking PHP to process too much information at once. There are several known causes and solutions:

1) If you get this during the automatic upgrade, you'll just need to allow more memory in php.ini. Contact your web host to request that PHP's allowed memory be increased to at least 12M. If you have access to php.ini, you can add/atler this line yourself: memory_limit = 12M

2) If you have a large number (hundreds or thousands) of categories, try following these instructions . Switch off the display of the category selector on the submission pages (see the switches area of your admin panel) and limit the levels of your sitemap and category selector to 1 or 2.

3) If you get the message only in large categories, you may be trying to show too many images per page (probably hundreds). Test this by constructing a url with fewer links per page: site.com/wsn/index.php?action=displaycat&catid=x&perpage=40
(change x to the category id number of the problematic category). Go to your admin panel and change your images per page setting to something reasonable, like 50.

4) If you're getting this message in your admin panel, you may have a huge number of unvalidated items. If you have hundreds of unvalidated items, php can't process it all and dies with that error. You will need to go into phpmyadmin and select images (presumably that's what most of the pending items are) where validated=0. You will need to either set validated=1 for these or delete them, until you're down to a reasonable number of pending items.

5) If you get this just on your main page, you might have a huge timed action set. You will need to use your admin panel to remove timed actions such javascript and static page exports, etc until it works.

6) You can also turn off some switches to reduce memory usage (most notably comments, online users, private messages, instant messages).

Rating:


4.5/5 based on 2 votes. The median rating is 4.

Submitted: 07/24/04 (Edited 03/13/08)

Description: Possible causes of "Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 3840 bytes) in /path/to/commonfuncs.php(245) : eval()'d code on line 1"

Views: 1632 views. Averaging 1 per day.
In the most recent 30 day period, there've been 1 views.

Previous Article | Next Article

Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support