Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2010, 11:32 AM
DAIR1 DAIR1 is offline
 
Join Date: Dec 2009
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 01-02-2010, 11:47 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

edit php.ini & raise the "memory_limit"
Reply With Quote
  #3  
Old 01-02-2010, 11:54 AM
DAIR1 DAIR1 is offline
 
Join Date: Dec 2009
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
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.
Reply With Quote
  #4  
Old 01-02-2010, 12:17 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What does php.ini state the memory_limit is set at?
Reply With Quote
  #5  
Old 01-02-2010, 12:20 PM
DAIR1 DAIR1 is offline
 
Join Date: Dec 2009
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 01-02-2010, 12:29 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 01-02-2010, 12:31 PM
DAIR1 DAIR1 is offline
 
Join Date: Dec 2009
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope cant find it

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

Quote:
Originally Posted by snakes1100 View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:48 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.05003 seconds
  • Memory Usage 2,223KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete