Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I just completed a fresh installation of commerce kickstart and when trying to add a product to cart, I get the following error.
Error: Cannot pass parameter 3 by reference in commerce_cart_product_add() (line 1344 of C:\xampp\htdocs\commerce\profiles\commerce_kickstart\modules\contrib\commerce\modules\cart\commerce_cart.module).
None of the products I have created can be added to the cart, including demo products.
Comment | File | Size | Author |
---|---|---|---|
#4 | commerce_kickstart-commerece-php7-2762907-2860151-4.patch | 513 bytes | jantoine |
Comments
Comment #2
mglamanSounds like you're using PHP7. The problem is that a PHP7 fix was committed but not in a tagged Commerce release #2762907: Adding to cart on PHP7 throws notice error.
This is normal, as we have a full test suite that passes. We do not gurantee PHP7 support. If you write a patch for CK2 to use the patch from that issue, we can include it.
Comment #3
_deschant CreditAttribution: _deschant as a volunteer commentedThank you! This worked for me. :)
Comment #4
jantoine CreditAttribution: jantoine as a volunteer commentedAttached is a patch for Commerce Kickstart 2.x-dev.
Comment #5
mglamanGot tests up at this PR https://github.com/commerceguys/commerce_kickstart/pull/234
We'll see what happens, then merge for next quick release.
Comment #7
mglamanWaiting for final tests to finish, then tagging release.
Comment #8
mglamanComment #10
ibrahim_shah CreditAttribution: ibrahim_shah commentedWarning: A non-numeric value encountered in theme_pager() (line 329 of F:\xampp\htdocs\drupal\includes\pager.inc).
Comment #11
ibrahim_shah CreditAttribution: ibrahim_shah commentedcan someone help what the problem