vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Fatal Error (https://vborg.vbsupport.ru/showthread.php?t=231913)

DAIR1 01-02-2010 11:32 AM

Fatal Error
 
This sometimes appear whenever a member attempts to read PMs or reply to threads.



Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 737280 bytes) in /home/sites/mypage.co.uk/public_html/forums/private.php(2167) : eval()'d code on line 211

I'm going to check out this private file now.

Have any of you received this message before?

snakes1100 01-02-2010 11:47 AM

php is trying to allocate more memory than its allowed when executing that file.

edit php.ini & raise the "memory_limit"

DAIR1 01-02-2010 11:54 AM

Quote:

Originally Posted by snakes1100 (Post 1944876)
php is trying to allocate more memory than its allowed when executing that file.

edit php.ini & raise the "memory_limit"

Thanks for replying.

Should this not refresh itself?

What would you suggest i set it to?

--------------- Added [DATE]1262440856[/DATE] at [TIME]1262440856[/TIME] ---------------

Im inside the private php file now

PHP Code:

// ############################### start download pm ###############################
// downloads selected private messages to a file type of user's choice
if ($_REQUEST['do'] == 'downloadpm')
{
    if ((
$current_memory_limit ini_size_to_bytes(@ini_get('memory_limit'))) < 128 3024 3024 AND $current_memory_limit 0)
    {
        @
ini_set('memory_limit'128 1024 1024); 

That is what the limit currently reads. However, chaning it still raises the same message.

snakes1100 01-02-2010 12:17 PM

What does php.ini state the memory_limit is set at?

DAIR1 01-02-2010 12:20 PM

Hmm I fear im in the wrong file. Where is this php.ini file?

--------------- Added [DATE]1262442153[/DATE] at [TIME]1262442153[/TIME] ---------------

I think i may have found it.

snakes1100 01-02-2010 12:29 PM

Depends on the OS & there can be more than one, also depends if your on a vhosted server, as you may be allowed local override, which that case, it should be in your root/public_html dir, then just set it there.

A info.php file will tell you what configuration file its using and its location as well, at the top of the info file.

memory_limit = 128M

via ssh:
updatedb
find / -name php.ini -print
nano /etc/php.ini
change variable
restart crapache

DAIR1 01-02-2010 12:31 PM

Nope cant find it :(

--------------- Added [DATE]1262442721[/DATE] at [TIME]1262442721[/TIME] ---------------

Quote:

Originally Posted by snakes1100 (Post 1944902)
Depends on the OS & there can be more than one, also depends if your on a vhosted server, as you may be allowed local override, which that case, it should be in your root/public_html dir, then just set it there.

A info.php file will tell you what configuration file its using and its location as well, at the top of the info file.

memory_limit = 128M

via ssh:
updatedb
find / -name php.ini -print
nano /etc/php.ini
change variable
restart crapache

Thanks I shall look into this now.

--------------- Added [DATE]1262443690[/DATE] at [TIME]1262443690[/TIME] ---------------

I see. I dont currently have asscess to the ssh. I do have it though. Ill have to get in touch with my host.

Thanks


All times are GMT. The time now is 10:11 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.01101 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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