0 votes
290 views
by (1.5k points)

Recently I have migrated my site from one website to another. But, I am facing following error issue. Please guide me.

Fatal error: Unknown: Failed opening required '/srv/users/apps/example/public/wordfence-waf.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0

 

1 Answer

0 votes
by (10.3k points)

Yea, this error belongs to incomplete uninstalling of Wordfence Security plugin. Because due to some file restriction Wordfence can't remove or alter that file. That's why you are seeing this error.

  1. Go to WordPress root folder
  2. Look for two files .user.ini and .htaccess
  3. Remove following lines if exist,
    ; Wordfence WAF
    auto_prepend_file = '/xx/xx/public_html/wordfence-waf.php'
    ; END Wordfence WAF
  4. Done..!
...