Hi @changeagent,
I just installed Wordfence on my local machine running on PHP 7.3, and I don’t get any site errors.
Can you find the PHP error_log and see what error message is being generated when you’re using a higher PHP version? It’s possible that it’s not Wordfence causing the errors.
Dave
Hi Dave, thanks.
errors are displayed directly in the browser. earlier i was getting:
Warning: Use of undefined constant ‘DISALLOW_FILE_EDIT’ – assumed ‘‘DISALLOW_FILE_EDIT’’ (this will throw an Error in a future version of PHP) in /kunden/xyz-xyz/Website 123/wp-config.php on line 97
Warning: Cannot modify header information – headers already sent by (output started at /kunden/xyz-xyz/Website 123/wp-config.php:97) in /kunden/xyz-xyz/Website 123/Name_of_website/wp-includes/functions.php on line 5946
Warning: Cannot modify header information – headers already sent by (output started at /kunden/xyz-xyz/Website 123/wp-config.php:97) in /kunden/xyz-xyz/Website 123/Name_of_website/wp-admin/includes/misc.php on line 1252
Warning: Cannot modify header information – headers already sent by (output started at /kunden/xyz-xyz/Website 123/wp-config.php:97) in /kunden/xyz-xyz/Website 123/Name_of_website/wp-admin/admin-header.php on line 9
Hi again,
This doesn’t appear to be related to Wordfence.
Can you tell me what appears on line 97 of wp-config.php?
Can you add this line on line 96? (Just before line 97)
define('DISALLOW_FILE_EDIT', false);
Dave
line 97 is:
define(‘DISALLOW_FILE_EDIT’,true)
line 96 is:
define(‘NONCE_SALT’, ‘etc……
so it is taken.
Hi again,
Can you make a backup of your current wp-config.php file, and then remove line 97 and see if your site works?
Remove define(‘DISALLOW_FILE_EDIT’,true); from that file and refresh your website.
Dave
good morning, presently on the road and will try as soon as I am back at a big screen.
FYI I have the same problem on 2 other sites.
Sounds good! We haven’t received any other reports of this issue, so I’m pretty sure it’s caused by custom settings you (or someone else) placed within wp-config.php.
Please do let me know if the issues are still occurring, even after the edits you make to wp-config.php.
Dave
there was an error in the code in wp-config.php. this fixed this problem.
I now get other errors, but contacted my ISP and they are looking in to it.
Thanks for your help!