-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type error on cart total check with get_cart_contents_total() on null (635) #603
Comments
Still getting this error and cannot accept PayPal credit cards on front end. 2022-05-15T17:44:18+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_total() on null in /nas/content/live/wpsites/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php:1227 |
@braddalton The fix linked in this PR will not be implemented as the error has been addressed in #606 which will be included in the next 1.9.0 update. The fix in this PR prevents the error and is an easy change to apply, but version 1.7.0 or this package with the actual fix applied could also be used to prevent the error. |
1.7 doesn't work for me. Same error. It displays the popup and shows the credit card fields for 1 second but then closes and shows an error. Logs are the same as i previously published. v.mov |
@braddalton The error from this issue is unrelated to this message in the popup window from your video. What happens in this window is usually outside of the scope of the plugin. Have you given it a try with a PayPal sandbox account connected to rule out an issue with the merchant account? |
This issue is still valid in wordpress API: ends up with: https://ss.codeone.pl/ss-2022-05-18-21-52-11-1652903531-ggeDyjnk.png |
Describe the Bug
There are multiple errors reported:
Seems like there can be multiple causes for the same error.
To Reproduce
not quite sure how to reproduce but there are multiple reports.
The text was updated successfully, but these errors were encountered: