Getting two warning messages on each cart submit:

# warning: Invalid argument supplied for foreach() in /httpdocs/modules/ecommerce/ec_live_subproducts/ec_live_subproducts.module on line 627.
# warning: Invalid argument supplied for foreach() in /httpdocs/modules/ecommerce/ec_live_subproducts/ec_live_subproducts.module on line 1052.

Nice module.
-Greg

Comments

brmassa’s picture

Greg,

how can i replicate this issue?

massa

greg@beargroup.com’s picture

admin/settings/error-reporting and set write errors to log and screen and you'll see these on every cart submit. On my site at least.

They are just warning messages, but would be good to get cleaned up I think. Not sure where they are being generated from.

brmassa’s picture

Assigned: Unassigned » brmassa

Greg,

is the errors still there on the this release 2.08?

massa

greg@beargroup.com’s picture

Yes, getting 2 loops of warnings when a product is added to the cart - look like this:

* warning: Invalid argument supplied for foreach() in /modules/ecommerce/ec_live_subproducts/ec_live_subproducts.module on line 704.
* warning: Invalid argument supplied for foreach() in /modules/ecommerce/ec_live_subproducts/ec_live_subproducts.module on line 1162.
* warning: Invalid argument supplied for foreach() in /modules/ecommerce/ec_live_subproducts/ec_live_subproducts.module on line 704.
* warning: Invalid argument supplied for foreach() in /modules/ecommerce/ec_live_subproducts/ec_live_subproducts.module on line 1162.

brmassa’s picture

Status: Active » Fixed

Greg,

I thought pparent variable were only used by subprodudcts/EC live subproducts. What Ecommece modules are you using? List all please.
anyway... fixed on CVS.

regards,

massa

brmassa’s picture

Greg,

another request: look into you ec_product table for pparent different from 0. what kind of product are they?

massa

greg@beargroup.com’s picture

Thanks. No longer getting these warnings with the CVS release.

All ptypes are ec_live_subproducts_tangible in the ec_product table. I am using CCK to add a couple fields if relevant.

Ecomm version is V.3, using these modules:
> All ecomm core, except subproduct API.
> authorize.net
> tangible subproduct, tangible product
> address, shipcalc, Tax api

brmassa’s picture

Greg,

you can use now 2.09.
its strange. somehow you got subproducts without any attribute...

well...

massa

greg@beargroup.com’s picture

Thanks kindly, appreciate all the rapid updates.

brmassa’s picture

Status: Fixed » Closed (fixed)