I uninstalled my old version of upsell completely and when I put in the new version its not working at all, Im getting this error in the product page:

warning: array_values() [function.array-values]: The argument should be an array in /home/host/public_html/modules/uc_upsell/uc_upsell.module on line 127.

Comments

torgospizza’s picture

When you say "not working at all" - what do you mean? That error shouldn't prevent you from adding related products to a node.

Either way, can you see if this still happens with the Dev version? I'm pretty sure I've gotten rid of this error, but I don't recall if it made it into the latest "stable" release. Thanks!

torgospizza’s picture

Status: Active » Needs review

I also just made another commit to the dev branch to try and set a logical default if this array doesn't exist. (For some reason the $config doesn't seem to be getting populated by your module. What kind of caching are you using on your site?)

RikiB’s picture

Ill try the dev. As for caching Im just using normal, not aggressive.

RikiB’s picture

That worked :)

torgospizza’s picture

Status: Needs review » Fixed

Great! Let me know if anything weird happens with your settings, or adding/removing products. I basically just added a sanity check to ensure it's getting a proper array and if not to use a default. Nothing huge.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.