title: PHP Error encountered in XAMPP
body: <p>I am using <a href="https://github.com/robertmain/Treasure-Hunt" rel="nofollow">this</a> code to implement a 'Treasure Hunt' . I have very little idea about the code that I am working with . One thing I am trying to do is make the code work with XAMPP on my PC . I was able to fix the database errors that I was encountering whenever I tried to navigate to <strong>localhost/treasurehunt/admin/login</strong> . What I did was this -</p>
  
  <ul>
  <li><p>Set a root username and password for the entire 'thing'<br>
  (using <strong>localhost/security/xamppsecurity.php</strong>)</p></li>
  <li><p>Edited the database.php file with appropriate username and password (That of the 'root') .  </p></li>
  <li><p>Created a database (using <strong>localhost/phpmyadmin</strong>) and changed database.php accordingly .</p></li>
  </ul>
  
  <p>Now , when I try to navigate to <strong>localhost/treasurehunt/admin/login</strong> page , I am getting an error . I tried fixing this from last two days (by searching on various forums) , but was not of "much" help . The error is as follows -   </p>
  
  <pre><code>A PHP Error was encountered
  Severity: Notice
  
  Message: Undefined property: CI_Loader::$agent
  
  Filename: core/Loader.php(829) : eval()'d code
  
  Line Number: 9
  
  
  Fatal error: Call to a member function is_mobile() on a non-object in  
  C:\xampp-portable\htdocs\treasurehunt\system\core\Loader.php(829) : eval()'d code on  
  line 9
  </code></pre>
  
  <p>Is there any way I can fix this . Please tell me which all code samples from which files do you guys need to understand the problem precisely . I will add the code to my question .</p>
  
  <p>Thanks in advance .</p>