View Full Version : Allowed memory size
tomtylor
05-05-2008, 10:57 AM
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.
Try increasing the memory limit in either php.ini or for the script itself, depending how it's set.
Marco van Herwaarden
05-05-2008, 11:06 AM
Either increase the limits or disable some of your products/plugins (the error is caused by a plugin).
tomtylor
05-05-2008, 11:33 AM
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-05-2008, 11:46 AM
If you can't increase the memory limit imposed, you can't. Simple.
Marco van Herwaarden
05-05-2008, 12:19 PM
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-05-2008, 12:48 PM
ini_set('memory_limit', 32 * 1024 * 1024);
It helped. Thx a lot.
l2-inferno
06-17-2008, 03:47 AM
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
10-02-2008, 07:55 AM
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
10-06-2008, 11:50 PM
There is more than one way to skin this cat.
http://www.ducea.com/2008/02/14/increase-php-memory-limit/
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.