Welcome Guest, Not a member yet? Register   Sign In
Unable to load the requested class: adldap
#1

[eluser]joe_h[/eluser]
Hi people, I use adLDAP class in codeigniter framework, but When I execute my application print a error

"Unable to load the requested class: adldap"

In autoload file I was configured this
$autoload['libraries'] = array('adLDAP');

In a application/libraries I put adLDAP.php file and it subfolders classes and collections


This application is ok in Windows SO but in Linux (I test in Ubuntu, Centos) print me this error "Unable to load the requested class: adldap"

What´s happen???

Forgive me by my English.....
#2

[eluser]MathBoon[/eluser]
Hi,

linux is case-sensitive and CI is formatting your library name with "strtolower".

So CI is looking for a class in a file called "adldap.php", but there's only "adLDAP.php".

Windows doesn't care about that, but linux does, so just rename the file to "adldap.php".

Hope that helped
#3

[eluser]joe_h[/eluser]
I test this and nothing. I change the file name of adLDAP.php by adldap.php. I change the class name by Adldap and nothing.
#4

[eluser]Unknown[/eluser]
Hi Joe,

Did you find a solution to this issue? As I am having the same problem.

---- Edit

Found the issue, rename class to AdLDAP and file to AdLDAP.php - first letter must be capital.

Also rename any references to that file used in other classes.




Theme © iAndrew 2016 - Forum software by © MyBB