Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello pokerzion

    Thank you for contacting Woo support.

    To diagnose the problem, let’s review the error logs on your site.
    You can find this under WooCommerce > System Status > Logs.

    To help you further, I’d like to review your site’s System Status Report.
    You can find it via WooCommerce > Status.
    Select Get system report and then Copy for support.

    Once you’ve done that, you can paste the text in https://gist.github.com
    After that, you can paste the Gist link here in your reply.

    Looking forward to your response. 🙂

    Best regards.

    Zubair,

    It’s impossible to get the status logs from the UI since this problem produces a critical error.

    Here is a stack trace from my Nginx logs:

    2024/06/23 16:51:39 [error] 1147#1147: *481 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Class “WC_Braintree” not found in …/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/class-wc-gateway-braintree-paypal-blocks-support.php:20

    Stack trace:

    #0 …/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/woocommerce-gateway-paypal-powered-by-braintree.php(601): WC_Gateway_Braintree_PayPal_Blocks_Support->__construct()

    #1 …/wp-includes/class-wp-hook.php(324): WC_PayPal_Braintree_Loader->{closure}()

    #2 …/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

    #3 …/wp-includes/plugin.php(517): WP_Hook->do_action()

    #4 …/wp-content/plugins/woocommerce/src/Blocks/Integrations/IntegrationRegistry.php(50): do_action()

    #5 …/public/wp-includes/class-wp-hook.php(324): Automattic\Woo” while reading response header from upstream, client: …, server: …, request: “GET /category/programming/ HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php-fpm.sock:”, host: “…”, referrer: “…”

    • This reply was modified 1 month, 1 week ago by user2037.
    • This reply was modified 1 month, 1 week ago by user2037.
    Plugin Support Shameem (woo-hc)

    (@shameemreza)

    Hi @user2037

    The error message you’ve shared indicates that the class “WC_Braintree” is not found. Can you please reinstall the Braintree for WooCommerce Payment Gateway plugin and see whether the error persists or not?

    In the meantime, you can run a conflict test to help you identify the cause of the issue. More info: https://woocommerce.com/document/how-to-test-for-conflicts/

    Let us know how that goes for you.

    Greetings Shameem,

    I have already removed the plugin files entirely and reinstalled twice. First from the WordPress.org plugin market and a second time from the new WooCommerce extension market. After both reinstalls the same error remained.

    The class referenced does exist, it is just not loaded. If I include its path in the file manifesting the problem then another class appears to be “not found”. My guess is the plugin is incompatible with the latest WooCommerce and/or PHP 8.3

    • This reply was modified 1 month, 1 week ago by user2037.
    Plugin Support Shameem (woo-hc)

    (@shameemreza)

    Hi @user2037

    My guess is the plugin is incompatible with the latest WooCommerce and/or PHP 8.3

    Yes, it could be. Have you tried testing with other PHP versions, like 8.2 or 8.1? Does the error still occur?

    However, I’m using PHP 8.3 on my testing site and I haven’t been able to replicate the error.

    Just to make sure we’re on the same page, does this error happen after you enable the plugin or when you make a payment through it? Could you walk me through the steps you took when the error occurred?

    Lastly, have you run a conflict test yet? If not, I recommend running one to help us pinpoint the root of the problem. More info: https://woocommerce.com/document/how-to-test-for-conflicts/

    I hope that helps! Let me know once you have done a conflict test!

    The critical error appears on any visit to the site, whenever the Braintree plugin is activated. I’ve tried reinstalling WordPress and WooCommerce from scratch, yet error still recurs.

    PHP 8.3.8
    WooCommerce 9.0.2
    WooCommerce Legacy REST API 1.0.2

    Deactivating other plugins did not help. Changing to a default theme didn’t help.

    • This reply was modified 1 month, 1 week ago by user2037.
    • This reply was modified 1 month, 1 week ago by user2037.
    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello user2037 

    Thank you for your reply.

    I have tested the Braintree plugin with PHP PHP 8.3.8 and WooCommerce 9.0.2.
    Everything appears to be working fine on my end.

    Here are screenshots for your reference:

    To further diagnose this issue, we need to determine if this problem occurs on a different server.
    Would it be possible for you to clone the site to a different server?
    It can be a local server environment like LocalWP.

    Looking forward to your response. 🙂

    Best regards.

    I had this exact same issue. The only thing that resolved it was to keep my version of the plugin the same and first update WC and all WC related plugins on the website. After doing this, I hit update on the outdated plugin and it worked.

    Plugin Support Shameem (woo-hc)

    (@shameemreza)

    Hi @pokerzion

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem!

    If you have further questions, please feel free to open a new topic.

    Thanks!

    lkraav

    (@lkraav)

    We are trying to install this plugin’s updates on WC 8.2.2, PHP 7.4.33, and found the latest version that will not crash is 3.1.3.

    All later versions crash with OP error.

    [08-Jul-2024 13:35:32 UTC] PHP Fatal error:  Uncaught Error: Class 'WC_Braintree' not found in /home/www/public_html/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/class-wc-gateway-braintree-paypal-blocks-support.php:20
    Stack trace:
    #0 /home/www/public_html/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/woocommerce-gateway-paypal-powered-by-braintree.php(601): WC_Gateway_Braintree_PayPal_Blocks_Support->__construct()
    #1 /home/www/public_html/wp-includes/class-wp-hook.php(310): WC_PayPal_Braintree_Loader->{closure}(Object(Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry))
    #2 /home/www/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
    #3 /home/www/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #4 /home/www/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Integrations/IntegrationRegistry.php(50): do_action('woocommerce_blo...', Object( in /home/www/public_html/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/class-wc-gateway-braintree-paypal-blocks-support.php on line 20

    We will upgrading WC and Braintree plugin step by step then.

    It’s disappointing the current set of “Requires” headers in this plugin don’t seem to disallow updating at least via WP CLI.

    • This reply was modified 4 weeks ago by lkraav.
    Plugin Support carolm29 (woo-hc)

    (@carolm29)

    Hey, @lkraav!

    Per WordPress forum guidelines, would you mind opening up a new thread for this so that we can keep things organized and offer more personalized support for you? We’ll be happy to help you out with this over there!

    Have a wonderful day!

    user2037

    (@user2037)

    FWIW, in my case the cause was PHP CURL was not installed. Ideally the plugin would check that required plugins are installed before fully activating, and emit a helpful flash message if not.

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @user2037,

    It’s important to have PHP CURL installed as it’s a key requirement for our plugins to function properly as we recommend users to ensure they meet all the system requirements before installing the plugin to avoid any issues.

    However, we appreciate you sharing this information with the community.

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