MattMallory Posted March 18, 2003 Share Posted March 18, 2003 There is an error on the http://www.franklysports.com/specialty_store/ osCommerce store. What causes this and how can it be fixed? Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/fs/public_html/specialty_store/includes/languages/english.php on line 11 Knowledge is Power! Link to comment Share on other sites More sharing options...
wizardsandwars Posted March 18, 2003 Share Posted March 18, 2003 and what's on line 11? ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
MattMallory Posted April 6, 2003 Author Share Posted April 6, 2003 // remember the following cPath references come from application_top.php I can email you the actual page if that will help? Knowledge is Power! Link to comment Share on other sites More sharing options...
Druide Posted April 6, 2003 Share Posted April 6, 2003 something more important what version of php & mysql do you have ? Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Druide Posted April 6, 2003 Share Posted April 6, 2003 Note: Passing multiple locales is not available before PHP 4.3.0 read more... Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
MattMallory Posted April 6, 2003 Author Share Posted April 6, 2003 MySQL is version 4.0.12, how do I find out what version of PHP I have? Here are my other versions... Cpanel 6.2.0-E54 xController WHM 6.2.0 WHM Xskin v 1.4 RedHat 7.3 Knowledge is Power! Link to comment Share on other sites More sharing options...
Druide Posted April 6, 2003 Share Posted April 6, 2003 make a file phpversion.php put in that file <?php echo phpinfo(); ?> or <?php echo 'I have PHP version: ' . phpversion(); ?> And upload it to your webspace in the root call the file http://www.yourdomain.com/phpversion.php and check the version at the top of that page NOTE: DELETE the file imediatly after that because it contains info that NOBODY needs to know Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
MattMallory Posted April 6, 2003 Author Share Posted April 6, 2003 PHP Version 4.3.1 PHP API 20020918 PHP Extension 20020429 Build Date Mar 8 2003 18:22:34 Knowledge is Power! Link to comment Share on other sites More sharing options...
Druide Posted April 6, 2003 Share Posted April 6, 2003 does your english.php file has this lines at the top or something else ? (note read the info above setlocale very well !) <?php /* $Id: english.php,v 1.104 2002/11/13 20:56:34 harley_vb Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ // look in your $PATH_LOCALE/locale directory for available locales.. // on RedHat try 'en_US' // on FreeBSD try 'en_US.ISO_8859-1' // on Windows try 'en', or 'English' setlocale(LC_TIME, 'en_US.ISO_8859-1'); Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
MattMallory Posted April 6, 2003 Author Share Posted April 6, 2003 This is what is in that file... <? /* Adaptation of The Exchange Project Preview Release 2.1 Update: 05/06/2002 Author(s): George A. Bonnes ([email protected]) This application is copyrighted by the author, and may not be distributed or edited without explicit written consent. To learn how to add this application to your website, contact http://www.webworkst.com (WebWorks Technologies, Inc.) */ ?> <? setlocale('LC_TIME', 'en_US.ISO_8859-1'); define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %B %d, %Y'); // this is used for strftime() define('DATE_FORMAT', 'm/d/Y'); // this is used for date() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); // the CURRENCY_* constants will be used to format the currency to the selected locale.. // this is used with the tep_currency_format() function.. define('CURRENCY_VALUE', 'USD'); // currency value for exchange rate // page title define('TITLE', 'Frankly Sports Specialty Store'); Knowledge is Power! Link to comment Share on other sites More sharing options...
MattMallory Posted April 6, 2003 Author Share Posted April 6, 2003 That was under the main site and this is under the admin sections english.php... <? // look in your $PATH_LOCALE/locale directory for available locales.. // on RedHat6.0 I used 'en_US' // on FreeBSD 4.0 I use 'en_US.ISO_8859-1' // this may not work under win32 environments.. setlocale('LC_TIME', 'en_US.ISO_8859-1'); define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); // the CURRENCY_* constants will be used to format the currency to the selected locale.. // this is used with the tep_currency_format() function.. define('CURRENCY_VALUE', 'USD'); // currency value for exchange rate // page title define('TITLE', 'Frankly Sports Specialty Store Administration Tool'); Knowledge is Power! Link to comment Share on other sites More sharing options...
Druide Posted April 7, 2003 Share Posted April 7, 2003 <? /* Adaptation of The Exchange Project Preview Release 2.1 Update: 05/06/2002 Author(s): George A. Bonnes ([email protected]) This application is copyrighted by the author, and may not be distributed or edited without explicit written consent. To learn how to add this application to your website, contact http://www.webworkst.com (WebWorks Technologies, Inc.) */ ?> i am starting to believe there is the problem dont ask me why but thats the way it is. You are using a osCommerce version PRE 2.1 which is possible NOT compatible with contributions from after november 2002 but someone else has to explain you more about that, i am only here since (look to the left) Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
MattMallory Posted April 7, 2003 Author Share Posted April 7, 2003 Thank you, if that is the case how do I go about updating the version? Knowledge is Power! Link to comment Share on other sites More sharing options...
Druide Posted April 7, 2003 Share Posted April 7, 2003 please check the forum there are a lot of threads about this, start here http://www.oscommerce.com/forums/viewtopic.php?t=40095 Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.