Automattic / woocommerce-subscriptions-core

Subscriptions core package for WooCommerce
Other
85 stars 31 forks source link

Add new product page throws fatal error with WooCommerce 7.2 #358

Closed shendy-a8c closed 1 year ago

shendy-a8c commented 1 year ago

Describe the bug

With current trunk, 42317cc2737fb5436787e332107b451a514a8d59, add product page (/wp-admin/post-new.php?post_type=product) throws a fatal error.

Screenshot 2023-01-09 at 03 20 46

To Reproduce

  1. Install WC < 7.3
  2. Install subscriptions-core as a plugin pointing at current trunk, 42317cc2737fb5436787e332107b451a514a8d59.
  3. Create a new product (/wp-admin/post-new.php?post_type=product)

Expected behavior

No fatal error.

Actual behavior

Got fatal error:

Uncaught Error: Call to a member function can_date_be_updated() on bool in woocommerce-subscriptions-core/includes/admin/meta-boxes/views/html-subscription-schedule.php:16

Product impact

Additional context