There is a bug in Drupal Commerce concerning access to particular user order history view type page ( Path:/user/%/orders).
If there are custom roles except "administrator", even if the permission granted, the system returns "page not found" 404 error for users with custom roles.
You are here
Fixes
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.