Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installation problem


sgenius

Recommended Posts

Hi How are things?

Firstly thanks for this amazing scripts OS COMMERCE after i installed the script this message appear any body can work it out?

 

Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/sgenius/public_html/tep-pr2.1/tep_catalog-pr2.1/catalog/includes/languages/english.php on line 12

please help me quickly

thanks

sgenius

Link to comment
Share on other sites

You are probably on a server with PHP 4.3 or 4.3.1 installed and the setlocale() function in those versions seems to be wanting CONSTANTS instead of the STRINGS as it is with OSCommerce. Basically, open up catalog/includes/languages/english.php and look for line 12 which is setlocale('LC_TIME', 'en_US.ISO_8859-1');. Just put a @ character in front of it so it looks like this...@setlocale('LC_TIME', 'en_US.ISO_8859-1');. You'll need to do the same to admin/includes/languages/english.php.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...