Title: [Plugin: Better WP Security] &#039;error&#039;
Last modified: August 20, 2016

---

# [Plugin: Better WP Security] 'error'

 *  Resolved [TCBarrett](https://wordpress.org/support/users/tcbarrett/)
 * (@tcbarrett)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error/)
 * Hello
 * (I’m playing around with BWPS. I’ve set and unset a few things, and I have been
   doing it in batches here and there. I.e. I’m not 100% sure what I did to cause
   the error.)
 * Visiting any admin page results in a single string response by the web server:‘
   error’.
 * From the error log:
    “WordPress database error Multiple primary key defined for
   query ALTER TABLE test_bwps_log ADD PRIMARY KEY id (id) made by require(‘wp-admin/
   plugins.php’), activate_plugin, do_action(‘activate_better-wp-security/better-
   wp-security.php’), call_user_func_array, bwps_setup::on_activate, bwps_setup-
   >__construct, bwps_setup->activate_execute, dbDelta”
 * I thought it was this at first:
    Is this because of “PRIMARY KEY id (id)” ? Which
   does not have 2 spaces as per spec: [http://codex.wordpress.org/Creating_Tables_with_Plugins#Creating_or_Updating_the_Table](http://codex.wordpress.org/Creating_Tables_with_Plugins#Creating_or_Updating_the_Table)“
   You have to have two spaces between the words PRIMARY KEY and the definition 
   of your primary key.”
 * But I edited the plugin and tried – still no fish. Looks like something in the
   way dbdelta is parsing your create string?
 * I have dropped the tables and re-activated, which works for now, but I’m not 
   sure why it triggered the dbdelta..
 * Long story there. Hope you enjoyed it. Anything I can do to help?
 * [http://wordpress.org/extend/plugins/better-wp-security/](http://wordpress.org/extend/plugins/better-wp-security/)

Viewing 11 replies - 16 through 26 (of 26 total)

[←](https://wordpress.org/support/topic/plugin-better-wp-security-error/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-better-wp-security-error/?output_format=md)
2

 *  [Bit51 (part of the iThemes family)](https://wordpress.org/support/users/bit51/)
 * (@bit51)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error/page/2/#post-2874718)
 * [@glowflare](https://wordpress.org/support/users/glowflare/) Turn off 404 detection
   and check “View Logs” to see what files are causing the errors. Then eliminate
   the references to those files from your theme, plugins, etc.
 *  [Asif Mushtaq](https://wordpress.org/support/users/asifmushtaq38/)
 * (@asifmushtaq38)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error/page/2/#post-2874742)
 * Yup its login error. If you will try to login with wrong password you will se
   this “error” on whole website. YOu can visit again website by changing your ip:).
 *  [adnaniub](https://wordpress.org/support/users/adnaniub/)
 * (@adnaniub)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error/page/2/#post-2874743)
 * hi
    i am using this plugin and also facing “error” message instead of my site,
   but after 3 or 4 minutes this error disappear, i am confused why i am facing 
   this error?
 *  [adnaniub](https://wordpress.org/support/users/adnaniub/)
 * (@adnaniub)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error/page/2/#post-2874744)
 * actualy i have resolved this erro, it was 404 error because my site has alot 
   missing pages, well thanks for a nice plugin
 *  [cindygobeyond](https://wordpress.org/support/users/cindygobeyond/)
 * (@cindygobeyond)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error/page/2/#post-2874754)
 * It happened to me, with v. 3.5.2. I love this plugin, but I have been seeing 
   other lock-outs and am afraid it is affecting my members. I don’t want to switch
   to a different; I am competent but not a tech-nerd and cannot waste time on this.
   Any fixes?
 *  [pumpkineater](https://wordpress.org/support/users/pumpkineater/)
 * (@pumpkineater)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error/page/2/#post-2874755)
 * Same problem as CindyGoBeyond with 3.5.2 (and some previous versions)
    Using 
   WPMU 3.5.1 Reversing back to 3.4.9 which is stable for my situation
 *  [tinozee](https://wordpress.org/support/users/tinozee/)
 * (@tinozee)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error/page/2/#post-2874757)
 * This is happening to me as well. Normal visitors are getting white page with “
   error” just from visiting the site. This is the lateste ver of plugin installed
   yesterday.
 *  [cyphog](https://wordpress.org/support/users/cyphog/)
 * (@cyphog)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error/page/2/#post-2874758)
 * Yup, same happening to my site’s visitors as tinozee. Had to manually delete 
   the install folder and clean up the .htaccess file before site availability was
   restored.
 * Both WP and BWPS were up to date.
 *  [listerdl](https://wordpress.org/support/users/listerdl/)
 * (@listerdl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error/page/2/#post-2874760)
 * Im glad I found this thread! The same ‘error’ only top left of screen is all 
   I get.
 * Now, the very odd thing is that every time I enable the plugin – the ‘error’ 
   comes straight back. Unlike some people with this problem, mine is constant, 
   i.e. every time I enable the plugin (by renaming it to the correct string) the‘
   error’ comes back.
 * I have removed my IP which was on the lockout table but still this error persists…
   any ideas? Thanks
 *  [zandercent](https://wordpress.org/support/users/zandercent/)
 * (@zandercent)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error/page/2/#post-2874761)
 * CAn I suggest having a whitelist file in the ftp so you can add yourself in case
   this happens?
 *  [peaxi](https://wordpress.org/support/users/peaxi/)
 * (@peaxi)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error/page/2/#post-2874762)
 * Hi, we just had a whole site with this error (in production).
 * Can you please precise if the ‘error’ displays to all visitors (=> plugin to 
   remain deactivated!), or if it will only display to the locked-down IPs? (=> 
   not much of a problem).
 * Thank you!

Viewing 11 replies - 16 through 26 (of 26 total)

[←](https://wordpress.org/support/topic/plugin-better-wp-security-error/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-better-wp-security-error/?output_format=md)
2

The topic ‘[Plugin: Better WP Security] 'error'’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=2980272)
 * [Solid Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 26 replies
 * 16 participants
 * Last reply from: [peaxi](https://wordpress.org/support/users/peaxi/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error/page/2/#post-2874762)
 * Status: resolved