• Resolved Derek

    (@uncomman357)


    The following error is preventing me from installing WordPress in a new subfolder:

    [11-Apr-2020 11:44:37 UTC] PHP Fatal error: Unknown: Failed opening required ‘/home/pedaimvx/public_html/wordfence-waf.php’ (include_path=’.:/opt/cpanel/ea-php73/root/usr/share/pear’) in Unknown on line 0

    I had a previous installation in the root directory which I deleted, and another WP installation in another subfolder which is working

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

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

    (@wfphil)

    Hi @uncomman357

    You have either a .user.ini file, php.ini file or a .htaccess file with the auto_prepend_file PHP directive set trying to process the wordfence-waf.php located here but the file no longer exists:

    /home/pedaimvx/public_html/wordfence-waf.php

    Find the code below and delete it:

    .user.ini file or php.ini:

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

    .htaccess file – it could be one of these code snippets:

    # Wordfence WAF
    <IfModule mod_php%d.c>
    php_value auto_prepend_file '/home/pedaimvx/public_html/wordfence-waf.php'
    </IfModule>
    # END Wordfence WAF
    # Wordfence WAF
    <IfModule lsapi_module>
    php_value auto_prepend_file '/home/pedaimvx/public_html/wordfence-waf.php'
    </IfModule>
    # END Wordfence WAF
    # Wordfence WAF
    <IfModule LiteSpeed>
    php_value auto_prepend_file '/home/pedaimvx/public_html/wordfence-waf.php'
    </IfModule>
    # END Wordfence WAF
    Thread Starter Derek

    (@uncomman357)

    MUCH appreciated, done and sorted!

    Plugin Support wfphil

    (@wfphil)

    Hi @uncomman357

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Wordfence error preventing WordPress install’ is closed to new replies.