Hello!
I’ve had to deal with this multiple times as I’ve frequently moved sites.
I believe you’ll want to try a few things (make backups first just in case):
- Remove wordfence-waf.php found at your projects root
- Open .htaccess and remove the Wordfence WAF section
- Open .user.ini from your projects root and remove the Wordfence WAF
Again, make sure to backup all these files before deleting, just in case I’ve made a mistake or your server config is different.
Assuming you see your site back up, you’ll want to then login and reconfigure Wordfence to regenerate all the things you’ve removed on the new host.
Hoping this helps! π
Hehe !
I’m happy because it’s working now π
Thank a lot for your help <3
Hi @chillycharly1515, thanks for getting in touch.
I indeed agree with @mattinventive that this is an issue where the firewall optimization is still pointing to the file locations of your old site.
Our Migrate with Wordfence documentation, which as a first step requires you to remove the optimization that would solve seeing that error after migration.
Thanks,
Peter.
Hi @wfpeter,
I’m having a similar issue. My website (deshuna.com) was hacked with malware several months ago and I ended up having to remove/delete our entire wordpress install (all files, plugins, etc.). I’m at my wits end because after deleting and reinstalling using WordPress Toolkit in cpanel, I’m still getting:
This page isnβt workingdeshuna.com is currently unable to handle this request.
HTTP ERROR 500
When I check the error logs after installing, I get this error:
[02-Sep-2022 09:23:27 UTC] PHP Fatal error: Unknown: Failed opening required '/home/deshunas/public_html/wordfence-waf.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in Unknown on line 0
[02-Sep-2022 09:29:15 UTC] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
[02-Sep-2022 09:29:15 UTC] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
[02-Sep-2022 09:29:15 UTC] PHP Fatal error: Unknown: Failed opening required '/home/deshunas/public_html/wordfence-waf.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in Unknown on line 0
Wordfence isn’t installed on deshuna.com and after doing a search in the root directory, I only see it installed on one of the 7 websites that’s on the root directory (and it’s not deshuna.com). I’ve tried every trick online and it still doesn’t work. I’m not sure what else to do. Thank you.