WordPress.org

Ready to get started?Download WordPress

Forums

iThemes Security (formerly Better WP Security)
[resolved] [Plugin: Better WP Security] 'error' (28 posts)

  1. TCBarrett
    Member
    Posted 1 year ago #

    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
    "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/

  2. Interesting. I'll take a look. Thanks!

  3. alex80ks
    Member
    Posted 1 year ago #

    that error same to me but its when you trying to login too many times then plugin ban you no matter that you are admin or not(maybe a glitch) and i haved same problem sometimes if my server need too much time to respond.That is one of the problem that i ran on to beside slowing my server after updating wp to 3.4.1 but this is for another topic :) you must acces ftp and rename your wp-better-security to any other name then you can acces the site and after that rename it as it should be and that will do the job

  4. Sounds like I need to revisit the table creation query. Thanks for the info

  5. Sounds like I need to revisit the table creation query. Thanks for the info

  6. acurran
    Member
    Posted 1 year ago #

    I too have encountered this 'error'. It happened right after I was testing multiple login attempts just to see what would happen. But it is not only the admin area that appears as a blank page with the word 'error' on it but the entire website. I got the site working again by doing as alex80ks suggested and renaming the plugin via ftp in order to disable it that way. Then the site worked again and I could access admin again. But now whenever I rename the plugin folder back to 'better-wp-security' and reactivate the plugin, it goes back to the showing the 'error' message for the entire site! Is there something else that needs to be reset to get the plugin to work again? Is this error based on IP address or does the website go into error mode for everyone? If it's the former then it's not really a problem as long as we know how to reset it. But if it's the latter, then obviously it's a major problem.

  7. The error message should show for the entire site up to the point where the lockout expires. The thought being, if someone is trying that hard to get in one way, you don't want them concentrating on anything else once they're locked out.

    You can clear any lockout by clearing the bwps_lockouts table in your database.

    Now are ya'll still seeing logged results on Good logins? I have yet to reproduce that one on any site.

  8. TCBarrett
    Member
    Posted 1 year ago #

    Sorry, I've not had time to revisit this. I think it might be possible to recreate the error by running the network update (network admin > updates > update network). But I'm not sure. If that works for you (i.e. network update runs without error), then it must be in combination with something else I am doing.

  9. It should've been fixed in 3.4.1. Can you confirm that is the version of Better WP Security you are running?

  10. John O
    Member
    Posted 1 year ago #

    Hi,

    I installed the latest version of this plugin earlier this evening. Everything seemed fine, and I happily configured a few things and left it active.

    About 15 minutes ago, I suddenly got the 'error' thing on every page of my website.

    I renamed the plugin folder to force it to deactivate, and my site came back, but I too get the 'error' message every time I try to reactivate is, so I can't try changing any settings to see what caused it.

    I haven't been trying any of the features e.g. the multiple login attempts, and i avoided activating anything that had a warning message about potential conflicts with server settings / other plugins.

    How do I reactivate this plugin without killing my entire website? :-/

    John

  11. John O
    Member
    Posted 1 year ago #

    Update: found the problem - it was intrusion detection. There was a missing site asset causing a 404 that locked me out. All sorted now. Sorry!

  12. Glad it's working. Unfortunately it isn't an uncommon issue. I'm looking for a better way to detect in the future but doing so won't happen as quickly as I would like.

  13. Dan Mensinger
    Member
    Posted 1 year ago #

    May be more common than you think, I also just got this mysterious "error" after simply clicking the button to activate all the basic security settings. Now I cannot get the plugin to work at all.

  14. Dan Mensinger
    Member
    Posted 1 year ago #

    I also got a site lockout notification, however I can still access the site... it may have something to do with the "error" though...

    I have used your plugin on other sites and it runs great. Not sure what happened here, just wanted to bring it to your attention when i found this thread.

  15. @Dan

    The 'error' can happen with one-click as it will turn on '404' detection. Check your 404 log to see what it's missing. In most cases there are left over artifacts (typically images) in the css files. This is unfortunately a problem in a lot of themes but also means that the 404 checking is doing it's job. The most likely direction will be a timer that doesn't activate it for an hour and instead emails the admin a list of the links if there could be a potential problem.

  16. glowflare
    Member
    Posted 1 year ago #

    Hi i am having the same issue but i don't know how to fix it, is anyone able to elaborate for me as its becoming a large problem to my site i keep getting locked out, and other people on the site are getting locked out its basically displaying 'error' on a white page thats it, nothing else, can someone help as it goes after around 20 mins but this is putting people off using the website with the logic area, please can you help?

  17. @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.

  18. Asif Mushtaq
    Member
    Posted 1 year ago #

    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 :).

  19. Stranger
    Member
    Posted 1 year ago #

    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?

  20. Stranger
    Member
    Posted 1 year ago #

    actualy i have resolved this erro, it was 404 error because my site has alot missing pages, well thanks for a nice plugin

  21. lekko
    Member
    Posted 12 months ago #

    How do I set Better WP Security, yesterday I failed and now have to wear it, is there something wrong with my website

  22. CindyGoBeyond
    Member
    Posted 11 months ago #

    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?

  23. pumpkineater
    Member
    Posted 10 months ago #

    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

  24. tinozee
    Member
    Posted 10 months ago #

    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.

  25. cyphog
    Member
    Posted 10 months ago #

    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.

  26. listerdl
    Member
    Posted 9 months ago #

    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

  27. zandercent
    Member
    Posted 9 months ago #

    CAn I suggest having a whitelist file in the ftp so you can add yourself in case this happens?

  28. peaxi
    Member
    Posted 9 months ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.