WordFence Error – /wordfence-waf.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in Unknown on line 0

Maybe you uninstalled WordFence and see this error, or in my case, you changed your domain name to work offline and see this error.  Don’t fret, I have you covered.  Let’s fix it!

 

WordFence error – ends in /wordfence-waf.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in Unknown on line 0

A quick trick when troubleshooting Plugins is to rename the plugin folder instead of deactivating or uninstalling.  Well, this didn’t work for me today and I learned quickly there was a bigger issue when I visited the website I was working on and saw a long error which ended in the snippet above.

This is a quick and easy fix. You simply have to find what is calling the code and remove it (or update it to function assuming you have changed your domain name as I had).

You will need to look in two files on your website for the following line of code.  Remove it and this error will go away:

It is that easy!