Welcome Guest, Not a member yet? Register   Sign In
An Error Was Encountered - Unable to load the requested class: encrypt
#1

[eluser]Unknown[/eluser]
I have inherited a CI v2.0.2 project.

For development purposes, the project was moved to another subdomain, and the database.php file has been properly reconfigured.

The login page loads fine. However, <b>after</b> trying to login, I get an error from CI saying:

Code:
An Error Was Encountered
Unable to load the requested class: encrypt

In autoload.php, the database and session libraries are autoloaded. This file is the same as in the main codebase.

If I add the 'encrypt' library in the above line, I'm unable to see the login page at all.

The login works fine when used from the original domain.

Any pointers where I should begin looking?
#2

[eluser]benton.snyder[/eluser]
If your code relies on the encrypt library, then load it. If loading that library causes your login page not to show, that's where you need to start troubleshooting.

Hopefully you can tell if the logic in your code prevents the login page from being displayed. Most likely though there is an error being thrown. I would ensure that you are displaying errors, check your logs, and even load the CI profiler. If you still have trouble paste as much of the relevant code as you can.




Theme © iAndrew 2016 - Forum software by © MyBB