PDA

View Full Version : Allowed memory size


tomtylor
05 May 2008, 11:57
Hi everyone.

I've noticed problem with forumdisplay.php (at 3.6.8)

"PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 1966080 bytes) in forumdisplay.php(991) : eval()'d code on line 355"

I think the problem is that we have almost 1000 forums :] and the $vbulletin array gives us almost 5000 lines, but question is: is the solution for this? Is the only way to store this $vbulletin data in memory ?

Thx for any ideas.

royo
05 May 2008, 11:59
Try increasing the memory limit in either php.ini or for the script itself, depending how it's set.

Marco van Herwaarden
05 May 2008, 12:06
Either increase the limits or disable some of your products/plugins (the error is caused by a plugin).

tomtylor
05 May 2008, 12:33
Either increase the limits or disable some of your products/plugins (the error is caused by a plugin).

Thx for quick answers.

We've got only Cyb - ChatBox plugin. I've disabled this - without any changes.

I know I could increase the limits of memory but what if I can't? Is the solution for situation like that ?

Dismounted
05 May 2008, 12:46
If you can't increase the memory limit imposed, you can't. Simple.

Marco van Herwaarden
05 May 2008, 13:19
Try adding the following to your config.php file if you (or your host) can not raise the limits:

ini_set('memory_limit', 32 * 1024 * 1024);

tomtylor
05 May 2008, 13:48
ini_set('memory_limit', 32 * 1024 * 1024);

It helped. Thx a lot.

l2-inferno
17 Jun 2008, 04:47
Try adding the following to your config.php file if you (or your host) can not raise the limits:

ini_set('memory_limit', 32 * 1024 * 1024);

thank you Marco :D

EarnDollars
02 Oct 2008, 08:55
Try adding the following to your config.php file if you (or your host) can not raise the limits:

ini_set('memory_limit', 32 * 1024 * 1024);

Thank a lot!
This code also helped me fix the same issue on my forum :)

Eikinskjaldi
07 Oct 2008, 00:50
There is more than one way to skin this cat.

http://www.ducea.com/2008/02/14/increase-php-memory-limit/