ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

2.1.3 to 2.2 Problem

June 22, 2011 3:59pm

Subscribe [3]
  • #1 / Jun 22, 2011 3:59pm

    PA Webmaster

    4 posts

    I just attempted an upgrade to 2.2 from 2.1.3. I updated MSM, and I previously had my system folder set up above web root. However, the instructions detailing how to move system above web root seem to have disappeared from the User Guide (originally located http://ellislab.com/expressionengine/user-guide/general/system_above_webroot.html), so I can’t confirm if I redid that process correctly, or if it is still supported. The problem now is that when I try to log in to my admin page, I get the error message “You are only permitted to make four login attempts every 1 minute(s)”, despite definitely not hitting this limit.

    Any insight as to why this is happening would be greatly appreciated. Thanks!

  • #2 / Jun 22, 2011 4:42pm

    Ben Parizek

    128 posts

    I’m getting this error too.

    UPDATE:

    It seems it’s stemming from this function in Session.php

    function check_password_lockout($username = '')
        {
            
            if ($this->EE->config->item('password_lockout') == 'n' OR 
                $this->EE->config->item('password_lockout_interval') == '')
            {
                 return FALSE; 
            } 
            
            $interval = $this->EE->config->item('password_lockout_interval') * 60;
            
            $expire = time() - $interval;
    
            $lockout = $this->EE->db->select("COUNT(*) as count")
                                    ->where('login_date > ', $expire)
                                    ->where('ip_address', $this->EE->input->ip_address())
                                    ->where('user_agent', $this->userdata['user_agent'])
                                    ->or_where('username', $username)
                                    ->get('password_lockout');
            
            return ($lockout->row('count') >= 4) ? TRUE : FALSE;
        }

    If I force the function to return FALSE, I am able to log in fine.  Not really a fix, but perhaps it will help us find a solution.

  • #3 / Jun 22, 2011 5:02pm

    Ben Parizek

    128 posts

    Well, I don’t fully understand why this was happening but I deleted a series of records in the “exp_password_lockout” table that had my name and IP address on them and I’m able to login fine now.  Not sure how or why those records were created to begin with but seemed to solve the problem for me.

  • #4 / Jun 22, 2011 5:15pm

    PA Webmaster

    4 posts

    Clearing out that table fixed the issue for me. Thanks!

  • #5 / Jun 22, 2011 5:16pm

    Brandon Jones

    5500 posts

    Hi Kenneth,

    Instructions for moving your site above webroot are now at:

    http://ellislab.com/expressionengine/user-guide/installation/best_practices.html

    Does that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases