We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Updated to 1.7.3 error: Trying to get property of non object

News and General

jarv's avatar
jarv
2 posts
10 years ago
jarv's avatar jarv

Trying to get property of non-object in /var/www/synced/cactuslanguagetraining/tailormade/core/core/core.session.php on line 1058

Line 1058 is part of this function:

function check_password_lockout($username = '')
    {    
        global $IN, $DB, $PREFS;
        
  if ($PREFS->ini('password_lockout') == 'n')
  {
          return FALSE; 
        } 
        
        if ($PREFS->ini('password_lockout_interval') == '')
        {
          return FALSE; 
        }
        
        $interval = $PREFS->ini('password_lockout_interval') * 60;
        
        $expire = time() - $interval;
  
    $sql = "SELECT count(*) AS count 
      FROM exp_password_lockout 
      WHERE login_date > $expire 
      AND ip_address = '".$DB->escape_str($IN->IP)."'
      AND (user_agent = '".$DB->escape_str($this->userdata['user_agent'])."'
     OR username = '".$DB->escape_str($username)."'
     )";
      
  $query = $DB->query($sql);

  if ($query->row['count'] >= 4)
  {
   return TRUE;
  }
  else
  {
   return FALSE;
  }
    }

Please help

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.