vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   Allowed memory size (https://vborg.vbsupport.ru/showthread.php?t=178186)

tomtylor 05-05-2008 10:57 AM

Allowed memory size
 
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-05-2008 10:59 AM

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

Quote:

Originally Posted by Marco van Herwaarden (Post 1509139)
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:

PHP Code:

ini_set('memory_limit'32 1024 1024); 


tomtylor 05-05-2008 12:48 PM

Quote:

Originally Posted by Marco van Herwaarden (Post 1509210)
PHP Code:

ini_set('memory_limit'32 1024 1024); 


It helped. Thx a lot.

l2-inferno 06-17-2008 03:47 AM

Quote:

Originally Posted by Marco van Herwaarden (Post 1509210)
Try adding the following to your config.php file if you (or your host) can not raise the limits:

PHP Code:

ini_set('memory_limit'32 1024 1024); 


thank you Marco :D

EarnDollars 10-02-2008 07:55 AM

Quote:

Originally Posted by Marco van Herwaarden (Post 1509210)
Try adding the following to your config.php file if you (or your host) can not raise the limits:

PHP Code:

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/incr...-memory-limit/


All times are GMT. The time now is 02:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01164 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete