Skip to content
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

[GlobalStep] Fatal error "Uncaught Error: Call to a member function get_total() on null" is displayed on "Pages > Add New" page when any "Express checkouts" methods are enabled. #3598

Closed
1 of 3 tasks
Tracked by #3381
gglobalstep opened this issue Nov 11, 2024 · 0 comments · Fixed by #3599
Assignees
Labels
component: ECE Issues related to Express Checkout Element

Comments

@gglobalstep
Copy link

gglobalstep commented Nov 11, 2024

Bug Description:

Fatal error "Uncaught Error: Call to a member function get_total() on null" is displayed on "Pages > Add New" page when any "Express checkouts" methods are enabled.

Environment:

Woocommerce Version: 9.3.3
WordPress version: v6.6.2
WooCommerce Stripe Gateway Version: 8.9.0-test

PC:
Windows 10
Chrome (Version 130.0.6723.117)
Firefox (Version 132.0.1)

Steps to Reproduce:

  1. Create any test site.
  2. Install and activate all the required plugins.
  3. Upload and activate the WooCommerce Stripe Payment Gateway v8.9.0-test plugin.
  4. Connect the store to a Stripe account.
  5. Go to "Setting > Payment >Stripe > Payment methods page.
  6. Enable any "Express checkouts" methods.
  7. Go to "Pages > Add New" page
  8. Observe that, Fatal error "Uncaught Error: Call to a member function get_total() on null" is displayed.

Instruction Link:

https://github.com/woocommerce/woocommerce-gateway-stripe/wiki/Critical-flows-%E2%80%90-Instructions#manual-plugin-installation-and-setup

Actual Result:

Fatal error "Uncaught Error: Call to a member function get_total() on null" is displayed on "Pages > Add New" page when any "Express checkouts" methods are enabled.

Expected Result:

"Pages > Add New" page should be display properly when any "Express checkouts" methods are enabled.

Fatal error logs:

#3598 Fatal error logs.txt

Video:

3598.mp4

Woocommerce bugs uploading format:

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
  • This bug happens with a default WordPress theme active, or Storefront.
  • I can reproduce this bug consistently using the steps above.
System Status Report
### WordPress Environment ###

WordPress address (URL): [Redacted]
Site address (URL): [Redacted]
WC Version: 9.3.3
Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
Action Scheduler Version: ✔ 3.8.1
Log Directory Writable: ✔
WP Version: 6.6.2
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: ✔

### Server Environment ###

Server Info: nginx
PHP Version: 8.1.30
PHP Post Max Size: 2 GB
PHP Time Limit: 850
PHP Max Input Vars: 6144
cURL Version: 8.10.1
OpenSSL/3.0.14

SUHOSIN Installed: –
MySQL Version: 10.11.10-MariaDB-log
Max Upload Size: 2 GB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

### Database ###

[REDACTED]

### Post Type Counts ###

attachment: 25
page: 24
post: 1
product: 23
product_variation: 7
revision: 4
shop_coupon: 3
shop_order_placehold: 82
wp_navigation: 1

### Security ###

Secure connection (HTTPS): ✔
Hide errors from visitors: ✔

### Active Plugins (5) ###

Query Monitor: by John Blackbourn – 3.16.4
Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.3.3
WooCommerce Stripe Gateway: by Stripe – 8.9.0-test
WooCommerce Subscriptions: by WooCommerce – 6.8.0
WooCommerce: by Automattic – 9.3.3

### Inactive Plugins (0) ###


### Dropin Plugins () ###

advanced-cache.php: advanced-cache.php
db.php: Query Monitor Database Class (Drop-in)
object-cache.php: Memcached

### Must Use Plugins (1) ###

load.php: by  –

### Settings ###

Legacy API Enabled: –
Force SSL: –
Currency: USD ($)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
subscription (subscription)
variable (variable)
variable subscription (variable-subscription)

Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)

Connected to WooCommerce.com: –
Enforce Approved Product Download Directories: ✔
HPOS feature enabled: ✔
Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
HPOS data sync enabled: –

### Logging ###

Enabled: ✔
Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
Retention period: 30 days
Level threshold: –
Log directory size: 27 KB

### WC Pages ###

Shop base: #5 - /shop/
Cart: #6 - /cart/ -  Contains the woocommerce/cart block
Checkout: #7 - /checkout/ -  Contains the woocommerce/checkout block
My account: #8 - /my-account/
Terms and conditions: ❌ Page not set

### Theme ###

Name: Storefront
Version: 4.6.0
Author URL: https://woocommerce.com/
Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
WooCommerce Support: ✔

### Templates ###

Overrides: –

### Subscriptions ###

WCS_DEBUG: ✔ No
Subscriptions Mode: ✔ Live
Subscriptions Live URL: https://peaceful-lynx-raven.jurassic.ninja
Subscriptions-core Library Version: 7.6.0
Subscription Statuses: wc-active: 22
WooCommerce Account Connected: ❌ No
Report Cache Enabled: ✔ Yes
Cache Update Failures: ✔ 0 failure

### Store Setup ###

Country / State: United States (US) — California

### Subscriptions by Payment Gateway ###

Stripe: wc-active: 22

### Payment Gateway Support ###

Stripe: products
refunds
tokenization
add_payment_method
subscriptions
subscription_cancellation
subscription_suspension
subscription_reactivation
subscription_amount_changes
subscription_date_changes
subscription_payment_method_change
subscription_payment_method_change_customer
subscription_payment_method_change_admin
multiple_subscriptions


### Admin ###

Enabled Features: activity-panels
analytics
product-block-editor
coupons
core-profiler
customize-store
customer-effort-score-tracks
import-products-task
experimental-fashion-sample-products
shipping-smart-defaults
shipping-setting-tour
homescreen
marketing
mobile-app-banner
navigation
onboarding
onboarding-tasks
pattern-toolkit-full-composability
product-custom-fields
remote-inbox-notifications
remote-free-extensions
payment-gateway-suggestions
printful
shipping-label-banner
subscriptions
store-alerts
transient-notices
woo-mobile-welcome
wc-pay-promotion
wc-pay-welcome-page
launch-your-store

Disabled Features: experimental-blocks
minified-js
product-pre-publish-modal
settings
async-product-editor-category-field
product-editor-template-system
blueprint
reactify-classic-payments-settings

Daily Cron: ✔ Next scheduled: 2024-11-12 06:34:31 +00:00
Options: ✔
Notes: 57
Onboarding: skipped

### Action Scheduler ###

Complete: 175
Oldest: 2024-11-11 06:37:20 +0000
Newest: 2024-11-11 09:31:17 +0000

Failed: 4
Oldest: 2024-11-11 06:38:21 +0000
Newest: 2024-11-11 12:00:28 +0000

Pending: 25
Oldest: 2024-11-12 06:37:20 +0000
Newest: 2025-01-11 12:17:12 +0000


### Status report information ###

Generated at: 2024-11-11 12:55:49 +00:00
@Mayisha Mayisha self-assigned this Nov 11, 2024
@Mayisha Mayisha added the component: ECE Issues related to Express Checkout Element label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ECE Issues related to Express Checkout Element
Projects
None yet
2 participants