Title: Please help: Cannot redeclare class wfWAFWordPressRequest
Last modified: August 31, 2016

---

# Please help: Cannot redeclare class wfWAFWordPressRequest

 *  Resolved [metalpotatouk](https://wordpress.org/support/users/metalpotatouk/)
 * (@metalpotatouk)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/please-help-cannot-redeclare-class-wfwafwordpressrequest/)
 * 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://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

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

 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/please-help-cannot-redeclare-class-wfwafwordpressrequest/#post-7320952)
 * 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](https://wordpress.org/support/users/metalpotatouk/)
 * (@metalpotatouk)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/please-help-cannot-redeclare-class-wfwafwordpressrequest/#post-7320954)
 * Thank you. I will loook into this and report back if need be.
 *  [giray.devlet](https://wordpress.org/support/users/giraydevlet/)
 * (@giraydevlet)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/please-help-cannot-redeclare-class-wfwafwordpressrequest/#post-7321110)
 * 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
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/please-help-cannot-redeclare-class-wfwafwordpressrequest/#post-7321111)
 * 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.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [wfasa](https://wordpress.org/support/users/wfasa/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/please-help-cannot-redeclare-class-wfwafwordpressrequest/#post-7321111)
 * Status: resolved