PC Playground  

Go Back   PC Playground > The Core > Scripting/Programming
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-25-2003, 10:42 AM
Senior Member
 
Join Date: Jan 2003
Location: Florida, USA
Posts: 229
Send a message via AIM to Pendragon
Default PHPNuke Mainfile problem

hello I have been running phpnuke for a while but for some reason I got this message:
Quote:
Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/pcplay/public_html/worldsofbattle/mainfile.php on line 565
Could someone tell me what it means and how i can correct this?
Reply With Quote
  #2 (permalink)  
Old 03-25-2003, 01:15 PM
Administrator
 
Join Date: Jan 2003
Posts: 1,350
Default

Go down to that line. You will see something like "LC_Time" remove the quotes and save it.
Reply With Quote
  #3 (permalink)  
Old 03-25-2003, 09:44 PM
Senior Member
 
Join Date: Jan 2003
Location: USA
Posts: 897
Send a message via AIM to headnerd
Default

My work is just never done :). Usually I don't do tech support outside my domain, but this is simple, so I don't mind (I helped tommy with the same problem).

Ignore what tommy said...because there are alot of LC_ things in the mainfile.

What you want to look for is this:

Code:
setlocale ("LC_TIME", "$locale");
Now, replace that with this

Code:
setlocale (LC_TIME, $locale);
And keep searching through the document to make sure you got all of faulty peices, and if you find more, simply change them like you did the first.

You will need to do this also in the Journals module, Jokes module (if you have one), Downloads Module, and (i think) Reviews module.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:02 PM.