Hello, I logged on to my website this morning and my theme and plugins were deactivated.
During the chat session we found out that this might be related to an email that I recevived from the site earlier in the morning informing that there had been a Fatal Error caused by Defender Pro on the site (so this might have caused the Troubleshooting mode to be automatically enabled on it). This was the error logged:
Error Details
=============
An error of type E_ERROR was caused in line 11 of the file /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/ip-lockout/model/ip-model.php. Error message: Uncaught Error: Class ‘HammerBaseDB_Model’ not found in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/ip-lockout/model/ip-model.php:11
Stack trace:
#0 /var/web/site/public_html/wp-content/plugins/wp-defender/wp-defender.php(237): include_once()
#1 [internal function]: WP_Defender->_autoload(‘WP_Defender\Mod…’:wink:
#2 /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/ip-lockout/controller/main.php(366): spl_autoload_call(‘WP_Defender\Mod…’:wink:
#3 /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/ip-lockout/controller/main.php(44): WP_DefenderModuleIP_LockoutControllerMain->maybeLockouts()
#4 /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/ip-lockout.php(14): WP_DefenderModuleIP_LockoutControllerMain->__construct()
#5 /var/web/site/public_html/wp-content/plugins/wp-defender/main-activator.php(35): WP_DefenderModuleIP_Lockout->__construct()
#6 /var/web/site/public_html/wp-includes/class-wp-hook.php(286): WD_Main_Activator->i
I checked the debug.log and find this notice:
[20-May-2019 13:25:47 UTC] PHP Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/vendor/hammer/base/db-model.php on line 290
Could this notice be related to the fatal error reported above? If not, could you explain what was the Defender error and how to prevent it to happen again?