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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3258397-4.attribute_matching.patch | 940 bytes | rszrama |
Issue fork commerce-3258397
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:
Comments
Comment #3
arraksis commentedComment #4
rszrama commentedHmm, 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!
Comment #6
rszrama commented