• Resolved Nikelaos

    (@nikelaos)


    Hello!

    So, now I have a big problem:
    Due to a hoster-moving I try to move a multisite-Installation.

    On the new host, it doesn’t work. The errorlog shows
    PHP Fatal error: Unknown: Failed opening required '/xxx/xxx/xxx/xxx/xxx/xxx/xxx/xxx/xxx/wordfence-waf.php' ...

    AS the WF-homepage describes, I put on the old hoster the option to delete all WF-Files on deactivation on and then I deactivated Wordfence.

    Now I get the same error! My Site doesn’t work anymore!

    I’ve check php.ini for auto_prepend_file and phpinfo() says: no value

    So, what to do now? Restoring the database? OK, maybe that helps. An what next? I’ve checked the WP-root-dir and the wordfence-waf.php is gone. I’ve saved this, too. so I can upload it again. OK. And then? How can I deactivate WF in that way, that I can move the site?

    I’ve tried it just now, 15 Minutes are gone, again. Still I get a 500.

    Please help – the hole network is offline. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @nikelaos,

    Have you also checked to make sure there isn’t any code leftover in the .htaccess file attempting to load the file via a PHP value called auto_prepend_file? The code will resemble the example below.

    php_value auto_prepend_file '/home/public_html/wordfence-waf.php'

    https://www.wordfence.com/help/firewall/optimizing-the-firewall/#remove-optimization-manually

    Thanks,

    Gerald

    Thread Starter Nikelaos

    (@nikelaos)

    Hello Gerald,

    thanks for your reaction. In the meanwhile, I have restored the installation an it works fine again.

    At least I think, I didn’t wait long enough, so the cache was not refreshed.

    In my configuration, in .htaccess is a line which points to .user.ini, and in this file is the auto_prepend_file-option stored. Just to inform…

    Hey @nikelaos,

    Thanks for the update, and happy to hear you were able to sort it out!

    Please let us know if anything else comes up.

    Thanks,

    Gerald

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wordfence-waf.php/Server-Error 500’ is closed to new replies.