WordPress.org

Ready to get started?Download WordPress

Forums

Limit Login Attempts
[resolved] PHP Error (5 posts)

  1. gregma
    Member
    Posted 4 years ago #

    Hi there :-)

    First thing: I wonder where you can find the Log of the banned IPs?
    Second... I just saw an error at my apache error_log:
    PHP Fatal error: Cannot use string offset as an array in /srv/www/whatever/plugins/limit-login-attempts/limit-login-attempts.php on line 411

    Any Idea?

  2. johanee
    Member
    Plugin Author

    Posted 4 years ago #

    If there have been any lockouts the log is show on the bottom of the plugin settings page.

    I assume you get that error with version 1.4.1 of the plugin (as that is the only way the line number makes sense).

    Do you use PHP 5?

    That code is about adding an IP to the lockout log.

    Do you get the error reliably? If so it should happen any time a new IP/attempted user combo is to be logged.

    Does the log work for you? I assume from your first question that it might not.

    I think I know what might be the problem. Would you be able to check a modified version of the plugin? If so, please mail me at <johan.eenfeldt@kostdoktorn.se>.

  3. johanee
    Member
    Plugin Author

    Posted 4 years ago #

    Ok, I'm pretty sure that the problem is that your log option variable have somehow become damaged, which isn't handled gracefully by the plugin.

    I'm going through the plugin to better handle this kind of errors, and will release an update once it's gotten some testing.

    ( If you feel comfortable making direct database changes, and have SQL access to the site, you can test it by running: DELETE FROM wp_options WHERE option_name = 'limit_login_logged'; )

  4. gregma
    Member
    Posted 4 years ago #

    Hi johanee :-)

    I deleted the option and saved them again at the backend, now it looks fine.
    I blocked myself and got an email - very good.
    The log is available too!

    Thanks for the quick answer & help!

  5. johanee
    Member
    Plugin Author

    Posted 4 years ago #

    Good.

    I'll make sure we handle these kind of situations better in next version.

    Thanks for testing!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic