Title: Fatal error
Last modified: May 16, 2022

---

# Fatal error

 *  Resolved [Kyle T](https://wordpress.org/support/users/kyle9296/)
 * (@kyle9296)
 * [4 years ago](https://wordpress.org/support/topic/fatal-error-4154/)
 * I’m getting this error for credit card purchases but not PayPal account purchases.
   It appears from the error log that it started when the v1.8 update occurred two
   weeks ago. How do I roll back the update? I’m losing business.
 * [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically
   incorrect, or failed business validation. [https://developer.paypal.com/docs/api/orders/v2/#error-TRANSACTION_REFUSED](https://developer.paypal.com/docs/api/orders/v2/#error-TRANSACTION_REFUSED)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-4154%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Kyle T](https://wordpress.org/support/users/kyle9296/)
 * (@kyle9296)
 * [4 years ago](https://wordpress.org/support/topic/fatal-error-4154/#post-15651197)
 * This is my error log…
 *     ```
       2022-05-16T05:45:30+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_total() on null in /home/customer/www/phdtackle.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php:1227
       Stack trace:
       #0 /home/customer/www/phdtackle.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(448): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->is_cart_price_total_zero()
       #1 /home/customer/www/phdtackle.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(229): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->render_button_wrapper_registrar()
       #2 /home/customer/www/phdtackle.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/ButtonModule.php(57): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->render_wrapper()
       #3 /home/customer/www/phdtackle.com/public_html/wp-includes/class-wp-hook.php(307): WooCommerce\PayPalCommerce\ in /home/customer/www/phdtackle.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php on line 1227
       ```
   
 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [4 years ago](https://wordpress.org/support/topic/fatal-error-4154/#post-15652677)
 * Hi [@kyle9296](https://wordpress.org/support/users/kyle9296/),
 * The message `TRANSACTION_REFUSED` and the error in the log entry are not directly
   related to each other.
    This error should be resolved in the upcoming plugin 
   update 1.9.0 though. But this API response `TRANSACTION_REFUSED` is coming directly
   from PayPal. The [PayPal MTS](https://www.paypal-techsupport.com/s/login/) is
   usually in a better position to assist with refused transactions.
 * Two potential workarounds for the error message from your log would be either
   a temporary downgrade to [version 1.7.0](https://downloads.wordpress.org/plugin/woocommerce-paypal-payments.1.7.0.zip)
   or alternatively trying it with [this test version](https://drive.google.com/uc?export=download&id=1Hv9UADygkkpST2Ke1znqZSIbhiYDNzE9)
   that implements the fix from the next release.
    I hope that helps!
 * Kind regards,
    Niklas
 *  Thread Starter [Kyle T](https://wordpress.org/support/users/kyle9296/)
 * (@kyle9296)
 * [4 years ago](https://wordpress.org/support/topic/fatal-error-4154/#post-15671279)
 * The ‘transaction refused’ error/alert is understandable. Everyone trying to check
   out with a CC was getting that error using version 1.8.0. If they chose PayPal
   Checkout it worked with no issues. I rolled back to version 1.7.1 which appears
   to be working.
 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-4154/#post-15766008)
 * Hi [@kyle9296](https://wordpress.org/support/users/kyle9296/),
 * Apologies for getting back just now!
    We regret the trouble but would be happy
   to learn more about the payment failures you describe.
 * Following update 1.8.0 some users reported compatibility issues with certain 
   third-party plugins (like certain Siteground plugins), which have been addressed
   for the most part in update 1.8.1. If the problem persists for you, could you
   maybe give it a try with this pre-release of the upcoming 1.8.2 update?: [https://github.com/woocommerce/woocommerce-paypal-payments/releases/tag/1.8.2-test1](https://github.com/woocommerce/woocommerce-paypal-payments/releases/tag/1.8.2-test1)
   
   Feedback about whether or not this helps is always appreciated. Thanks!
 * Kind regards,
    Niklas
 *  Plugin Support [Syde Joost](https://wordpress.org/support/users/joostvandevijver/)
 * (@joostvandevijver)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-4154/#post-15797560)
 * Since we haven’t heard back from you, I’m going to mark it as resolved.
    In case
   you’re still having problems, feel free to let us know!

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

The topic ‘Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

## Tags

 * [paypal](https://wordpress.org/support/topic-tag/paypal/)

 * 5 replies
 * 3 participants
 * Last reply from: [Syde Joost](https://wordpress.org/support/users/joostvandevijver/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-4154/#post-15797560)
 * Status: resolved