You are here

Warning: reset() expects parameter 1 to be array, null given in commerce_cart_add_to_cart_form()

We've added a new attribute field to commerce product entity and got warning "reset() expects parameter 1 to be array, null given in commerce_cart_add_to_cart_form()" on the other products which doesn't have value in that field.

Solution: 

The solution was very easy. We've just added a new product type, cloned all fields with Bundle clone and switched product types of new products using Bundle Switcher.

Website fix request form

If you have problems with the website based on Drupal or WordPress, please feel free to contact us: