PayPal error message + fix

Posts: 176
Joined: 08/08/2007
Early adopter... addicted to alphas.Getting busy with the Ubercode.

I'm getting this error message when reviewing an order:

warning: Invalid argument supplied for foreach() in /home/jahipec/public_html/sites/all/modules/ubercart/uc_paypal/uc_paypal.module on line 1164.

looking at the code your assuming the 'attributes' module is active. You need to test if its turned on before you go into that loop.

--

suffering from too much information

Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Aye, thanks for posting. I think that may have been fixed from an issue in the past but I'll double check it. Get this... Java was screwing up our work terminal server, so it was uninstalled last night. We use jEdit which runs on... Java! I think someone is sabotaging us. Evil

Posts: 176
Joined: 08/08/2007
Early adopter... addicted to alphas.Getting busy with the Ubercode.

Java is the language of the beast! You do seem to be having a run of bad luck, but after 15 of programming I find that computers always work great until you need em to be reliable :-}

--

suffering from too much information

Posts: 29
Joined: 08/08/2007
Uber Donor

I'm getting the same error. If you don't want to, or need not to activate the "attributes" module for some reason, a temporary fix is to select the option to "Submit the whole order as a single line item." in store administration - configuration - payment settings - payment methods.
Scott

Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

sc0tt! Brilliant! I was wondering how in the world I missed this error when testing, and you're exactly right. In testing I never used the itemized submission but only the whole order as a single line item. Will be updating the code repository as soon as I get the site worked out.