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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2020, 10:23 AM
Happygolucky Happygolucky is offline
 
Join Date: Aug 2016
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default I wonder if someone may ba able to help

My site (www.spankingcontacts.co.uk) has become unreachable since a crash yesterday. If I try to access the control panel I get the first message. But the config.php file is there and is correctly annotated and when I look at the server logs I get the second batch of errors.

All help gratefully received...

Message 1
"PHP Warning: include(/var/www/vhosts/crocodileproductions.co.uk/cpcontacts/admincp/includes/config.php): failed to open stream: No such file or directory in /var/www/vhosts/crocodileproductions.co.uk/cpcontacts/admincp/includes/class_core.php on line 3361

PHP Warning: include(/var/www/vhosts/crocodileproductions.co.uk/cpcontacts/admincp/includes/config.php): failed to open stream: No such file or directory in /var/www/vhosts/crocodileproductions.co.uk/cpcontacts/admincp/includes/class_core.php on line 3361

PHP Warning: include(): Failed opening '/var/www/vhosts/crocodileproductions.co.uk/cpcontacts/admincp/includes/config.php' for inclusion (include_path='.:/opt/plesk/php/7.1/share/pear') in /var/www/vhosts/crocodileproductions.co.uk/cpcontacts/admincp/includes/class_core.php on line 3361


Configuration: includes/config.php does not exist. Please fill out the data in config.php.new and rename it to config.php"






The second batch of errors shown are:

"2020-01-16 10:59:56 Warning 54.36.148.185 mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required '/var/www/vhosts/crocodileproductions.co.uk/cpcontacts/dbtech/status/hooks/init_startup.php' (include_path='.:/opt/plesk/php/7.1/share/pear') in /var/www/vhosts/crocodileproductions.co.uk/cpcontacts/includes/init.php(357) : eval()'d code on line 28 Apache error
2020-01-16 11:00:02 Access 54.36.150.140 200 GET /member.php/17363-tailblazer HTTP/1.1 Mozilla/5.0 (compatible; AhrefsBot/6.1; +http://ahrefs.com/robot/) 874 Apache access
2020-01-16 11:00:02 Warning 54.36.150.140 mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required '/var/www/vhosts/crocodileproductions.co.uk/cpcontacts/dbtech/status/hooks/init_startup.php' (include_path='.:/opt/plesk/php/7.1/share/pear') in /var/www/vhosts/crocodileproductions.co.uk/cpcontacts/includes/init.php(357) : eval()'d code on line 28 Apache error
2020-01-16 11:00:16 Access 46.229.168.162 200 GET /showthread.php/2238-Over-the-knee! HTTP/1.1 Mozilla/5.0 (compatible; SemrushBot/6~bl; +http://www.semrush.com/bot.html) 4.27 K Apache SSL/TLS access
2020-01-16 11:00:16 Warning 46.229.168.162 mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required '/var/www/vhosts/crocodileproductions.co.uk/cpcontacts/dbtech/status/hooks/init_startup.php' (include_path='.:/opt/plesk/php/7.1/share/pear') in /var/www/vhosts/crocodileproductions.co.uk/cpcontacts/includes/init.php(357) : eval()'d code on line 28 Apache error
2020-01-16 11:00:20 Access 46.229.168.130 200 GET /showthread.php/8342-Mature-staffs-spanker-looking-to-warn-the-bottom-of-a-sexy-spankee-on-a-regular-basis?p=24692 HTTP/1.1 Mozilla/5.0 (compatible; SemrushBot/6~bl; +http://www.semrush.com/bot.html) 4.27 K Apache SSL/TLS access
2020-01-16 11:00:20 Warning 46.229.168.130 mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required '/var/www/vhosts/crocodileproductions.co.uk/cpcontacts/dbtech/status/hooks/init_startup.php' (include_path='.:/opt/plesk/php/7.1/share/pear') in /var/www/vhosts/crocodileproductions.co.uk/cpcontacts/includes/init.php(357) : eval()'d code on line 28 Apache error
2020-01-16 11:00:42 Access 54.36.150.0 200 GET /search.php?search_type=1&searchthreadid=2207&conte nttype=vBForum_Post HTTP/1.1 Mozilla/5.0 (compatible; AhrefsBot/6.1; +http://ahrefs.com/robot/) 874 Apache access
2020-01-16 11:00:42 Warning 54.36.150.0 mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required '/var/www/vhosts/crocodileproductions.co.uk/cpcontacts/dbtech/status/hooks/init_startup.php' (include_path='.:/opt/plesk/php/7.1/share/pear') in /var/www/vhosts/crocodileproductions.co.uk/cpcontacts/includes/init.php(357) : eval()'d code on line 28"
Reply With Quote
  #2  
Old 01-16-2020, 10:42 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First one could be due to incorrect permissions on the file as well.
Second one seems that the DBTech Status & Moods (?) plugin is missing files on the server, maybe re-uploading the plugin files will fix that issue.
Reply With Quote
  #3  
Old 01-16-2020, 11:16 AM
Happygolucky Happygolucky is offline
 
Join Date: Aug 2016
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Dave
I've restored those files and now get

"
PHP Warning: require_once(..../dbtech/status/hooks/init_startup.php): failed to open stream: No such file or directory in ..../includes/init.php(357) : eval()'d code on line 28

Fatal error: require_once(): Failed opening required '/var/www/vhosts/crocodileproductions.co.uk/cpcontacts/admincp/dbtech/status/hooks/init_startup.php' (include_path='.:/opt/plesk/php/7.1/share/pear') in /var/www/vhosts/crocodileproductions.co.uk/cpcontacts/admincp/includes/init.php(357) : eval()'d code on line 28"

But the init file there and is chmod 777

Thanks
Reply With Quote
  #4  
Old 01-16-2020, 02:07 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's possible that the group:owner (chown) setting is not correctly set of these files.
Reply With Quote
  #5  
Old 01-16-2020, 02:13 PM
Happygolucky Happygolucky is offline
 
Join Date: Aug 2016
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Dave
I uploaded a fresh set of files and am now getting

"Error: Using $this when not in object context in ..../dbtech/status/hooks/init_startup.php on line 17"
Reply With Quote
  #6  
Old 01-16-2020, 02:23 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like a code error in the plugin or a corrupted file, maybe it's better to just completely remove or disable the plugin for now.
Reply With Quote
  #7  
Old 01-16-2020, 02:29 PM
Happygolucky Happygolucky is offline
 
Join Date: Aug 2016
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, could I maybe do that with a mysql query?
Reply With Quote
  #8  
Old 01-16-2020, 02:38 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add
define('DISABLE_HOOKS', true);
to the /includes/config.php file, then login into the admincp and disable the plugin. Then remove that line again to turn back the hook system (and plugins)
Reply With Quote
  #9  
Old 01-16-2020, 02:52 PM
Happygolucky Happygolucky is offline
 
Join Date: Aug 2016
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you So much.

That did it
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 03:22 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.04400 seconds
  • Memory Usage 2,241KB
  • 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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete