Ok in my 6.13 Drupal install with Ubercart I've got uc_attribute_stock_filter installed. I've added an attribute and option to give a buyer two different choices and here's the test item: http://www.bay94c.com/node/354
What baffles me is that I get the following error: warning: Invalid argument supplied for foreach() in /usr/www/users/bay94c/modules/uc_attribute_stock_filter/uc_attribute_stock_filter.module on line 100." but if I chose either option and click the Add to Cart button it still adds the right item to the cart. No idea if it actually is reducing the proper inventory number by the number bought, but the error worries me.
I've set two different sku s for each choice. Anyone have a clue what the error means? Thanks

Comments

terramedia’s picture

I'm getting this error as well on one of my clients sites at http://epicsleepwear.com - pretty much exactly the same thing.

It all seems to work but the error is pretty ugly and so I can't really use it while the error is displaying.

The error does seem to go away when there is no stock of any attributes, it only shows when there is stock on one or more of the attributes.

Any thoughts?