Error when checking TLS 1.2 Support in Stripe Module
I installed the Stripe module and the button to check for TLS 1.2 support gives me this error:
[PrestaShop] Fatal error in module file xxxxxxxxxxxx.com/modules/stripe/classes/autoload.php:
require(): Failed opening required ‘/xxxxxxxxxxxx.com/modules/stripe/classes/HttpClient/GuzzleClient.php’ (include_path=’/xxxxxxxxxxxx.com/vendor/pear/pear_exception:/home/bombcoffee/bomberocoffee.com/vendor/pear/console_getopt:/home/bombcoffee/bomberocoffee.com/vendor/pear/pear-core-minimal/src:/xxxxxxxxxxxx.com/vendor/pear/archive_tar:.:/usr/local/lib/php:/usr/local/php5/lib/pear’)
Let me know if you need more info.
Yeah, I have no idea how that landed in the build package (ok, not enough automated tests), but the autoloader somehow points to the wrong directory. You can fix it as follows:
- around line
$baseDir = __DIR__.'/';to
$baseDir = __DIR__.'/stripe-php/';, so it can find the right files again
Fix has been pushed and will be in the next version: https://github.com/thirtybees/stripe/commit/bd979d87a73e923071254e048ac7fd61f4d729f8
Nice! You are like snipers with your responses; quick, precise and deadly accurate.
I agree, Eric! The thirty bees team is terrific.