• Resolved Jason

    (@galapogos01)


    Hey Team,

    As raised in previous topics, this plugin creates deprecation notices when run in PHP8.

    PHP message: PHP Deprecated:  Creation of dynamic property WC_Gateway_Braintree_PayPal::$button_appearance_title is deprecated in wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php on line 374;
    PHP message: PHP Deprecated: Creation of dynamic property WC_Gateway_Braintree_PayPal::$enable_paypal_credit is deprecated in wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php on line 374;
    PHP message: PHP Deprecated: Creation of dynamic property WC_Gateway_Braintree_PayPal::$button_preview is deprecated in wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php on line 374;
    PHP message: PHP Deprecated: Creation of dynamic property WC_Gateway_Braintree_PayPal::$connection_settings is deprecated in wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php on line 374

    The previous issues 7 months back said this would be fixed in the next release – it is still not fixed in 3.2.0.

    Can we please get a timeline for a fix? Deprecation notices cause performance issues on large sites.

    Thanks,
    Jason

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @galapogos01

    At the time being, we can’t give you an estimate for when the team will look into or fix the issue, as bug reports are prioritized based on a few criteria.

    In the meantime, you may consider downgrading your PHP version to a stable and compatible one to avoid these warnings, if that’s feasible for your setup.

    Thank you for your patience and understanding.

    Thread Starter Jason

    (@galapogos01)

    The plugin changelog states it’s been tested against PHP 8.3 – clearly not very well!

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @galapogos01

    I installed the latest version, upgraded my PHP to 8.3, and turned on the debug mode. Once I checked my debug log file, I still spotted the depreciation error from Braintree in the WooCommerce Payment Gateway plugin. Interestingly, the PHP 8.1 version didn’t produce any warning.

    I will make sure to forward this to our dev team. In the meantime, you may consider downgrading your PHP version to 8.1 to avoid these warnings, if that’s feasible for your setup.

    I wish I could help more, but hopefully, this provides some clarity. Please let us know if you have any other questions!

    Hello to you @shameemreza ,

    To follow up on @galapogos01 post, the plugin can run with PHP 8.2 or PHP 8.3 but doesn’t play well with those environments, especially with Woocommerce Subscriptions. Downgrading to PHP 8.1 didn’t help at the first sight.

    The task scheduler failed to perform correctly on 2 different hosting platforms if I don’t exclude all notices and warnings from the PHP error log settings ??

    Manually triggering renewal payments and a few other actions performed correctly but crashed at the end with a beautiful 500. From what I got from the error logs, it looks like an issue with notifications and an empty WC Session object ??

    It looks to work properly now with PHP 8.1 but I applied a few patches.
    Here the pastebin of what worked in my case :
    https://pastebin.com/Pg0pjMRz

    Hope this might helps or inspires other devs as well, and give you more hints on the next release. ??

    Kind regards,

    Peter

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello Pierre-Henri Lavigne,

    Thank you for your valuable suggestions.

    I truly appreciate your input and I’m sure that these recommendations will be incredibly helpful in resolving the issue.

    Best regards.

    @doublezed2 Thank you for getting back to me, I appreciate.

    One point : I was in a hurry and I do lots of custom work. The error with the schedule manager can easily be triggered in a “standard” PHP 8.3 install I guess, about the second one, the error logs was pretty clear about WC()->session->get() undefined but who knows it could be coming from a third-party addon as well. I didn’t do deep testing

    Not for granted info but a tiny extra check in a few “if / else scope” helpt a lot. ??
    Wish you the best for the next releases, have a wonderful day and best regards,

    Peter

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello Pierre-Henri Lavigne,

    Thank you for your reply.

    Appreciate your contribution!
    It’s dedicated individuals like you who help open-source projects thrive.

    Please feel free to share your results after conducting more detailed tests.

    Best regards.

    I can’t speak to the wide variety of issues encountered by users here, but seeing a fix to dynamically declared properties would really be appreciated.

    Deprecated: Creation of dynamic property WC_Gateway_Braintree_PayPal::$button_appearance_title is deprecated in .../plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php on line 374

    Deprecated: Creation of dynamic property WC_Gateway_Braintree_PayPal::$enable_paypal_credit is deprecated in .../plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php on line 374

    Deprecated: Creation of dynamic property WC_Gateway_Braintree_PayPal::$button_preview is deprecated in .../plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php on line 374

    Deprecated: Creation of dynamic property WC_Gateway_Braintree_PayPal::$connection_settings is deprecated in .../plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php on line 374

    Deprecated: Creation of dynamic property WC_Gateway_Braintree_PayPal::$pay_later_messaging_logo_type is deprecated in .../plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php on line 374

    Deprecated: Creation of dynamic property WC_Gateway_Braintree_PayPal::$pay_later_messaging_logo_position is deprecated in .../plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php on line 374

    Deprecated: Creation of dynamic property WC_Gateway_Braintree_PayPal::$pay_later_messaging_text_color is deprecated in .../plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php on line 374
    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hello @eclev91,

    Sorry about the experience you’re having with the Braintree for WooCommerce Payment Gateway plugin. I just wanted to share that the plugin was recently updated. Could you please give it a spin and see if the issues persists?

    If they do, please feel free to open a new topic so that we can be able to address the issue further.

    Cheers.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.