title: codeigniter fatal error using $this not in object context
body: <p>I am beating my head against the wall on this. I have a codeigniter application that I am migrating from one server to another. When migrated, I throws an error (it doesn't in production).</p>
  
  <pre><code>Fatal error: Using $this when not in object context in /SYSTEM_PATH/system/database/DB.php on line 146
  </code></pre>
  
  <p>It's a stock CI install 2.1.3 as far as the system folder goes.</p>
  
  <p>I've already tried re-uploading/migrating (hoping it was a corrupt file or something), but no luck.</p>