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.
Hey,
thanks for that module! It's working pretty good. But there seems to be a problem if you do not add any attributes to some products.
If there are no attributes available the following errors occure if you press the add to cart button:
warning: Invalid argument supplied for foreach() in ../uc_dependent_attributes/uc_dependent_attributes.module on line 140.
warning: key() [function.key]: Passed variable is not an array or object in ../uc_dependent_attributes/uc_dependent_attributes.module on line 151.
warning: array_slice() expects parameter 1 to be array, null given in ../uc_dependent_attributes/uc_dependent_attributes.module online 173
Any ideas how to fix this?
cineasta
Comments
Comment #1
jantoine CreditAttribution: jantoine commentedCineasta,
I am sorry it took me so long to get to this. I was focused on an Ubercart Ajax Attributes Calculations 6.x-2.0 release before investing to heavily into this module. That said, this issue has been fixed in the repository. Remember it can take up to 12 hours for a new dev snapshot to be released. Thanks for testing!
Cheers,
Antoine