![]() |
Unable to load the requested class: adldap - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Unable to load the requested class: adldap (/showthread.php?tid=50928) |
Unable to load the requested class: adldap - El Forum - 04-13-2012 [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..... Unable to load the requested class: adldap - El Forum - 04-13-2012 [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 Unable to load the requested class: adldap - El Forum - 04-16-2012 [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. Unable to load the requested class: adldap - El Forum - 02-10-2014 [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. |