Forums » Plugin: Payment Plugins Braintree For WooCommerce » Included Braintree_PHP library not compatible with PHP 8.1

  • Hi!

    I see that the Braintree-PHP library included in the plugin (in vendor/braintree/braintree_php/ directory) is the 5.5.0 version, from January 2021.

    This is causing problems in our site when trying to upgrade to PHP version 8.1.

    Could you please update the included braintree_php library so we can safely upgrade the used PHP version?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    @davefx

    Yes, we will be including an updated Braintree PHP library in the next release coming out at the end of this week.

    Thanks,

    Plugin Author Payment Plugins

    (@mrclayton)

    @davefx What issue are you having exactly with PHP 8.1? Our tests with PHP 8.1 work fine.

    I dont know if it is ok to comment but I am also having issues on PHP 8.1. Plugin works great on php 8.0 and below but on php 8.1 i immediately get a 500 error.

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @needmystyle

    Navigate to the WooCommerce > Status > Logs page and look for a “fatal-error” log entry.

    We tested the plugin extensively with php 8.0, 8.1, and 8.2 so I am not sure why you would be getting an error. The log file will provide more info on where the error is originating and if it’s coming from the Braintree plugin.

    Kind Regards,

    Thank you for the quick reply

    https://pastebin.com/WafnNZbE

    here is the error log when the plugin is enabled.

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @needmystyle

    Can you use something like Imgur for the error log? That link is returning a 403 forbidden code.

    Kind Regards,

    Sorry for the delayed reply. The link now works now if you’re still curious, I had the pasted code set to private by accident.

    On the other hand i was able to resolve my issue by enabling some extensions on php 8.1. The plugin now works with no issues. Thanks for your time and the great plugin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Included Braintree_PHP library not compatible with PHP 8.1’ is closed to new replies.