sgenius Posted March 17, 2003 Share Posted March 17, 2003 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 More sharing options...
sgenius Posted March 17, 2003 Author Share Posted March 17, 2003 up Link to comment Share on other sites More sharing options...
zenpig Posted March 17, 2003 Share Posted March 17, 2003 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.