![]() |
Unable to load library, only on remote server - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Unable to load library, only on remote server (/showthread.php?tid=38993) |
Unable to load library, only on remote server - El Forum - 02-25-2011 [eluser]Unknown[/eluser] Hi, I'm having a very weird error here. I made a site in codeIgniter that displays all the pictures from a Flickr account, I used the phpFlickr library to do this. During development on my localhost, everything works perfect and all albums and pictures from Flickr are loaded. Now i moved the site to my online webspace and now CI gives me the following error: An Error Was Encountered Unable to load the requested class: phpflickr Can someone please explain me why this works perfectly on my localhost (MAMP) but not on the remote server? Thanx Arne Unable to load library, only on remote server - El Forum - 02-25-2011 [eluser]beaufrusetta[/eluser] I've had this happen to me before. Locally, my laptop didn't care too much about case sensitivity, but on the server, it did. Try camel-casing the file name in the load->library call (or autoloader) - whichever one you use. Unable to load library, only on remote server - El Forum - 02-25-2011 [eluser]Unknown[/eluser] Indeed, that was the problem, renamed my phpFlickr.php file to phpflickr.php and now it loads perfect. Forgot the case sensitivity in linux server for a minute :p Thx for the reply Unable to load library, only on remote server - El Forum - 02-25-2011 [eluser]beaufrusetta[/eluser] Glad I could help! Unable to load library, only on remote server - El Forum - 02-26-2011 [eluser]Unknown[/eluser] Hi there! I am having the same problem that all my libralies work fine in my local computer but when i uplod to the server i get the same error; An Error Was Encountered Unable to load the requested class: Pearloader I have tried to change the file name to lowercase as suggested but nothing have worked yet. Can anyone help? Unable to load library, only on remote server - El Forum - 04-18-2011 [eluser]Cesar Kohl[/eluser] That was my problem too. Thanks for the tip! Unable to load library, only on remote server - El Forum - 04-18-2011 [eluser]InsiteFX[/eluser] If you use an ftp program most of them have a setting to upload all files as lowercase! InsiteFX |