Closed (fixed)
Project:
UC Upsell
Version:
5.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jun 2009 at 22:18 UTC
Updated:
29 Jun 2009 at 22:30 UTC
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
Comment #1
torgospizzaWhen 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!
Comment #2
torgospizzaI 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?)
Comment #3
RikiB commentedIll try the dev. As for caching Im just using normal, not aggressive.
Comment #4
RikiB commentedThat worked :)
Comment #5
torgospizzaGreat! 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.