Woocommerce Membership failure on > PHP 8.0
-
Hi Woocommerce team,
WooCommerce is not applying the proper memberships after i upgraded to PHP 8.0. The issue is same with PHP8.1 as well, and is occurring in the WooCommerce Membership plugin (based on the error codes)
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /path/to/website/folder/wp-content/plugins/woocommerce-memberships/includes/admin/class-wc-memberships-admin-user-memberships.php:883 Stack trace: #0 /path/to/website/folder/wp-includes/class-wp-hook.php(308): WC_Memberships_Admin_User_Memberships->maybe_prevent_adding_user_membership() #1 /path/to/website/folder/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #2 /path/to/website/folder/wp-includes/plugin.php(517): WP_Hook->do_action() #3 /path/to/website/folder/wp-admin/admin.php(385): do_action() #4 /path/to/website/folder/wp-admin/post-new.php(10): require_once('...') #5 {main} thrown in /path/to/website/folder/wp-content/plugins/woocommerce-memberships/includes/admin/class-wc-memberships-admin-user-memberships.php on line 883
There are other warnings as well
Deprecated: Return type of SV_WC_DateTime::getTimestamp() should either be compatible with DateTime::getTimestamp(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /path/to/website/folder/wp-content/plugins/woocommerce-memberships/lib/skyverge/woocommerce/compatibility/class-sv-wc-datetime.php on line 59 Deprecated: basename(): Passing null to parameter #1 ($path) of type string is deprecated in /path/to/website/folder/wp-content/plugins/gravityforms/includes/assets/class-gf-asset-processor.php on line 63
My woocommerce version is 7.9.0, has WooCommerce Memberships?by SkyVerge – 1.8.6
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Woocommerce Membership failure on > PHP 8.0’ is closed to new replies.