Strikewood / omnipay-first-atlantic-commerce

First Atlantic Commerce driver for the Omnipay PHP payment processing library
MIT License
12 stars 22 forks source link

Fatal error: Class 'Omnipay\Omnipay' not found #5

Closed aaronbesson closed 9 years ago

aaronbesson commented 9 years ago

I am getting the following error: Fatal error: Class 'Omnipay\Omnipay' not found in /home/content/p3nexnas06_data03/92/2137392/html/wp-content/plugins/woocommerce-first-atlantic-commerce-master/includes/class-wc-gateway-fac.php on line 206

einkoro commented 9 years ago

Are you using composer to install WordPress + plugins? The WooCommerce FAC extension requires composer to install and manage the autoloader for dependencies and hasn't been packaged for installing through WordPress itself.

aaronbesson commented 9 years ago

HI, I am not sure how to install composer on wordpress? Can you point me in the right direction?

einkoro commented 9 years ago

Recommended reading regarding using Composer + WordPress:

You will need SSH access to use composer. If you are on shared hosting it might be a pain.

aaronbesson commented 9 years ago

I was now having a look at the roots.io site, i have the wordpress master file, but i am shared hosting, so this is going to be painful, thanks!

einkoro commented 9 years ago

You could also fork the plugin, download the dependencies and add them into the plugin using require() in the main plugin file to include them. That should work fine in theory as long as they are in the correct order.

Probably easiest to use composer locally or in vagrant first and refer to the generated auto loader to get the requires in the right order.