no

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

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

:-)

Related

server management 5036934159068872882

Post a Comment

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!

item