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

Fatal error in subscriptions-core reference to WC_Subscriptions class in WCS_PayPal class #3245

Closed
brianyu28 opened this issue Oct 28, 2021 · 11 comments · Fixed by Automattic/woocommerce-subscriptions-core#27
Labels
component: wcpay subscriptions Issues related to Stripe Billing Subscriptions priority: critical The issue is critical—e.g. a fatal error, security problem affecting many customers. type: bug The issue is a confirmed bug.

Comments

@brianyu28
Copy link
Contributor

brianyu28 commented Oct 28, 2021

Describe the bug

A few users have reported the error Uncaught Error: Class 'WC_Subscriptions' not found coming from
/wp-content/plugins/woocommerce-payments/vendor/woocommerce/subscriptions-core/includes/gateways/paypal/class-wcs-paypal.php:630.

https://wordpress.org/support/topic/fatal-php-errors-in-version-3-2-0-php-7-2-34/#post-15016289

My understanding is that WC_Subscriptions is not a class defined in subscriptions-core, so references to it in subscriptions-core should be removed.

To Reproduce

Haven't yet been able to reproduce.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

WC Version: 5.8.0 REST API Version: ✔ 5.8.0 WC Blocks Version: ✔ 5.9.1 Action Scheduler Version: ✔ 3.3.0 WC Admin Version: ✔ 2.7.2 Log Directory Writable: ✔ WP Version: 5.8.1 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: ✔ WP Cron: ✔ Language: en_US External object cache: ✔

Server Info: nginx
PHP Version: 7.3.31
PHP Post Max Size: 2 GB
PHP Time Limit: 1200
PHP Max Input Vars: 6144
cURL Version: 7.78.0
OpenSSL/1.1.1d

Active Plugins (26)

Akismet Anti-Spam: by Automattic – 4.2.1
AMP: by AMP Project Contributors – 2.1.4
CoBlocks: by GoDaddy – 2.18.1
Facebook for WooCommerce: by Facebook – 2.6.5
WordPress.com Editing Toolkit: by Automattic – 3.17756
GA Google Analytics: by Jeff Starr – 20210719
Google Listings and Ads: by WooCommerce – 1.5.1
Site Kit by Google: by Google – 1.44.0
Gutenberg: by Gutenberg Team – 11.7.1
Health Check & Troubleshooting: by The WordPress.org community – 1.4.5
Jetpack: by Automattic – 10.3-beta
Layout Grid: by Automattic – 1.7
Page Optimize: by Automattic – 0.5.1
Crowdsignal Polls & Ratings: by Automattic
Inc. – 3.0.1

Rearrange Woocommerce Products: by Aslam Doctor – 3.0.4
Splitit - WooCommerce plugin: by IWD – 3.0.1
Tax Rate Upload: by Adam Bowen – 2.4.5
Braintree for WooCommerce Payment Gateway: by WooCommerce – 2.6.1
WooCommerce Stripe Gateway: by WooCommerce – 5.7.0
Booster for WooCommerce: by Pluggabl LLC – 5.4.8
WooCommerce PayPal Payments: by WooCommerce – 1.6.1
WooCommerce Square: by WooCommerce – 2.6.0
WooCommerce: by Automattic – 5.8.0
Yoast SEO: by Team Yoast – 17.4
Wp Edit Password Protected: by Noor alam – 1.1.8
WP-Spreadplugin: by Thimo Grauerholz – 4.8.5

Inactive Plugins (5)

Classic Editor: by WordPress Contributors – 1.6.2
UsersWP - ReCaptcha: by AyeCode Ltd – 1.3.10
WooCommerce Payments: by Automattic – 3.2.0
WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.3
WooCommerce Shipping & Tax: by WooCommerce – 1.25.19

Dropin Plugins (2)

advanced-cache.php: advanced-cache.php
object-cache.php: Memcached

Must Use Plugins (2)

Health Check Troubleshooting Mode: by – 1.7.2
WP.com Site Helper: by –

@brianyu28 brianyu28 added type: bug The issue is a confirmed bug. component: wcpay subscriptions Issues related to Stripe Billing Subscriptions labels Oct 28, 2021
@haszari
Copy link
Contributor

haszari commented Oct 28, 2021

Possibly need Paypal gateway installed and configured - I see Paypal mentioned in all the reports.

@haszari
Copy link
Contributor

haszari commented Oct 28, 2021

That class WCS_PayPal should probably not be invoked at all, since WC Pay Subscriptions only supports WC Pay gateway. I'm looking at how to disable it higher up.

@haszari
Copy link
Contributor

haszari commented Oct 28, 2021

Possibly requires Braintree for WooCommerce Payment Gateway installed and active. (PayPal alternative plugin)

@haszari
Copy link
Contributor

haszari commented Oct 28, 2021

Stack trace:

Error Details
=============
An error of type E_ERROR was caused in line 630 of the file /home1/comingp2/public_html/wp-content/plugins/woocommerce-payments/vendor/woocommerce/subscriptions-core/includes/gateways/paypal/class-wcs-paypal.php. Error message: Uncaught Error: Class 'WC_Subscriptions' not found in /home1/comingp2/public_html/wp-content/plugins/woocommerce-payments/vendor/woocommerce/subscriptions-core/includes/gateways/paypal/class-wcs-paypal.php:630
Stack trace:
#0 /home1/comingp2/public_html/wp-content/plugins/woocommerce-payments/vendor/woocommerce/subscriptions-core/includes/gateways/paypal/includes/abstracts/abstract-wcs-sv-api-base.php(413): WCS_PayPal->get_version()
#1 /home1/comingp2/public_html/wp-content/plugins/woocommerce-payments/vendor/woocommerce/subscriptions-core/includes/gateways/paypal/includes/abstracts/abstract-wcs-sv-api-base.php(323): WCS_SV_API_Base->get_request_user_agent()
#2 /home1/comingp2/public_html/wp-content/plugins/woocommerce-payments/vendor/woocommerce/subscriptions-core/includes/gateways/paypal/includes/abstracts/abstract-wcs-sv-api-base.php(105): WCS_SV_API_Base->get_request_args()
#3 /home1/comingp2/public_html/wp-content/plugins/woocommerce-payments/vendor/woocommerce/subscriptions-core/includes/gateways/paypal

@haszari
Copy link
Contributor

haszari commented Oct 28, 2021

Based on that call stack it looks like this is happening when preparing a request to the PayPal API, in subs-core code. So that's a bug - WC Subscriptions pro is not active, so all subscriptions should use WC Pay (or manual/paused).

@apmwebdev
Copy link

Another report in 32333443-hc. SSR posted below. They are on PHP 7.2.34.

### WordPress Environment ###

WordPress address (URL): https://www.merrette.com
Site address (URL): https://www.merrette.com
WC Version: 5.7.1
REST API Version: ✔ 5.7.1
WC Blocks Version: ✔ 5.7.2
Action Scheduler Version: ✔ 3.2.1
WC Admin Version: ✔ 2.6.5
Log Directory Writable: ✔
WP Version: 5.8.1
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: –

### Server Environment ###

Server Info: Apache
PHP Version: 7.2.34
PHP Post Max Size: 516 MB
PHP Time Limit: 30
PHP Max Input Vars: 1000
cURL Version: 7.78.0
OpenSSL/1.1.1l

SUHOSIN Installed: –
MySQL Version: 5.7.23-23
Max Upload Size: 512 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

### Database ###

WC Database Version: 5.7.1
WC Database Prefix: portal_
Total Database Size: 50.64MB
Database Data Size: 35.28MB
Database Index Size: 15.36MB
portal_woocommerce_sessions: Data: 2.02MB + Index: 0.05MB + Engine InnoDB
portal_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
portal_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
portal_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
portal_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
portal_woocommerce_order_itemmeta: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
portal_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
portal_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
portal_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
portal_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
portal_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
portal_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
portal_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
portal_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
portal_actionscheduler_actions: Data: 1.02MB + Index: 0.56MB + Engine InnoDB
portal_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
portal_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
portal_actionscheduler_logs: Data: 0.34MB + Index: 0.27MB + Engine InnoDB
portal_ce4wp_abandoned_checkout: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
portal_ce4wp_contacts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
portal_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
portal_comments: Data: 0.09MB + Index: 0.09MB + Engine InnoDB
portal_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
portal_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
portal_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
portal_options: Data: 7.02MB + Index: 1.08MB + Engine InnoDB
portal_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
portal_pmxi_hash: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
portal_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
portal_pmxi_images: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
portal_pmxi_imports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
portal_pmxi_posts: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
portal_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
portal_postmeta: Data: 7.44MB + Index: 6.11MB + Engine InnoDB
portal_posts: Data: 4.08MB + Index: 0.64MB + Engine InnoDB
portal_social_users: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
portal_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
portal_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
portal_term_relationships: Data: 0.16MB + Index: 0.11MB + Engine InnoDB
portal_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
portal_usermeta: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
portal_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
portal_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
portal_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
portal_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
portal_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
portal_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
portal_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
portal_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
portal_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
portal_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
portal_wc_product_meta_lookup: Data: 0.25MB + Index: 0.48MB + Engine InnoDB
portal_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
portal_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
portal_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
portal_woocommerce_square_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
portal_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
portal_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
portal_yith_wcwl: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
portal_yith_wcwl_lists: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
portal_yoast_indexable: Data: 2.52MB + Index: 0.69MB + Engine InnoDB
portal_yoast_indexable_hierarchy: Data: 0.14MB + Index: 0.17MB + Engine InnoDB
portal_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
portal_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
portal_yoast_seo_links: Data: 0.23MB + Index: 0.14MB + Engine InnoDB
wpstg0_actionscheduler_actions: Data: 0.02MB + Index: 0.13MB + Engine InnoDB
wpstg0_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpstg0_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpstg0_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_ce4wp_abandoned_checkout: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpstg0_ce4wp_contacts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpstg0_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wpstg0_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpstg0_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_options: Data: 2.17MB + Index: 0.08MB + Engine InnoDB
wpstg0_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_pmxi_hash: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_pmxi_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_pmxi_imports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_pmxi_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_postmeta: Data: 2.52MB + Index: 1.97MB + Engine InnoDB
wpstg0_posts: Data: 2.52MB + Index: 0.28MB + Engine InnoDB
wpstg0_social_users: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_term_relationships: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
wpstg0_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wpstg0_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wpstg0_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
wpstg0_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpstg0_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wpstg0_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wpstg0_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_wc_product_meta_lookup: Data: 0.13MB + Index: 0.17MB + Engine InnoDB
wpstg0_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpstg0_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpstg0_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpstg0_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wpstg0_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpstg0_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpstg0_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpstg0_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpstg0_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_woocommerce_square_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wpstg0_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpstg0_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpstg0_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpstg0_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB

### Post Type Counts ###

addify_rfq: 2
addify_whp: 6
attachment: 860
blocks: 8
featured_item: 8
global_product_addon: 2
jp_pay_product: 597
nav_menu_item: 41
page: 94
post: 11
product: 138
product_variation: 1438
revision: 289
shop_coupon: 13
shop_order: 62
shop_order_refund: 3
ux_template: 1
wpcf7_contact_form: 5

### Security ###

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

### Active Plugins (32) ###

Akismet Anti-Spam: by Automattic – 4.2.1
Contact Form 7: by Takayuki Miyoshi – 5.4.2
Creative Mail by Constant Contact: by Constant Contact – 1.4.6
Bayna - Deposits for WooCommerce: by Codeixer – 1.1.3
Facebook for WooCommerce: by Facebook – 2.6.5
Hide Categories Or Products On Shop Page: by Kaushik Nakrani – 1.0.3
Hide Price and Add to Cart Button: by Addify – 1.2.4
Jetpack: by Automattic – 10.1
Google Ads & Marketing by Kliken: by Kliken – 1.0.7
Mailchimp for WooCommerce: by Mailchimp – 2.5.3
Menu Image: by Rui Guerreiro – 3.0.4
MOJO Marketplace: by Mike Hansen – 1.5.8
Nextend Social Login: by Nextendweb – 3.1.1
OptinMonster: by OptinMonster Team – 2.6.4
Really Simple SSL: by Really Simple Plugins – 5.1.1
User Role Editor: by Vladimir Garagulya – 4.60.2
Print Invoice & Delivery Notes for WooCommerce: by Tyche Softwares – 4.6.4
WooCommerce Stripe Gateway: by WooCommerce – 5.6.0
WooCommerce Payments: by Automattic – 3.0.0
WooCommerce Product Add-ons: by WooCommerce – 4.2.0
WooCommerce Shipping & Tax: by WooCommerce – 1.25.18
WooCommerce USPS Shipping: by WooCommerce – 4.4.64
WooCommerce: by Automattic – 5.7.1
WordPress Importer: by wordpressdotorg – 0.7
Yoast SEO: by Team Yoast – 17.2.1
WP Add Mime Types: by Kimiya Kitani – 3.0.0
WP All Import: by Soflyy – 3.6.2
WP File Manager: by mndpsingh287 – 7.1.2
WP STAGING: by WP-STAGING – 2.8.8
WPForms Lite: by WPForms – 1.6.9
YITH WooCommerce Badge Management: by YITH – 1.5.1
YITH WooCommerce Wishlist: by YITH – 3.1.1

### Inactive Plugins (1) ###

Stripe For WooCommerce: by Payment Plugins
support@paymentplugins.com – 3.3.10


### Must Use Plugins (2) ###

Endurance Page Cache: by Mike Hansen – 2.1.1
WP STAGING Optimizer: by René Hermenau – 1.5.1

### Settings ###

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)
variable (variable)

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: ✔

### WC Pages ###

Shop base: #883 - /shop/
Cart: #1539 - /cart/
Checkout: #1541 - /checkout/
My account: #1543 - /my-account/
Terms and conditions: #1882 - /terms-and-conditions/

### Theme ###

Name: Flatsome
Version: 3.14.3
Author URL: http://www.uxthemes.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: flatsome/woocommerce/archive-product.php
flatsome/woocommerce/cart/cart-empty.php
flatsome/woocommerce/cart/cart-shipping.php
flatsome/woocommerce/cart/cart.php
flatsome/woocommerce/checkout/form-checkout.php
flatsome/woocommerce/checkout/form-coupon.php
flatsome/woocommerce/checkout/terms.php
flatsome/woocommerce/checkout/thankyou.php
flatsome/woocommerce/content-product-cat.php
flatsome/woocommerce/content-product.php
flatsome/woocommerce/content-single-product.php
flatsome/woocommerce/content-widget-product.php
flatsome/woocommerce/global/breadcrumb.php
flatsome/woocommerce/global/quantity-input.php
flatsome/woocommerce/global/wrapper-end.php
flatsome/woocommerce/global/wrapper-start.php
flatsome/woocommerce/loop/loop-end.php
flatsome/woocommerce/loop/loop-start.php
flatsome/woocommerce/loop/pagination.php
flatsome/woocommerce/loop/result-count.php
flatsome/woocommerce/loop/sale-flash.php
flatsome/woocommerce/myaccount/form-login.php
flatsome/woocommerce/myaccount/navigation.php
flatsome/woocommerce/notices/error.php
flatsome/woocommerce/notices/notice.php
flatsome/woocommerce/notices/success.php
flatsome/woocommerce/product-searchform.php
flatsome/woocommerce/single-product/photoswipe.php
flatsome/woocommerce/single-product/price.php
flatsome/woocommerce/single-product/product-image.php
flatsome/woocommerce/single-product/product-thumbnails.php
flatsome/woocommerce/single-product/rating.php
flatsome/woocommerce/single-product/related.php
flatsome/woocommerce/single-product/review.php
flatsome/woocommerce/single-product/sale-flash.php
flatsome/woocommerce/single-product/share.php
flatsome/woocommerce/single-product/short-description.php
flatsome/woocommerce/single-product/tabs/tabs.php
flatsome/woocommerce/single-product/title.php
flatsome/woocommerce/single-product/up-sells.php
flatsome/woocommerce/single-product-reviews.php
flatsome/woocommerce/single-product.php
flatsome/woocommerce/content-product_cat.php


### Action Scheduler ###

Complete: 1,070
Oldest: 2021-09-02 20:07:34 -0400
Newest: 2021-10-03 02:02:13 -0400

Failed: 2
Oldest: 2021-05-02 01:26:02 -0400
Newest: 2021-05-13 21:55:05 -0400

Pending: 165
Oldest: 2021-10-03 18:56:51 -0400
Newest: 2021-11-16 00:29:43 -0500


### Status report information ###

Generated at: 2021-10-03 02:02:22 -04:00

@slash1andy
Copy link

Another report in 32333443-hc. SSR posted below. They are on PHP 7.2.34.

When they came back to chat, we walked through installing 3.1, which solved the issue.

@haszari haszari changed the title Fatal error in subscriptions-core code with reference to WC_Subscriptions Fatal error in subscriptions-core reference to WC_Subscriptions class in WCS_PayPal class Oct 28, 2021
@haszari haszari added the priority: critical The issue is critical—e.g. a fatal error, security problem affecting many customers. label Oct 28, 2021
@haszari
Copy link
Contributor

haszari commented Oct 28, 2021

Marking this as critical until we confirm how common this is.

@james-allan
Copy link
Contributor

Pulling in this comment from the first PR proposal so the context is included here too.


The reason we init PayPal in core is for downgrade reasons. If a WC Subscriptions store previously had PayPal Subscriptions, and they downgrade to WC Payments we need to be able to send the request to cancel those subscriptions at PayPal.

I think the end game for loading PayPal in core is a bit more complex. Something like only load it if there are PayPal Subscriptions left on the site.

So I think to patch this error we can either:

  • Fix the core issue and replace the WC_Subscriptions class use with WC_Subscriptions_Core_Plugin::instance()->get_plugin_version(), or
  • Do something like this and just not load PayPal at all and then investigate how we want to handle it.

The only reason why I think 2 might be a consideration is because I personally haven't tested the flow of having a PayPal Subscription, downgrading, switching to WC Pay Subscriptions, and confirming that PayPal cancels the old subscription. But I'd generally be in favour of going with 1, just in case - as a safer option.

Original comment: Automattic/woocommerce-subscriptions-core#24 (comment)


@solstudioim
Copy link

solstudioim commented Oct 29, 2021

As reported in 32458900-HC, the user updated to 3.2.1, but WC Pay backend threw an empty screen.

Screenshot: https://d.pr/i/MWJlli
Video screencast: https://drive.google.com/file/d/11HAoIT9tv_RwuFF0tok98V8-NafOyVfB/view

They temporarily used version 3.0.0, all working

SSR with version 3.2.1 active ` ### WordPress Environment ###

WordPress address (URL): https://www.lumengy.com
Site address (URL): https://www.lumengy.com
WC Version: 5.8.0
REST API Version: ✔ 5.8.0
WC Blocks Version: ✔ 5.9.1
Action Scheduler Version: ✔ 3.3.0
WC Admin Version: ✔ 2.7.2
Log Directory Writable: ✔
WP Version: 5.8.1
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: –

Server Environment

Server Info: Apache
PHP Version: 7.4.24
PHP Post Max Size: 100 MB
PHP Time Limit: 3600
PHP Max Input Vars: 10000
cURL Version: 7.58.0
OpenSSL/1.1.1

SUHOSIN Installed: –
MySQL Version: 5.7.35-38-log
Max Upload Size: 50 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

Database

WC Database Version: 5.8.0
WC Database Prefix: wp_
Total Database Size: 38.14MB
Database Data Size: 29.56MB
Database Index Size: 8.58MB
wp_woocommerce_sessions: Data: 1.30MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_order_items: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_order_itemmeta: Data: 0.31MB + Index: 0.30MB + Engine InnoDB
wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
ced_wgei_profiles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
ced_wgei_shipping_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_actionscheduler_actions: Data: 1.52MB + Index: 0.83MB + Engine InnoDB
wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_logs: Data: 1.52MB + Index: 0.44MB + Engine InnoDB
wp_adtribes_my_conversions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_commentmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
wp_comments: Data: 0.50MB + Index: 0.41MB + Engine InnoDB
wp_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB
wp_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
wp_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB
wp_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_glsr_assigned_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_glsr_assigned_terms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_glsr_assigned_users: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_glsr_ratings: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_iconic_woo_linked_variations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_megaventory_api_keys: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_megaventory_errors_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_megaventory_notices_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_megaventory_success_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nm_wooconvo: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_options: Data: 7.52MB + Index: 0.19MB + Engine InnoDB
wp_postmeta: Data: 7.52MB + Index: 3.03MB + Engine InnoDB
wp_posts: Data: 1.52MB + Index: 0.31MB + Engine InnoDB
wp_redirection_404: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wp_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB
wp_revslider_css_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_revslider_sliders: Data: 0.41MB + Index: 0.02MB + Engine InnoDB
wp_revslider_sliders_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_revslider_slides: Data: 1.52MB + Index: 0.02MB + Engine InnoDB
wp_revslider_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_revslider_static_slides: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_shortpixel_queue: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_termmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_term_relationships: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_usermeta: Data: 0.20MB + Index: 0.23MB + Engine InnoDB
wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_customer_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_gpf_render_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_product_lookup: Data: 0.06MB + Index: 0.06MB + Engine InnoDB
wp_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_gpf_google_taxonomy: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
wp_woodmart_wishlists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woodmart_wishlist_products: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woof_query_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wpcrm_system_recurring_entries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wt_iew_cron: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wt_iew_ftp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_yoast_indexable: Data: 1.52MB + Index: 0.41MB + Engine InnoDB
wp_yoast_indexable_hierarchy: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_yoast_prominent_words: Data: 0.06MB + Index: 0.08MB + Engine InnoDB
wp_yoast_seo_links: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
wp_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_yydev_tagmanager: Data: 0.02MB + Index: 0.00MB + Engine InnoDB

Post Type Counts

aiosrs-schema: 1
attachment: 878
cms_block: 30
cpt_iconic_wlv: 9
cwginstocknotifier: 29
e-landing-page: 1
elementor_library: 7
mc4wp-form: 1
nav_menu_item: 55
oembed_cache: 6
page: 17
post: 2
product: 38
revision: 1
shop_coupon: 17
shop_order: 256
shop_order_refund: 6
woodmart_sidebar: 1
woodmart_slide: 2
wpcf7_contact_form: 3

Security

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

Active Plugins (19)

Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro: by codewoogeek – 2.4.1
Contact Form 7: by Takayuki Miyoshi – 5.5.2
Elementor Pro: by Elementor.com – 3.4.2
Elementor: by Elementor.com – 3.4.6
WooCommerce Linked Variations by Iconic: by Iconic – 1.2.0
Jetpack: by Automattic – 10.2.1
MC4WP: Mailchimp for WordPress: by ibericode – 4.8.6
Order Status History for WooCommerce: by alx359 – 1.7.3
Product GTIN (EAN, UPC, ISBN) for WooCommerce: by Emanuela Castorina – 1.1.1
WooCommerce Amazon Fulfillment: by Never Settle – 3.3.8
WooCommerce Google Analytics Integration: by WooCommerce – 1.5.3
WooCommerce Payments: by Automattic – 3.2.1
WooCommerce Shipping & Tax: by WooCommerce – 1.25.19
WooCommerce Shipment Tracking: by WooCommerce – 1.6.29
WooCommerce: by Automattic – 5.8.0
Woodmart Core: by – 1.0.29
Yoast SEO Premium: by Team Yoast – 17.4
Yoast SEO: by Team Yoast – 17.4
Yoast SEO: WooCommerce: by Team Yoast – 14.4

Inactive Plugins (1)

Smush: by WPMU DEV – 3.9.1

Dropin Plugins (1)

advanced-cache.php: advanced-cache.php

Must Use Plugins (7)

Elementor Safe Mode: by Elementor.com – 1.0.0
Force Strong Passwords - WPE Edition: by Jason Cosper – 1.6.4
WPE ElasticPress Autosuggest Logger: by WP Engine – 1.0.0
WP Engine Cache Plugin: by WP Engine – 1.0.2
WP Engine Seamless Login Plugin: by WP Engine – 1.5.5
WP Engine Security Auditor: by wpengine – 1.0.10
WP Engine System: by WP Engine – 5.0.1

Settings

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: ✔

WC Pages

Shop base: #8 - /shop/
Cart: #9 - /cart/
Checkout: #10 - /checkout/
My account: #11 - /my-account/
Terms and conditions: #9089 - /terms-and-conditions/

Theme

Name: Woodmart
Version: 6.1.5
Author URL: http://themeforest.net/user/xtemos
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: woodmart/woocommerce/archive-product.php
woodmart/woocommerce/cart/cart-item-data.php
woodmart/woocommerce/cart/cart.php
woodmart/woocommerce/cart/cross-sells.php
woodmart/woocommerce/cart/mini-cart.php
woodmart/woocommerce/checkout/form-checkout.php
woodmart/woocommerce/checkout/thankyou.php
woodmart/woocommerce/content-product-cat.php
woodmart/woocommerce/content-product.php
woodmart/woocommerce/content-single-product.php
woodmart/woocommerce/content-widget-product.php
woodmart/woocommerce/global/breadcrumb.php
woodmart/woocommerce/global/form-login.php
woodmart/woocommerce/global/quantity-input.php
woodmart/woocommerce/loop/add-to-cart.php
woodmart/woocommerce/loop/loop-end.php
woodmart/woocommerce/loop/loop-start.php
woodmart/woocommerce/loop/no-products-found.php
woodmart/woocommerce/loop/orderby.php
woodmart/woocommerce/loop/pagination.php
woodmart/woocommerce/loop/sale-flash.php
woodmart/woocommerce/myaccount/form-login.php
woodmart/woocommerce/product-searchform.php
woodmart/woocommerce/single-product/add-to-cart/grouped.php
woodmart/woocommerce/single-product/add-to-cart/variable.php
woodmart/woocommerce/single-product/meta.php
woodmart/woocommerce/single-product/product-image.php
woodmart/woocommerce/single-product/product-thumbnails.php
woodmart/woocommerce/single-product/rating.php
woodmart/woocommerce/single-product/related.php
woodmart/woocommerce/single-product/sale-flash.php
woodmart/woocommerce/single-product/tabs/tabs.php
woodmart/woocommerce/single-product/title.php
woodmart/woocommerce/single-product/up-sells.php
woodmart/woocommerce/single-product.php

`

@aprea
Copy link
Contributor

aprea commented Oct 29, 2021

Fixed in #3252 (will be released in WooCommerce Payments 3.2.2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: wcpay subscriptions Issues related to Stripe Billing Subscriptions priority: critical The issue is critical—e.g. a fatal error, security problem affecting many customers. type: bug The issue is a confirmed bug.
Projects
None yet
7 participants