Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP Warning


DreamK

Recommended Posts

Hi,

 

I havefound 2 errors in my logs. I really don t know where to begin to find... cause, I have checkecd the two source and that seems to be right. When I desactivate Ultimate SEO, all works fine. I let you see.

 

If you have a piece of code to indicate me, i take !

 

PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in D:\\site\\\includes\\header.php on line 124, referer: http://site/shopping_cart.php

 

PHP Warning: Variable passed to each() is not an array or object in D:\\site\\includes\\header.php on line 125, referer: http://site/shopping_cart.php

 

 

 

Header L124-125

 

$languages_string = '';
 reset($lng->catalog_languages);
 while (list($key, $value) = each($lng->catalog_languages)) {
$languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
echo '<link rel="alternate" type="application/rss+xml" title="' . STORE_NAME . ' ' . BOX_INFORMATION_RSS . ' ' . $value['name'] . '" href="' . FILENAME_RSS . '?language=' . $key . '" />';
 }

 echo $languages_string;

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...