Search code examples
phpincludeinclude-pathstripe-payments

Error when trying to include stripe.php


I'm trying to use Stripe for payment processing. I got everything running smoothly from my local machine, and everything ran smoothly on a secondary server as well.

However, when I copied everything over to the live server, the site throws an error when trying to include Stripe.php:

Array
(
    [type] => 2
    [message] => include(): Failed opening 'stripe/lib/stripe.php' for inclusion    
    (include_path='.:/usr/lib/php6')
    [file] => /..../stripeprocess.php
    [line] => 10
)

Let me know if you need any more information


Solution

  • Correct the path to the include, or use the full path, or set your local include path via set_include_path(). /..../ doesn't make any sense.