PDA

View Full Version : what's this error?


deekstar
12-10-08, 12:22
Dear guys my V2 site seems to be working fine, but i keep getting this annoying error log in my domain folder, just like the one when we were trying out the V2 in pre-launch that didn't affect the sites performance, that was a different error that was fixed. but this error says related products, yet they are showing fine in the website, more worrying is that it also says class.shopcore.php, does anyone know if this error is serious and how can i remedy it?
?
[11-Oct-2008 22:46:32] PHP Warning: Invalid argument supplied for foreach() in /home/deekstar/public_html/deekstarshoppingnetwork/elements/related_product_list.php on line 43
[12-Oct-2008 00:21:45] PHP Warning: Invalid argument supplied for foreach() in /home/deekstar/public_html/deekstarshoppingnetwork/classes/class.shopcore.php on line 405
[12-Oct-2008 00:21:50] PHP Warning: Invalid argument supplied for foreach() in /home/deekstar/public_html/deekstarshoppingnetwork/classes/class.shopcore.php on line 405
[12-Oct-2008 00:54:32] PHP Warning: Invalid argument supplied for foreach() in /home/deekstar/public_html/deekstarshoppingnetwork/elements/related_product_list.php on line 43
[12-Oct-2008 01:31:48] PHP Warning: Invalid argument supplied for foreach() in /home/deekstar/public_html/deekstarshoppingnetwork/elements/related_product_list.php on line 43
[12-Oct-2008 01:38:59] PHP Warning: Invalid argument supplied for foreach() in /home/deekstar/public_html/deekstarshoppingnetwork/classes/class.shopcore.php on line 405
[12-Oct-2008 01:39:04] PHP Warning: Invalid argument supplied for foreach() in /home/deekstar/public_html/deekstarshoppingnetwork/classes/class.shopcore.php on line 405
[12-Oct-2008 03:43:54] PHP Warning: Invalid argument supplied for foreach() in /home/deekstar/public_html/deekstarshoppingnetwork/classes/class.shopcore.php on line 405
[12-Oct-2008 03:43:58] PHP Warning: Invalid argument supplied for foreach() in /home/deekstar/public_html/deekstarshoppingnetwork/classes/class.shopcore.php on line 405
[12-Oct-2008 03:44:25] PHP Warning: Invalid argument supplied for foreach() in /home/deekstar/public_html/deekstarshoppingnetwork/classes/class.shopcore.php on line 405
[12-Oct-2008 03:44:31] PHP Warning: Invalid argument supplied for foreach() in /home/deekstar/public_html/deekstarshoppingnetwork/classes/class.shopcore.php on line 405
[12-Oct-2008 03:44:31] PHP Warning: Invalid argument supplied for foreach() in /home/deekstar/public_html/deekstarshoppingnetwork/classes/class.shopcore.php on line 405

Ollie
13-10-08, 10:31
Hi Deekstar,

Welcome to the forum!

The error is not serious at all and will not affect your sites performance. It can be fixed by adding checks into the code at these locations to ensure that your for loop is actually looping over an array.

If you are happy to ignore these errors then you will experience no problems with your site.

I will aim to include a fix to these errors in the next update of the ShopWindow Client.

Cheers :D

deekstar
14-10-08, 09:59
Thanks for that reassurance, I would do what you suggest with the checks, if I knew what they were! Ha Ha! for know I'll just ignore the error, the site is running great, best Deekstar