Support » Plugin: Wordfence Security - Firewall & Malware Scan » critical error after installing Wordfence

  • Resolved mukesh jatt

    (@starsb0641)


    when i deactivate wordfence site is running normally.
    Error Log is showing Below details

    [07-May-2020 08:43:46 UTC] PHP Fatal error: Uncaught Error: Call to a member function setRules() on null in /home/govtpdfi/public_html/wp-content/plugins/wordfence/lib/wordfenceClass.php:1130
    Stack trace:
    #0 /home/govtpdfi/public_html/wp-content/plugins/wordfence/lib/wordfenceClass.php(1773): wordfence::initProtection()
    #1 /home/govtpdfi/public_html/wp-includes/class-wp-hook.php(287): wordfence::veryFirstAction(”)
    #2 /home/govtpdfi/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #3 /home/govtpdfi/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #4 /home/govtpdfi/public_html/wp-settings.php(403): do_action(‘plugins_loaded’)
    #5 /home/govtpdfi/public_html/wp-config.php(70): require_once(‘/home/govtpdfi/…’)
    #6 /home/govtpdfi/public_html/wp-load.php(37): require_once(‘/home/govtpdfi/…’)
    #7 /home/govtpdfi/public_html/wp-content/plugins/wordfence/waf/.waf.php(1697): include_once(‘/home/govtpdfi/…’)
    #8 /home/govtpdfi/pub in /home/govtpdfi/public_html/wp-content/plugins/wordfence/lib/wordfenceClass.php on line 1130

    How can i fix it ?

    • This topic was modified 1 year, 5 months ago by mukesh jatt.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey @starsb0641,

    Can you please try completely resetting Wordfence and let me know if it helps?

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

    Please let me know.

    Thanks,

    Gerroald

    Thread Starter mukesh jatt

    (@starsb0641)

    No i’m not able to fix it. i deleted all old files with the help of wordfence assistance. after that i reinstall wordpress and then wordfence.
    When i check Firewall Status it shows You are currently running the Wordfence Web Application Firewall from another WordPress installation. Please click here to configure the Firewall to run correctly on this site.
    when i click then a popup page shows me to download htaccess and user.ini after that i click on continue then it shows Installation Successful.
    but after that site stops working. so i have to deactivate it again through cpanel

    • This reply was modified 1 year, 5 months ago by mukesh jatt.
    Thread Starter mukesh jatt

    (@starsb0641)

    looks like my site is messed up. i tried to use other security plugin but i got some type of different errors. maybe reason is i often change domain name.

    Hey @starsb0641,

    My apologies for the delayed response. We’ve recently experienced an influx in tickets volume.

    Yes, if you frequently domains these errors can happen as the WAF is dependant on the path to the wordpress-waf.php file.

    You can disable the Firewall if you’d like the benefit of the other features. This should work without error if the domain change is causing the issue.

    https://www.wordfence.com/help/firewall/#disabling-the-firewall

    Thanks,

    Gerroald

    Hey @starsb0641,

    We haven’t heard back from you in a while, so I’ve gone ahead and marked this thread as resolved.

    Please feel free to open another thread if you’re still having issues with Wordfence.

    Thanks,

    Gerroald

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘critical error after installing Wordfence’ is closed to new replies.