• Resolved mwnciau

    (@mwnciau)


    I run Defender on three separate servers: our live server, a staging server and locally on my local dev server. The latter two are sporadically copied (the DB is copied in its entirety) from the live server. After an update to 2.2.4 from 2.1.*, I’m getting a lot of errors and warnings – differently on each server.

    Our live server is running fine without errors.

    Our development server is throwing a fatal error when I visit the Defender home page in the admin CP, meaning the page appears blank:

    [Mon Jan 27 10:24:40.341266 2020] [php7:error] [pid 2846] [client 192.168.11.11:52240] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /var/www/wordpress/wp-content/plugins/defender-security/app/module/hardener/component/protect-information-service.php:25\nStack trace:\n#0 /var/www/wordpress/wp-content/plugins/defender-security/app/module/hardener/model/settings.php(253): WP_Defender\\Module\\Hardener\\Component\\Protect_Information_Service->check()\n#1 /var/www/wordpress/wp-content/plugins/defender-security/app/module/hardener.php(45): WP_Defender\\Module\\Hardener\\Model\\Settings->refreshStatus()\n#2 /var/www/wordpress/wp-content/plugins/defender-security/app/module/hardener.php(20): WP_Defender\\Module\\Hardener->initRulesStats()\n#3 /var/www/wordpress/wp-content/plugins/defender-security/main-activator.php(115): WP_Defender\\Module\\Hardener->__construct()\n#4 /var/www/wordpress/wp-includes/class-wp-hook.php(288): WD_Main_Activator->init('')\n#5 /var/www/wordpress/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)\n#6 /var/www/wordpress/wp-includes/plugin.php(478): WP_Hook- in /var/www/wordpress/wp-content/plugins/defender-security/app/module/hardener/component/protect-information-service.php on line 25, referer: https://192.168.10.76/wp-admin/

    On my local dev server, I’m not getting the same fatal error, but there are numerous warnings at the top of the page. This is likely an artefact of the fact that I copy the live database to my local machine:

    Warning: filemtime(): stat failed for /var/www/wordpress/README.md in L:\wordpress\wp-content\plugins\defender-security\app\module\scan\behavior\core-result.php on line 30
    Warning: filesize(): stat failed for /var/www/wordpress/README.md in L:\wordpress\wp-content\plugins\defender-security\app\module\scan\behavior\core-result.php on line 31
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @mwnciau

    I trust you’re doing well!

    I’m afraid this is already reported issue and will be released in the next plugin version. As a temporary fix, please download the prevent-php-service.php and the protect-information-service.php files.

    Upload both of the files to /wp-content/plugins/wp-defender/app/module/hardener/component/ directory and replace the files that are already there. Just in case please have a site’s backup, so you can restore your site if something will go wrong.

    Let us know how it went!

    Kind regards,
    Nastia

    Hi!
    For those who are going to install Defender, do we need to install as well the files you mentioned?
    Thx!

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @isemplice

    No, there’s no need to do it “right away”>

    If you install and setup the plugin “as is” and notice those errors on your site, then yes – apply those files, otherwise they won’t be necessary. There should also be an update released soon that will address the issue right in plugin’s core code.

    Best regards,
    Adam

    Thx Adam fr your answer!
    God bless you!
    Andy ??

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @mwnciau

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error on Defender splash page with version 2.2.4’ is closed to new replies.