EllisLab text mark
Advanced Search
     
Unable to load the requested class: adldap
Posted: 13 April 2012 04:48 PM
Joined: 2012-01-30
23 posts

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…..

 
Posted: 13 April 2012 06:27 PM   [ # 1 ]   [ Rating: 0 ]
Joined: 2011-04-24
16 posts

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

 
Posted: 16 April 2012 09:20 AM   [ # 2 ]   [ Rating: 0 ]
Joined: 2012-01-30
23 posts

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.

 
Posted: 10 February 2014 08:37 PM   [ # 3 ]   [ Rating: 0 ]
Joined: 2014-02-10
1 posts

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.