Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

osCommerce error?


MattMallory

Recommended Posts

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

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

  • 3 weeks later...

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

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

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

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

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

<?  

/*  

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

Archived

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

×
×
  • Create New...