Title: [Plugin: Limit Login Attempts] PHP Error
Last modified: August 19, 2016

---

# [Plugin: Limit Login Attempts] PHP Error

 *  Resolved [gregma](https://wordpress.org/support/users/gregma/)
 * (@gregma)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-limit-login-attempts-php-error/)
 * 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](https://wordpress.org/support/users/johanee/)
 * (@johanee)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-limit-login-attempts-php-error/#post-1595330)
 * 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](https://wordpress.org/support/users/johanee/)
 * (@johanee)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-limit-login-attempts-php-error/#post-1595333)
 * 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](https://wordpress.org/support/users/gregma/)
 * (@gregma)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-limit-login-attempts-php-error/#post-1595361)
 * 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](https://wordpress.org/support/users/johanee/)
 * (@johanee)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-limit-login-attempts-php-error/#post-1595362)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/limit-login-attempts.svg)
 * [Limit Login Attempts](https://wordpress.org/plugins/limit-login-attempts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/limit-login-attempts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/limit-login-attempts/)
 * [Active Topics](https://wordpress.org/support/plugin/limit-login-attempts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/limit-login-attempts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/limit-login-attempts/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [johanee](https://wordpress.org/support/users/johanee/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-limit-login-attempts-php-error/#post-1595362)
 * Status: resolved