Guest Posted September 1, 2006 Posted September 1, 2006 I seem to have a problem with IE and categories.php. Whenever someone visits my site on MSIE for the first time (or clears the cookie), the following errors appear: Warning: Invalid argument supplied for foreach() in /home/www/innovo/includes/boxes/categories.php on line 46 Warning: Invalid argument supplied for foreach() in /home/www/innovo/includes/boxes/categories.php on line 46 Warning: Invalid argument supplied for foreach() in /home/www/innovo/includes/boxes/categories.php on line 46 However... that file doesn't even have a foreach(). It seems as if osC is loading another file, but I can't seem to find it. /home/www/innovo/includes/boxes/categories.php snip, lines around 46 $categories_string .= $tree[$counter]['name']; if (isset($cPath_array) && in_array($counter, $cPath_array)) { <-- 46 $categories_string .= '</u></b>'; } if (tep_has_category_subcategories($counter)) { // $categories_string .= '->'; } Hope someone can help me out, it's bugging the hell out of me. (Yes, I'm sure I've got the actual file...)
jasonabc Posted September 1, 2006 Posted September 1, 2006 Remove <-- 46. If you want to use HTML comments you have to use this syntax: <!-- 46 --> Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
Guest Posted September 1, 2006 Posted September 1, 2006 Remove <-- 46. If you want to use HTML comments you have to use this syntax: <!-- 46 --> That was me pointing out which one was line 46.
Guest Posted September 1, 2006 Posted September 1, 2006 Bleh, nevermind. Cache was acting up... disabled it and it's no longer there. Go figure.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.