Required parameter $options follows optional parameter $data in commerce_cart.module on line 1163

Created on 4 June 2022, over 2 years ago
Updated 19 May 2023, over 1 year ago

In PHP 8.0 Deprecation warnings arise in case of required parameter follows optional in function declaration:

Deprecated: Required parameter $options follows optional parameter $data in /modules/contrib/commerce/modules/cart/commerce_cart.module on line 1163

Deprecated: Required parameter $name follows optional parameter $data in /modules/contrib/commerce/modules/cart/commerce_cart.module on line 1163

📌 Task
Status

Fixed

Version

1.0

Component

Cart

Created by

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇷Greece bserem

    A new release including this one is still pending

  • 🇮🇳India Neeraj420

    after applying the patch I am getting the following error

    Error: Call to undefined function commerce_product_reference_get_default_product() in commerce_cart_field_formatter_view() (line 2763 of /website/sites/all/modules/commerce/modules/cart/commerce_cart.module).

    kindly help.
    Thanks in advance

Production build 0.71.5 2024