• Resolved :cantaloop

    (@cyrilruiz)


    I moved a site to Infomaniak accommodation without knowing this site has the WordFence plugin. I can not access the newly hosted site. The message is as follows:
    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 ‘/home/fsdfr/public_html/wordfence-waf.php’ (include_path=’.:/opt/php7.4/lib/php’) in Unknown on line 0

    I renamed the WordFence-Waf.php file but without success. Do you know how I can do? thanks a lot

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support wfphil

    (@wfphil)

    Hi @cyrilruiz

    Please edit your reply and redact the PHP process owner after /home/ and before /public_html/ as that is sensitive server information that should remain private.

    When you optimize the firewall you will see in the Protection Level section:

    If you’re moving to a new host or a new installation location, you may need to temporarily disable extended protection to avoid any file not found errors. Use this action to remove the configuration changes that enable extended protection mode or you can remove them manually (opens in new tab).

    In the root directory where WordPress is installed look for a php.ini or .user.ini file with the block of code below:

    ; Wordfence WAF
    auto_prepend_file = '/home/redacted/public_html/wordfence-waf.php'
    ; END Wordfence WAF

    If you find it then delete it. Now delete the wordfence-waf.php file and you can optimize the firewall again.

    If you don’t find a php.ini or .user.ini file with that code then look in your .htaccess file for one of the following blocks of code:

    # Wordfence WAF
    <IfModule mod_php.7c>
    php_value auto_prepend_file '/home/redacted/public_html/wordfence-waf.php'
    </IfModule>
    # END Wordfence WAF
    # Wordfence WAF
    <IfModule LiteSpeed>
    php_value auto_prepend_file '/home/redacted/public_html/wordfence-waf.php'
    </IfModule>
    <IfModule lsapi_module>
    php_value auto_prepend_file '/home/redacted/public_html/wordfence-waf.php'
    </IfModule>
    # END Wordfence WAF

    If you find it then delete it. Now delete the wordfence-waf.php file and you can optimize the firewall again.

    Thread Starter :cantaloop

    (@cyrilruiz)

    hello, thank you for your answer but now WP ask me to install WP !

    Plugin Support wfphil

    (@wfphil)

    Hi @cyrilruiz

    That sounds like a problem with the connection to the database in some way so I recommend that you ask your hosting provider to look at that for you.

    Thread Starter :cantaloop

    (@cyrilruiz)

    hello, All is ok now, I resolved this issue and changed the DB (it was not the right DB in additionnal of this issue ??
    Thank you very much

    Plugin Support wfphil

    (@wfphil)

    Hi @cyrilruiz

    Thank you for the update that everything is fixed now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Wordfence – website changed host’ is closed to new replies.