• Resolved Derek

    (@uncomman357)


    My smartphone was stolen and I lost the authentication app for 2FA for this site, so could not authenticate when logging in. I checked online and used the advice given in many places, i.e. to rename or remove the Wordfence folder, remove the references to wordfence in the .user.ini, and removed the file wordfence-waf.php in the root folder.

    Having removed all links to Wordfence and removed the plugin, I now get this (from my error log):

    PHP Fatal error: Unknown: Failed opening required ‘/home/xtajaiph/public_html/wordfence-waf.php’ (include_path=’.:/usr/local/php74/lib/php’) in Unknown on line 0

    Where is it getting the call to this file, since I removed it from user.ini and there isn’t an auto_prepend command in the .user.ini OR the .htaccess file?

    I now cannot login?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’ll recommend you post in the Wordfence plugin’s own support forum so its developers and support community can help you:

    https://wordpress.org/support/plugin/wordfence/

    Good luck!

    Hey there,

    Most likely your .htaccess file still contains 2 command lines related to WordFence plugin.

    I would strongly advice opening the .htaccess file, searching for Wordfence command lines, and trying to comment them out.

    The issue should be fixed after saving the file.

    Thread Starter Derek

    (@uncomman357)

    Hi rokelis, I already did, here is the htaccess code:

    BEGIN LSCACHE LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule .litespeed_conf.dat - [F,L] marker CACHE RESOURCE start RewriteRule wp-content/./[^/](responsive|css|js|dynamic|loader|fonts).php - [E=cache-control:max-age=3600] marker CACHE RESOURCE end marker FAVICON start RewriteRule favicon.ico$ - [E=cache-control:max-age=86400] marker FAVICON end marker DROPQS start CacheKeyModify -qs:fbclid
    CacheKeyModify -qs:gclid
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:_ga marker DROPQS end LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! END LSCACHE BEGIN NON_LSCACHE LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! END NON_LSCACHE RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
    Header always set Content-Security-Policy "upgrade-insecure-requests;" BEGIN WordPress The directives (lines) between "BEGIN WordPress" and "END WordPress" are dynamically generated, and should only be modified via WordPress filters. Any changes to the directives between these markers will be overwritten. RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] END WordPress BEGIN Block all trackbacks, pingbacks and use of XML-RPC Order Deny,Allow Deny from all END Block all trackbacks, pingbacks and use of XML-RPC BEGIN cPanel-generated php ini directives, do not edit Manual editing of this file may result in unexpected behavior. To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor) For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI) php_flag display_errors Off php_value max_execution_time 300 php_value max_input_time 120 php_value max_input_vars 1000 php_value memory_limit 256M php_value post_max_size 64M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php55" php_value upload_max_filesize 64M php_flag zlib.output_compression Off
    php_flag display_errors Off php_value max_execution_time 300 php_value max_input_time 120 php_value max_input_vars 1000 php_value memory_limit 256M php_value post_max_size 64M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php55" php_value upload_max_filesize 64M php_flag zlib.output_compression Off END cPanel-generated php ini directives, do not edit
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wordfence Fatal error: Unknown: Failed opening required’ is closed to new replies.