Free Licenses

Wordpress Public_html/wordfence-waf.php Error And Solution

We investigated why the Wordfence-waf.php error appeared and how the error was solved, and we prepared an article so that you do not suffer from this situation.

Wodfence-waf.php Error

Long time ago Wordfence Security I scanned my files by installing the plugin. After some time, I switched to another plugin Wordfence Security When I connected to my ftp server a little while ago, I saw that the wordfence-waf.php file exists on my server.

And then I thought to myself "I uninstalled this plugin, surely this is its leftover file, let me delete it" Two or three minutes later, I entered the site, the site is ruined, it won't open and gives the error you see in the title.

Wodfence-waf.php Error Solution
Wodfence-waf.php Error Solution

No matter how much research I did, I couldn't find the solution. I started doing something on my own to activate the site quickly. The steps I tried are described in detail below. Then my site was at peace within 5 minutes.

Why Do We Encounter Wodfence-waf.php Error?

The cause of this error is that your site does not have any .ini file "wordfence-waf.php" file on your server. Since you have deleted that file from your server, the site will start with "wordfence-waf.php" file is called but cannot be found. The site is deactivated because it cannot be found. The solution to this is actually very simple.

Wodfence-waf.php Error 1st Solution

Logically, if we find out which .ini file calls this file, we can make our job easier. This file is located in the main directory of your site. user.ini calling the file. User.ini When you open the file, you can see the following codes.

Wordfence WAF
auto_prepend_file = '/home/omerbozd/public_html/wordfence-waf.php'
END Wordfence WAF

As it can be understood from this code, we have deleted and destroyed the files in the main directory of our site. wordfence-waf.php file is being called. To terminate the invocation user.ini file from the main directory. Before deleting it, just in case user.ini file to back up the file.

Wodfence-waf.php Error 2nd Solution

To tell you the truth, this is how I did it, and it starts with the backup you should always take. User.ini I deleted the file and my site did not recover. While I was thinking about what I could do, I thought of the backup I had taken before.

By going into the backup wordfence-waf.php I found the file and threw it into the main directory of the site, that is, where I deleted it. The site is now working like a charm. If you don't have a backup, don't worry, I will give you the file I have backed up below.

Download Wordfence-waf.php File

Click to Download File

Download this file and extract the file to your desktop. Then open it with notepad and replace the site address in it with your own site address. Then ftp it to the main directory of your site. However, since this situation will be very tedious and there will be a file sitting idle on your server, I recommend you to apply the 1st solution. If the 1st solution did not work for you, apply this solution.

Wodfence-waf.php Error 3rd and Final Solution

If you have done the above and the problem still persists, this time you should check the ".htaccess" file. It contains #Wordfence WAF with the line starting with #END Wordfence WAF delete everything in between, including the line and save it. After that user.ini you can delete the file. Already before user.ini If you have deleted the file, there is nothing left to do.

Wodfence-waf.php Error Solution - .htaccess
Wodfence-waf.php Error Solution - .htaccess

Ömer Bozdi

Don't be selfish with knowledge so that it multiplies.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
en_USEnglish

Adblock Detected

Please SUPPORT us by turning off the Ad Blocker.