• Resolved oshika35

    (@oshika35)


    Hello,

    I already checked all similar topics but none of the solutions provided helped me.
    I had some issues after restoring a backup with WpVivid and ended up having to reinstall the whole WordPress installation. After it was done, I’m now getting the following error :

    Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
    
    Fatal error: Unknown: Failed opening required '/home/.../wordfence-waf.php' (include_path='.:/opt/alt/php74/usr/share/pear') in Unknown on line 0

    However, I don’t have any wordfence-waf.php, my .htaccess doesn’t have anything related to WordFence and I also tried to remove everything from it but it didn’t work. Finally, I don’t have any .user.ini file.

    Surprisingly, the website works when changing PHP version from 7.4 to 8.1, but I need 7.4 for some of my plugins.

    I also tried to reinstall WordFence through PHP 8.1 and then switching back to 7.4 but still have the issue. Again, uninstalling WordFence didn’t change anything.

    Any idea of how to solve this issue ?

    Best regards,
    Oshika35

    • This topic was modified 2 years, 7 months ago by oshika35.
Viewing 1 replies (of 1 total)
  • Thread Starter oshika35

    (@oshika35)

    Update :

    I’ve been able to solve the issue after removing the auto_preprend line from a file called alt_php74.cfg

    After that, PHP 7.4 loaded successfully, everything works again.

    However after enabling WordPress again I’m asked to do the firewall optimization that consists in adding this exact line that makes my website crash.

    Any way I can solve that?

    Edit : It was my mistake, I copied the whole line instead of just the path in the UI for PHP options.

    Everything works now. sorry.

    • This reply was modified 2 years, 7 months ago by oshika35.
Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error: Failed opening required ‘/home/…/wordfence-waf.php’ is closed to new replies.