You are here:  » Warning: Invalid argument supplied for foreach()

Support Forum



Warning: Invalid argument supplied for foreach()

Submitted by ka on Thu, 2010-04-08 09:46 in

Hi David. I have just loaded one of my old sites onto my webserver.

Im getting: Warning: Invalid argument supplied for foreach() (line 47) for the below code:

{code saved}

I need to refresh my PHP skills :)
Any suggetions?

Br

//Kimi

Submitted by support on Thu, 2010-04-08 13:04

Hello Kimi,

Could you email me the entire .php file that the error refers to and I'll take a look for you.

Is the error occuring where you would expect random featured products to be displayed? I notice that there is no checking in the code to see if featured products have been successfully selected before being displayed) - so perhaps if it's a new installation just adding some featured products will do the trick...

Cheers,
David.

Submitted by support on Thu, 2010-04-08 13:19

Adds: Just seen your email - thanks, will check the files out...