vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   I wonder if someone may ba able to help (https://vborg.vbsupport.ru/showthread.php?t=327767)

Happygolucky 01-16-2020 10:23 AM

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"

Dave 01-16-2020 10:42 AM

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.

Happygolucky 01-16-2020 11:16 AM

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

Dave 01-16-2020 02:07 PM

It's possible that the group:owner (chown) setting is not correctly set of these files.

Happygolucky 01-16-2020 02:13 PM

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"

Dave 01-16-2020 02:23 PM

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.

Happygolucky 01-16-2020 02:29 PM

Yes, could I maybe do that with a mysql query?

Dave 01-16-2020 02:38 PM

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)

Happygolucky 01-16-2020 02:52 PM

Thank you So much.

That did it


All times are GMT. The time now is 10:26 AM.

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.01048 seconds
  • Memory Usage 1,740KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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