• Resolved chrishannon

    (@chrishannon)


    I am using the free version of Wordfence and I recently updated from v 7.2.4 to 7.4.2. When I tried to access the site’s WordPress dashboard after I updated Wordfence, I was unable to access the dashboard and instead received a “Fatal Error” message. An email that I received from WordPress contained the following Error Details:

    “An error of type E_ERROR was caused in line 54 of the file /var/www/wp-content/plugins/wordfence/modules/login-security/classes/controller/settings.php. Error message: Uncaught Error: Class ‘WordfenceLS\Settings\Model_DB’ not found in /var/www/wp-content/plugins/wordfence/modules/login-security/classes/controller/settings.php:54
    Stack trace:
    #0 /var/www/wp-content/plugins/wordfence/modules/login-security/classes/controller/settings.php(47): WordfenceLS\Controller_Settings->__construct()
    #1 /var/www/wp-content/plugins/wordfence/modules/login-security/classes/controller/wordfencels.php(43): WordfenceLS\Controller_Settings::shared()
    #2 /var/www/wp-content/plugins/wordfence/modules/login-security/classes/controller/wordfencels.php(28): WordfenceLS\Controller_WordfenceLS->_init_actions()
    #3 /var/www/wp-content/plugins/wordfence/modules/login-security/wordfence-login-security.php(95): WordfenceLS\Controller_WordfenceLS->init()
    #4 /var/www/wp-content/plugins/wordfence/lib/wordfenceClass.php(50): require(‘/var/www/wp-con…’)
    #5 /var/www/wp-content/plugins/wordfence/wordfence.php(77): require_once(‘/var/www/wp-con…’)`
    #6 /var/www/wp-settings.php(360): include_once(‘/var/www/wp-con

    In order to get my site back up, I restored it to a backup from a couple of days prior to when I updated Wordfence>

    Can anyone recommend a solution that will allow me to update Wordfence without the issue recurring?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @chrishannon,

    This sounds like a WordPress plugin update that didn’t go well. Can you please try reinstalling Wordfence and let me know if it helps?

    https://www.wordfence.com/help/advanced/remove-or-reset/

    Please let me know how it goes.

    Thanks,

    Gerroald

    Thread Starter chrishannon

    (@chrishannon)

    My apologies for the delay in responding, Gerroald!

    I enabled the setting to delete all data upon plugin deletion, then I deactivated and deleted Wordfence. Then, I reinstalled and activated it. Everything seems to be fine, now! Thank you for all of your help! I will start a new thread if I have any further issues.

    Chris

    I have the same issue with WordPress 5.4.2 with WordPress 7.4.7.
    Plugin could not be activated because it triggered a fatal error.
    Before I deactivated this plugin, I had out of memory errors installing plugins and trying to upgrade wordpress.

    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 67108872 bytes) in /home/<myuser>/public_html/<myusite>/wp-content/plugins/wordfence/lib/wfIssues.php on line 504
    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    sorry should have said….

    I have the same issue with WordPress 5.4.2 with WordFence 7.4.7.
    Plugin could not be activated because it triggered a fatal error.
    Before I deactivated this plugin, I had out of memory errors installing plugins and trying to upgrade wordpress.

    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 67108872 bytes) in /home/<myuser>/public_html/<myusite>/wp-content/plugins/wordfence/lib/wfIssues.php on line 504
    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    I tried deleting wordfence and then reinstalling and reactivating. But had the fatal error or reactivation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error After Updating to Version 7.4.2’ is closed to new replies.