• Resolved something801

    (@something801)


    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)
  • Thread Starter something801

    (@something801)

    Error for readability –

    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

    Thread Starter something801

    (@something801)

    Hi forum,

    Can anyone help me with this issue? Did anyone face this problem as well?

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hi @something801 ,

    Thanks for reaching out!

    I understand that you’re experiencing issue with the WooCommerce Memberships extension and PHP 8.0/8.1, is this correct?

    Since this is related to a premium extension, if you have a valid license, please contact us directly via WooCommerce.com > My Account > Support. You may need to log in to the account used to purchase the extension before you are able to access that page.

    As per the forum guidelines, no support for premium extensions is done here but we will be happy to assist you further from there 

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce Membership failure on > PHP 8.0’ is closed to new replies.