Support » Plugin: Defender Security - Malware Scanner, Login Security & Firewall » Fatal Error: \WP_Defender\Module\Scan\Behavior\Pro\Model’ not found

  • Resolved Christian Saborio

    (@christian-saborio)


    First off, THANK YOU for creating quality plugins! This is in no way urgent

    I’ve installed Defender in a couple of sites w/o problems, but now I am running issues on this website.

    When I activate it (all plugins disabled), I get this:

    Fatal error: Uncaught Error: Class ‘\WP_Defender\Module\Scan\Behavior\Pro\Model’ not found in /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/base/component.php:240 Stack trace: #0 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/base/component.php(260): Hammer\Base\Component->ensureBehaviors() #1 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/base/model.php(243): Hammer\Base\Component->hasProperty(‘receipts’) #2 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/wp/settings.php(44): Hammer\Base\Model->import(Array) #3 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/app/module/scan/model/settings.php(173): Hammer\WP\Settings->__construct(‘wd_scan_setting…’, false) #4 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/app/module/scan/model/settings.php(224): W in /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/base/component.php on line 240

    Debug Info:

    WordPress Version: 5.5.1
    Current WordPress Theme: Jean Monnet Chair Theme (FR) version 1.0.0fundrize
    Theme URI:
    PHP Version: 7.2.29
    MySQL Version: 5.6.40-84.0-log

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello @christian-saborio

    This sounds like the previous installation/update didn’t go through well. Could you please try to delete the plugin and re-install it? You can do that via (S)FTP by removing the wp-content/plugins/defender-security/ folder and install the plugin again from WP admin. Let me know how that goes!

    Take care,
    Dimitris

    Fatma

    (@omandaisy)

    if we delete the plugins from FTP we gonna lose all previous data ??

    Thread Starter Christian Saborio

    (@christian-saborio)

    @omandaisy nope, plugin settings and your preferences are stored in the WP database, thus deleting the plugin and installing again won’t delete your settings.

    @wpmudev-support6 deleted the entire folder, installed again and I get the same error when activating

    I deleted the folder, downloaded the zip file and installed it manually and still the same results.

    Here is what I found in the log file:

    [20-Sep-2020 22:56:59 UTC] PHP Fatal error: Uncaught Error: Class ‘\WP_Defender\Module\Scan\Behavior\Pro\Model’ not found in /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/base/component.php:240
    Stack trace:
    #0 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/base/component.php(260): Hammer\Base\Component->ensureBehaviors()
    #1 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/base/model.php(243): Hammer\Base\Component->hasProperty(‘receipts’)
    #2 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/wp/settings.php(44): Hammer\Base\Model->import(Array)
    #3 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/app/module/scan/model/settings.php(173): Hammer\WP\Settings->__construct(‘wd_scan_setting…’, false)
    #4 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/app/module/scan/model/settings.php(224): W in /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/base/component.php on line 240
    [20-Sep-2020 22:57:01 UTC] PHP Fatal error: Uncaught Error: Class ‘\WP_Defender\Module\Scan\Behavior\Pro\Model’ not found in /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/base/component.php:240
    Stack trace:
    #0 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/base/component.php(260): Hammer\Base\Component->ensureBehaviors()
    #1 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/base/model.php(243): Hammer\Base\Component->hasProperty(‘receipts’)
    #2 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/wp/settings.php(44): Hammer\Base\Model->import(Array)
    #3 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/app/module/scan/model/settings.php(173): Hammer\WP\Settings->__construct(‘wd_scan_setting…’, false)
    #4 /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/app/module/scan/model/settings.php(224): W in /home/scorpiot/sites/jeanmonnetprojects.com.au/wp-content/plugins/defender-security/vendor/hammer/base/component.php on line 240

    Plugin Support Adam – WPMU DEV Support

    (@wpmudev-support8)

    Hi @christian-saborio

    Thanks for response!

    This line of the error

    PHP Fatal error: Uncaught Error: Class โ€˜\WP_Defender\Module\Scan\Behavior\Pro\Modelโ€™

    is referring to the Pro version of the plugin which is quite unexpected actually. Have you ever used Pro/installed Pro version of Defender on the site?

    If so then even despite plugin being re-installed, could you clear all caches on site and server and CDN (if you are using any)?

    It would be especially important to make sure about opcache and object cache type cache (server-side). This isn’t always something that is “exposed” in hosting control panel so you might want to double-check with your host directly but give it a go, please, and update us here with result.

    Kind regards,
    Adam

    sharonshero

    (@sharonshero)

    I just had my client’s site break from this as well. As soon as Defender auto-updated it crashed. Can you advise if you’re fixing? I’ve turned it off for now.
    Fatal error: Uncaught Error: Class ‘WP_Defender\Controller\Tutorial’ not found in /home/customer/www/beggsconsulting.com/public_html/wp-content/plugins/defender-security/main-activator.php:238 Stack trace: #0 /home/customer/www/beggsconsulting.com/public_html/wp-includes/class-wp-hook.php(287): WD_Main_Activator->init(”) #1 /home/customer/www/beggsconsulting.com/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 /home/customer/www/beggsconsulting.com/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/customer/www/beggsconsulting.com/public_html/wp-settings.php(546): do_action(‘init’) #4 /home/customer/www/beggsconsulting.com/public_html/wp-config.php(80): require_once(‘/home/customer/…’) #5 /home/customer/www/beggsconsulting.com/public_html/wp-load.php(37): require_once(‘/home/customer/…’) #6 /home/customer/www/beggsconsulting.com/public_html/wp-blog-header.php(13): require_once(‘/home/customer/…’) #7 /home/customer/www/beggsconsulting.com/public_html/ind in /home/customer/www/beggsconsulting.com/public_html/wp-content/plugins/defender-security/main-activator.php on line 238

    sharonshero

    (@sharonshero)

    Just adding text here because I didn’t click the Notify box earlier. ๐Ÿ˜

    Thread Starter Christian Saborio

    (@christian-saborio)

    @sharonshero that does sound like a broken plugin. If you have FTP access go to the plugin folder and delete it and try installing it again and see how you go.

    Thread Starter Christian Saborio

    (@christian-saborio)

    @wpmudev-support8 Thanks! Look, I got a trial for the pro WPMU account more than a year ago and I don’t recall if I ever installed it here.

    In any case, I flushed all cache and disabled cloudflare and the problem persists. I deleted anything related to Defender in the DB.

    I find it odd as the free plugin is indeed searching for a free component.

    In any case, I saw the 30 day trial that you guys have, I might get it and install the Pro plugin to see if that works, I’ll keep you posted.

    Thanks again!

    Plugin Support Adam – WPMU DEV Support

    (@wpmudev-support8)

    Hi @sharonshero

    I hope you’re well today!

    It does not seem like the very same issue as reported here so if reinstalling the plugin doesn’t help, please start a separate ticket of your own and we’ll assist you further.

    @christian-saborio

    If you had a trial account then yes, this might be related because even if you didn’t install Pro version, it would be turned to pro and updates during the trial would be fetched from our servers (so full pro versions).

    It should actually help in such case to remove the plugin and re-install it manually or via “Plugins -> Add new” page but you may also make sure, just in case, that you don’t have WPMU DEV Dashboard plugin installed and active on site (even if it’s not logged in to any WPMU DEV account), just in case. That is, unless you do go for pro version, of course ๐Ÿ™‚

    Best regards,
    Adam

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Thank you for using Defender. We are going to close this ticket for now because we have not heard from you in a while. If you still need support we can reopen the thread.

    Cheers,
    Predrag

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal Error: \WP_Defender\Module\Scan\Behavior\Pro\Model’ not found’ is closed to new replies.