• Resolved gregma

    (@gregma)


    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor johanee

    (@johanee)

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

    Plugin Contributor johanee

    (@johanee)

    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'; )

    Thread Starter gregma

    (@gregma)

    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!

    Plugin Contributor johanee

    (@johanee)

    Good.

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

    Thanks for testing!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Limit Login Attempts] PHP Error’ is closed to new replies.