Error in Mainfile.php

Begonnen von PaulK, 23 April 2003, 20:01:04

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

PaulK

Sorry for my lack or German!

I have been getting this error on my website for a while now and I cant get ride of it ...

 
ZitatWarning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/paul/public_html/mainfile.php on line 1360
 

Can anyone help the location should be English/UK

Many thanks
Paul@goldenpants.net

http://goldenpants.net

jubilee

Hi over there !
I think your provider did an upgrade to php 4.3.xx
In this version the following statement is not longer usable
old:
 
Zitatsetlocale("LC_TIME", $locale);
To bring it back to work you have to edit all places in the scripts where
the statement is used.
New :
 
Zitatsetlocale(LC_TIME, $locale);

list of scripts:
 
Zitat\admin\modules\tracking.php - row 97
\modules\Downloads\index.php - row 517
\modules\Downloads\index.php - row 913
\modules\Downloads\index.php - row 1174
\modules\Web_Links\index.php - row 502
\modules\Web_Links\index.php - row 1016
greetings
jubilee

PaulK

Thanks I will give that a try and report back

[edit] just checked I am using php 4.3.1 so think you are correct

[Edited on 23/4/2003 by PaulK]

PaulK

THANK YOU !!!!!!

That fixed it completely :)

Paul

[Edited on 23/4/2003 by PaulK]