| Author |
Message |
trixxx
Nuke Cadet


Joined: Mar 01, 2003
Posts: 7
|
Posted:
Sun Mar 09, 2003 7:50 am |
  |
i get this error
Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/trixxx/public_html/php/mainfile.php on line 565
ive seen the exact error in the sticky here and the welcome thread but the fix doesn't work.
ive changed the line from : global $datetime, $locale;
setlocale ("LC_TIME" , "$locale");
to:
global $datetime, $locale;
setlocale (LC_TIME , "$locale");
anyone know whats wrong in this line ?
homepage = http://3xdesign.org/php
tia |
|
|
    |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Sun Mar 09, 2003 8:45 am |
  |
I never like to leave unnecessary spaces, you have one before the comma. Anyway, did you change it in the mainfile.php on the server, or on your computer and then FTP it up? |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
trixxx
Nuke Cadet


Joined: Mar 01, 2003
Posts: 7
|
Posted:
Sun Mar 09, 2003 10:12 am |
  |
i changed it on my computer then uploaded it to ftp
deleting the spaces didn't help |
|
|
    |
 |
NSN-Germany
Nuke Soldier


Joined: Feb 14, 2003
Posts: 31
Location: Germany
|
Posted:
Sun Mar 09, 2003 12:02 pm |
  |
There are plenty of places where this string has to be replaced. Make a textsearch on all nuke-files and replace all.
BTW: Better replace it to LC_ALL, so not only the date will be regionally formatted but also other stuff like decimal-points, ... |
_________________ Christian Einig
NukeScripts Network Germany |
|
    |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Sun Mar 09, 2003 2:44 pm |
  |
FTP the changed file up again in ASCII mode. Sometimes FTP clients don't actually upload files even though they tell you they have done so.
AI |
|
|
   |
 |
trixxx
Nuke Cadet


Joined: Mar 01, 2003
Posts: 7
|
Posted:
Sun Mar 09, 2003 3:59 pm |
  |
i upped it in ascii mode no change
and btw if i only get a error report from this file its not needed to change all nuke files is it ?
anyways thx for ur help |
|
|
    |
 |
NSN-Germany
Nuke Soldier


Joined: Feb 14, 2003
Posts: 31
Location: Germany
|
Posted:
Sun Mar 09, 2003 4:16 pm |
  |
| trixxx wrote: |
| and btw if i only get a error report from this file its not needed to change all nuke files is it ? |
It is needed to change all nuke-files where you find this string. Or do you want to get this error on other pages?
Did you change the line in the mainfile.php to this?
| Code: |
| setlocale (LC_TIME, "$locale"); |
And you still get this error? I can't believe it.
Edit: I can't see this error on your site. Try to make a refresh. |
_________________ Christian Einig
NukeScripts Network Germany |
|
    |
 |
trixxx
Nuke Cadet


Joined: Mar 01, 2003
Posts: 7
|
Posted:
Sun Mar 09, 2003 4:21 pm |
  |
just fixed it it apears wsftp was sending corupt files
just uploaded with bulletproof ftp and now its fixed
thx for ur help  |
|
|
    |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Sun Mar 09, 2003 5:20 pm |
  |
I think I'll start to recommend to ppl that they don't use WS_FTP cause it seems to be the worst client for corruption
AI |
|
|
   |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Sun Mar 09, 2003 5:35 pm |
  |
Amen  |
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources |
|
    |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Mon Mar 10, 2003 6:39 am |
  |
| ArtificialIntel wrote: |
I think I'll start to recommend to ppl that they don't use WS_FTP cause it seems to be the worst client for corruption
AI |
uhh ditto to that...CuteFTP works nicely...
mikem |
_________________ Getting Started | My Projects |
|
   |
 |
|
|