Warning: setlocale() [function.setlocale

Silverado

Well-Known Member
Mar 19, 2003
154
0
166
Backyard - Poolside
Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/*****/public_html/modules/Web_Links/index.php on line 772



This is the error a client of mine is receiving on PHP Nuke after we upgraded to 6.0. Can anyone shed some light on this for me please? I really don't use PHP Nuke and am just hoping for a quick fix here.
 

Silverado

Well-Known Member
Mar 19, 2003
154
0
166
Backyard - Poolside
Hey Thanks.. I will try that first thing in the Morning. And I thought I searched everywhere. :rolleyes:
 

prudhvik

Member
Oct 16, 2002
5
0
151
Hey,

It seems you upgraded server to php 4.3.1 which gives this error.
you need to change your scripts as per 4.3.1 then it should be fine.
 

L4S

Well-Known Member
Feb 23, 2003
47
0
156
Australia
I found the following fix:


@setlocale (LC_TIME, $locale);

all worked OK after @ symbol was inseted in fromt of the code.