• Resolved chillycharly1515

    (@chillycharly1515)


    Hi ??

    I need help from you.
    I’m transferring my website to an hosting to an other. I’m at the final step, to preview to website, everything is done but the website doesn”t display. When I’m trying to connect to my /wp-admin here the message :

    Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
    
    Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
    
    Fatal error: Unknown: Failed opening required '/flex/storage/lagouttecreative.com/site/www/wordfence-waf.php' (include_path='.:/opt/php7.4/lib/php') in Unknown on line 0

    Is there an easy way to solve this please ?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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! ??

    Thread Starter chillycharly1515

    (@chillycharly1515)

    Hehe !

    I’m happy because it’s working now ??

    Thank a lot for your help <3

    Plugin Support wfpeter

    (@wfpeter)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error : wordfence-waf’ is closed to new replies.