Catchable fatal error: Object of class __PHP_Incomplete_Class
<p>i get this error</p>

<p>Catchable fatal error: Object of class __PHP_Incomplete_Class could not be converted to string in user.php on line 248
this is the line</p>

<pre><code>  function loadUser($userID)
  {
  global $db;   
    $res = $db-&gt;getrow("SELECT * FROM `{$this-&gt;dbTable}` WHERE `{$this-&gt;tbFields['userID']}` = '".$this-&gt;escape($userID)."' LIMIT 1");
    if ( !$res )
        return false;
    $this-&gt;userData = $res;
    $this-&gt;userID = $userID;
    $_SESSION[$this-&gt;sessionVariable] = $this-&gt;userID;
    return true;
  }
</code></pre>

<p>see</p>

<pre><code>var_dump($_SESSION); 

array(1) { ["user"]=&gt; &amp;object(__PHP_Incomplete_Class)#1 (12) { ["__PHP_Incomplete_Class_Name"]=&gt; string(11) "jooria_user" ["dbTable"]=&gt; string(5) "users" ["sessionVariable"]=&gt; string(4) "user" } }
</code></pre>
