• Resolved sproutwebdev

    (@sproutwebdev)


    public_html/wordfence-waf.php’ (include_path=’.:/usr/local/php81/pear’) in?Unknown?on line?0

    • This topic was modified 1 year, 3 months ago by sproutwebdev.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @sproutwebdev, thanks for sharing the error you’re seeing.

    Had you only just installed, optimized the firewall or made some other changes on your server when this occurred? A possible cause is that the .htaccess file containing auto_prepend_file to include wordfence-waf.php has been placed somewhere else and not in document root. If you’re able to use WordPress CLI, the following command will find the location of the file:

    find . -name ".htaccess" -exec grep -r -H "/your/path/to/wordfence-waf.php" {} \;

    It is also possible for .user.ini or php.ini to be configured for this depending on your environment, but also check that wordfence-waf.php is in your site’s root folder too.

    Naturally I can’t check which host or environment you’re on precisely, so I’ll provide the links below in case troubleshooting or alternative hosting provider setups may be appropriate to follow in your case:

    https://www.wordfence.com/help/firewall/optimizing-the-firewall/#alternative-hosting-provider-setups

    https://www.wordfence.com/help/firewall/optimizing-the-firewall/troubleshooting/

    Let us know what you find out!
    Peter.

    Thread Starter sproutwebdev

    (@sproutwebdev)

    Hi @wfpeter, the issue has been resolved. I reverted the domain to the old one and deactivated the Wordfence before changing the domain again. Thank you so much for the response.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t Access WP-Admin due to Wordfence error’ is closed to new replies.