title: Codeigniter - An Error Was Encountered - Unable to load the requested class: encrypt
body: <p>I have inherited a CI v2.0.2 project.</p>
  
  <p>For development purposes, the project was moved to another subdomain, and the <code>database.php</code> file has been properly reconfigured.</p>
  
  <p>The login page loads fine. However, after trying to login, I get an error from CI saying:</p>
  
  <pre><code>An Error Was Encountered 
  Unable to load the requested class: encrypt
  </code></pre>
  
  <p>In <code>autoload.php</code>, the <code>database</code> and <code>session</code> libraries are autoloaded. This file is the same as in the main codebase.</p>
  
  <p>If I add the <code>encrypt</code> library in the above line, I’m unable to see the login page at all.</p>
  
  <p>Below is the log file, from loading the login page - </p>
  
  <pre><code>DEBUG - 2012-10-21 04:15:22 --&gt; Config Class Initialized
  DEBUG - 2012-10-21 04:15:22 --&gt; Hooks Class Initialized
  DEBUG - 2012-10-21 04:15:22 --&gt; Utf8 Class Initialized
  DEBUG - 2012-10-21 04:15:22 --&gt; UTF-8 Support Enabled
  DEBUG - 2012-10-21 04:15:22 --&gt; URI Class Initialized
  DEBUG - 2012-10-21 04:15:22 --&gt; Router Class Initialized
  DEBUG - 2012-10-21 04:15:22 --&gt; Output Class Initialized
  DEBUG - 2012-10-21 04:15:22 --&gt; Security Class Initialized
  DEBUG - 2012-10-21 04:15:22 --&gt; Input Class Initialized
  DEBUG - 2012-10-21 04:15:22 --&gt; XSS Filtering completed
  DEBUG - 2012-10-21 04:15:22 --&gt; XSS Filtering completed
  DEBUG - 2012-10-21 04:15:22 --&gt; XSS Filtering completed
  DEBUG - 2012-10-21 04:15:22 --&gt; Global POST and COOKIE data sanitized
  DEBUG - 2012-10-21 04:15:22 --&gt; Language Class Initialized
  DEBUG - 2012-10-21 04:15:22 --&gt; Loader Class Initialized
  DEBUG - 2012-10-21 04:15:22 --&gt; Helper loaded: url_helper
  DEBUG - 2012-10-21 04:15:22 --&gt; Database Driver Class Initialized
  DEBUG - 2012-10-21 04:15:23 --&gt; Session Class Initialized
  DEBUG - 2012-10-21 04:15:23 --&gt; Helper loaded: string_helper
  DEBUG - 2012-10-21 04:15:23 --&gt; Session routines successfully run
  DEBUG - 2012-10-21 04:15:23 --&gt; Controller Class Initialized
  ERROR - 2012-10-21 04:15:23 --&gt; Unable to load the requested class: encrypt
  </code></pre>
  
  <p>The login works fine when used from the original domain.</p>
  
  <p>Any pointers where I should begin looking?</p>