• Resolved metalpotatouk

    (@metalpotatouk)


    Hey guys,

    I’m having an issue with a bunch of my websites. I installed Wordfence on them all and exported the settings from one site and imported them onto all the others. Now, all those other websites have an error at the bottom of every single page:

    Fatal error: Cannot redeclare class wfWAFWordPressRequest in /home/pather/public_html/wp-content/plugins/wordfence/waf/bootstrap.php on line 42

    I have searched the database for ‘pather’ and I cannot find it. I’ve removed Wordfence including deleting all of it’s data. I’ve physically deleted all Wordfence tables from the database. I’ve removed user.ini, removed wordfence-waf.php, installed a default .htaccess.

    I cannot work out how to remove this from my two dozen websites?

    Please help

    https://ww.wp.xz.cn/plugins/wordfence/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello metalpotatouk,
    panther is what your account is called on your web server. The message tells you which file is generating the error. It looks to me like you have two copies of Wordfence installed at the same time. Try accessing your website via FTP/SSH and locate the folder wp-content/plugins. Look there to see if you have two folders called “wordfence”. Any folders in there called wordfence you can temporarily rename “wordfence_disabled” or something similar to completely disable Wordfence.

    Thread Starter metalpotatouk

    (@metalpotatouk)

    Thank you. I will loook into this and report back if need be.

    Hi wfasa,

    I have the same problem wordfence Version 6.1.10 and wordpress 4.5.3 and in wp-content/plugins I only have a single version of wordfence

    [root@web plugins]# find . -name bootstrap.php
    ./wordfence/waf/bootstrap.php
    ./loco-translate/lib/test/bootstrap.php
    [root@web plugins]# vim ./loco-translate/lib/test/bootstrap.php
    [root@web plugins]# find . -name waf
    ./wordfence/views/waf
    ./wordfence/waf
    [root@web plugins]# find -iname "wordfence"
    ./wordfence
    ./wordfence/vendor/wordfence

    any tips?

    gd

    Hello giray.devlet,
    what does your error message look like? If the error says “Cannot redeclare” it definitely means a the same file is being loaded twice.

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

The topic ‘Please help: Cannot redeclare class wfWAFWordPressRequest’ is closed to new replies.