Error text in DB log:
Warning: reset() expects parameter 1 to be array, null given in _commerce_cart_matching_products() (line 1773 of /var/www/public/sites/all/modules/contrib/commerce/modules/cart/commerce_cart.module).

This problem is similar to this issue #3057706: Warning: reset() expects parameter 1 to be array, null given after upgrade to 7.x-1.15

So, I suppose the solution could be similar to the patch from the last issue.

Issue fork commerce-3258397

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arraksis created an issue. See original summary.

arraksis’s picture

Status: Active » Needs review
rszrama’s picture

Version: 7.x-1.16 » 7.x-1.x-dev
Status: Needs review » Reviewed & tested by the community
FileSize
940 bytes

Hmm, interesting. Guess you have an attribute field that should provide options but doesn't have any? 😅

In any case, yes, the fix should be similar. I appreciated the condensed code you've used, but I expanded it out to match the pattern of the existing code so we aren't solving it different ways in different places. Thanks for the fix!

  • rszrama committed 9c02d5d on 7.x-1.x authored by arraksis
    Issue #3258397 by arraksis, rszrama: Warning: reset() expects parameter...
rszrama’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.