codeigniter: Unable to load the requested class: paypal_lib

This happens when you deploy your application in a linux server machine. Since it's caps sensitive:

Paypal_Lib is different from Paypal_lib.

If you will look at magento's libraries/Loader.php code:

Line: 759


$baseclass = BASEPATH.'libraries/'.ucfirst($class).EXT;


You will notice the ucfirst which converts Paypal_Lib to Paypal_lib.

Solution: Just rename Paypal_Lib.php to Paypal_lib.php

:-)
codeigniter: Unable to load the requested class: paypal_lib codeigniter: Unable to load the requested class: paypal_lib Reviewed by czetsuya on Thursday, July 23, 2009 Rating: 5

1 comment:

Unknown said...

Yep, this fixed my problem, I had some custom libraries and was working on a local Windows server, after deploying on a Linux server, I had this problem. Thanks!

Powered by Blogger.