Closed (fixed)
Project:
e-Commerce
Version:
6.x-4.0-rc17
Component:
ec_charge
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 May 2010 at 09:18 UTC
Updated:
26 Jun 2010 at 16:20 UTC
Hi!
* warning: Invalid argument supplied for foreach() in /web/soundvision/soundvision/sites/all/modules/ecommerce/ec_charge/ec_charge.module on line 461.
* warning: Invalid argument supplied for foreach() in /web/soundvision/soundvision/sites/all/modules/ecommerce/ec_charge/ec_charge.module on line 461.
After I updated the e-Commerce module (from rc15 to rc17) I found these messages on the page of the Products.
How can I fix it?
Thank you for your answer!
Comments
Comment #1
gordon commentedWhat version of PHP are you running?
The problem is that you have no charges created, but it is returning an empty array so it should be fine. I could wrap an if around the foreach but that is not the problem or you would get an error on line 459.
Can you do a print_r()/dpr() (if you have devel) of the $charges var on about line 460 so we can see what makes up this command.
Thanks.
Comment #2
Raspino commentedI am getting the same error at store.willoseipoku.com
I am using PHP 5.2.13.
Unfortunately, I don't understand any of the other questions you have. I am really new to Drupal.
thanks!
Comment #3
Raspino commentedThe problem was solved when I disabled Charges.
At this point I don't know if I will need changes again but we'll see.
Thanks!
Comment #4
gordon commentedDid you have any charges created?
Comment #5
xen commentedI ran into something like it when upgrading from rc15 to rc18... dpm showed that the charge object didn't contain empty arrays, but FALSE instead.
Creating new charges fixed the problem, so I think it's an upgrade issue.
Comment #6
Raspino commentedDon't know how to create charges. Will have to learn that but so far all seem to be going very well.
Comment #7
szazo82 commentedFixed (after I updated to rc18).
Comment #8
gordon commented