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

Reply
 
Thread Tools Display Modes
  #11  
Old 06-26-2006, 11:38 AM
morgandy morgandy is offline
 
Join Date: Jun 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am still locked out of the admincp, and our forums are down. I re-uploaded init.php and the global.php as suggested, same error occurred, then I restored everything from my backup that was done a few days ago, same error occurred, I have then uploaded all the original files again, and get the same error still:

Warning: Unknown(./../global.php): failed to open stream: No such file or directory in /global.php(349) : eval()'d code on line 1

Fatal error: (null)(): Failed opening required './../global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/csea/public_html/forums/global.php(349) : eval()'d code on line 1
========

Could it be in the below code somehow? I keep wondering also with all the portal uninstall I did, and then trying to fix vBulletin, that my license information got overwritten, so need to know how to re-enter it without doing a full 'installation' again.

Or, could the error be caused by the below in my global.php file? I don't know what this eval()'d code refers to.

($hook = vBulletinHook::fetch_hook('cache_templates')) ? eval($hook) : false;

// now get all the templates we have specified
cache_templates($globaltemplates, $style['templatelist']);
unset($globaltemplates, $actiontemplates, $_get_edit_templates, $_templatedo);

// ################################################## ###########################
// get style variables
$stylevar = fetch_stylevars($style, $vbulletin->userinfo);

// ################################################## ###########################
// parse PHP include
if (!is_demo_mode())
{
@ob_start();
($hook = vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false;
$phpinclude_output = @ob_get_contents();
@ob_end_clean();

I just downloaded a php editor and found that it is this line (349) - I don't know what the eval business is about, as I've stated. This is not an eval/demo version, but fully purchased. The portal software is all I can think that messed with it, or my having to overwrite with original vb files again. Please clue me into what to do. The same error occurs if trying to get to admincp or the forums.

if (!is_demo_mode())
{
@ob_start();
($hook = vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false;
$phpinclude_output = @ob_get_contents();
@ob_end_clean();

I took GaryP's advice from above, but added define('DISABLE_HOOKS', true); to the global.php file this time instead of the config. I'm IN!!!!! 4 days downtime, won't mess with the Portal crap again probably. BUT, how did that 'hook' get in there to begin with, any ideas???
Reply With Quote
  #12  
Old 06-26-2006, 12:50 PM
Wifey Wifey is offline
 
Join Date: Mar 2004
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had some HUGE problems with my forums last week due to a hack. Can you get your hosting to upload a backup file for you? I know it sets you back, but it's better than being locked out Just my suggestion, other than that I'm just giving you moral support
Reply With Quote
  #13  
Old 06-26-2006, 01:21 PM
morgandy morgandy is offline
 
Join Date: Jun 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I've been doing backups, but the restores weren't working. And then the hack got into my code after the backups...Good lesson learned I guess. I'm fixed for now, ain't touching the darn thing again until I'm 'recovered'!

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 12:53 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.03376 seconds
  • Memory Usage 2,179KB
  • Queries Executed 13 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete