Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

categories.php + MSIE


Guest

Recommended Posts

Posted

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...)

Posted
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.

Posted

Bleh, nevermind. Cache was acting up... disabled it and it's no longer there. Go figure.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...