Title: Fatal errors &#8211; same issues
Last modified: June 10, 2024

---

# Fatal errors – same issues

 *  Resolved [pokerzion](https://wordpress.org/support/users/pokerzion/)
 * (@pokerzion)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/)
 * I’m having this exact same issue as the links below. I’m told to start a new 
   thread, so here it is. 🙂 Thought it might just be related to needing to update
   the plugin, so updated it, and it crashed the website w/ the same error these
   people are having:
 * [https://wordpress.org/support/topic/plugin-update-3-1-5-issue-php-fatal-error-uncaught-error/](https://wordpress.org/support/topic/plugin-update-3-1-5-issue-php-fatal-error-uncaught-error/)
 * [https://wordpress.org/support/topic/fatal-error-wc_braintree-not-found/](https://wordpress.org/support/topic/fatal-error-wc_braintree-not-found/)
 * Think there’s several major issues w/ this plugin. Hope you can figure it out
   soon, because we may need to change payment processors.

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [Zee](https://wordpress.org/support/users/doublezed2/)
 * (@doublezed2)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/#post-17816311)
 * Hello [pokerzion](https://wordpress.org/support/users/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](https://gist.github.com)
   
   After that, you can paste the Gist link here in your reply.
 * Looking forward to your response. 🙂
 * Best regards.
 *  [user2037](https://wordpress.org/support/users/user2037/)
 * (@user2037)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/#post-17844788)
 * 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 year, 11 months ago by [user2037](https://wordpress.org/support/users/user2037/).
    -  This reply was modified 1 year, 11 months ago by [user2037](https://wordpress.org/support/users/user2037/).
 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/#post-17845183)
 * Hi [@user2037](https://wordpress.org/support/users/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/](https://woocommerce.com/document/how-to-test-for-conflicts/)
 * Let us know how that goes for you.
 *  [user2037](https://wordpress.org/support/users/user2037/)
 * (@user2037)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/#post-17846424)
 * 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 year, 11 months ago by [user2037](https://wordpress.org/support/users/user2037/).
 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/#post-17846723)
 * Hi [@user2037](https://wordpress.org/support/users/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.
 * ![](https://i0.wp.com/s12.gifyu.com/images/Sru9J.gif?ssl=1)
 * 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/](https://woocommerce.com/document/how-to-test-for-conflicts/)
 * I hope that helps! Let me know once you have done a conflict test!
 *  [user2037](https://wordpress.org/support/users/user2037/)
 * (@user2037)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/#post-17847718)
 * 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.2WooCommerce Legacy REST API 1.0.2Deactivating other
   plugins did not help. Changing to a default theme didn’t help.
    -  This reply was modified 1 year, 11 months ago by [user2037](https://wordpress.org/support/users/user2037/).
    -  This reply was modified 1 year, 11 months ago by [user2037](https://wordpress.org/support/users/user2037/).
 *  [Zee](https://wordpress.org/support/users/doublezed2/)
 * (@doublezed2)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/#post-17848113)
 * Hello [user2037](https://wordpress.org/support/users/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:
 * ![](https://i0.wp.com/snipboard.io/5lrFNG.jpg?ssl=1)
 * ![](https://i0.wp.com/snipboard.io/8p2ruE.jpg?ssl=1)
 * 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.
 *  [qpl88](https://wordpress.org/support/users/qpl88/)
 * (@qpl88)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/#post-17853074)
 * 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 – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/#post-17873382)
 * Hi [@pokerzion](https://wordpress.org/support/users/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](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/#new-topic-0).
 * Thanks!
 *  [lkraav](https://wordpress.org/support/users/lkraav/)
 * (@lkraav)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/#post-17875882)
 * 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.
 *     ```wp-block-code
       [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:20Stack 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 1 year, 10 months ago by [lkraav](https://wordpress.org/support/users/lkraav/).
 *  [carolm29 (woo-hc)](https://wordpress.org/support/users/carolm29/)
 * (@carolm29)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/#post-17876548)
 * Hey, [@lkraav](https://wordpress.org/support/users/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](https://wordpress.org/support/users/user2037/)
 * (@user2037)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/#post-17906456)
 * 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.
 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/#post-17907778)
 * Hi [@user2037](https://wordpress.org/support/users/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)

The topic ‘Fatal errors – same issues’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-gateway-paypal-powered-by-braintree/assets/icon-
   256x256.png?rev=3234800)
 * [Braintree for WooCommerce Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-paypal-powered-by-braintree/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-paypal-powered-by-braintree/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/reviews/)

 * 13 replies
 * 8 participants
 * Last reply from: [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/fatal-errors-same-issues/#post-17907778)
 * Status: resolved