Just disconnect it in .user.ini, .htaccess, or php.ini, wherever the auto_prepend config was put.
Should have been done before deleting the file.
See https://wordpress.org/support/topic/wordfence-waf-php-2/
Hi ambersaleem!
As already mentioned, some code has been left behind in your .htaccess file and/or a .user.ini file which loads the file you deleted via a PHP value called auto_prepend_file. Please check those two files, they will be located in the root of your WordPress installation (where you found and deleted the wordfence-waf.php) file. Remove any code from them that sets auto_prepend_file. Here is an example of what that code can look like
php_value auto_prepend_file '/home/public_html/wordfence-waf.php'
Best of luck for now!
Hello,
I just upgraded my WF account to Premium. When trying to enable the Firewall I get the message “unable to write to ~/wp-content/wflogs/ which the WAF uses for storage. Please update permissions on the parent directory so the web server can write to it.” Couldn’t find any file named wordfence-waf.php. Am I creating a new one? Confused????
My web server doesn’t allow writing to wp-content/wflogs. Your fix on https://docs.wordfence.com/en/Wordfence_constants_for_advanced_configuration says I should add this line:
define(“WFWAF_LOG_PATH”, ‘/var/www/html/wp-content/wflogs/’);after the opening.
I’m not sure of the proper syntax for adding this line. I get an internal server error when adding it.
Where and whats the proper syntax, please
Here’s my file .htaccess file:
DirectoryIndex index.php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Thanks
JD
Hi juciydesigners!
The docs you referenced can be used to set a different path to wflogs than the default path. Normally Wordfence tries to store the Firewall configuration files in wp-contet/wflogs but if you want it to use a different directory, you can use the WFWAF_LOG_PATH constant to set that. The directory should be a directory that is writable by the user that WordPress is running as. You do not need to create the directory, but it must be in a location that is writable. Hope that makes sense!
If you have Wordfence premium you’ll get quicker response if you send in a ticket via support.wordfence.com