You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 49 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - setlocale fixed but still not working [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
trixxx
Nuke Cadet
Nuke Cadet


Joined: Mar 01, 2003
Posts: 7


PostPosted: Sun Mar 09, 2003 7:50 am Reply with quoteBack to top

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
Find all posts by trixxxView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Mar 09, 2003 8:45 am Reply with quoteBack to top

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]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
trixxx
Nuke Cadet
Nuke Cadet


Joined: Mar 01, 2003
Posts: 7


PostPosted: Sun Mar 09, 2003 10:12 am Reply with quoteBack to top

i changed it on my computer then uploaded it to ftp
deleting the spaces didn't help
Find all posts by trixxxView user's profileSend private messageVisit poster's website
NSN-Germany
Nuke Soldier
Nuke Soldier


Joined: Feb 14, 2003
Posts: 31

Location: Germany

PostPosted: Sun Mar 09, 2003 12:02 pm Reply with quoteBack to top

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
Find all posts by NSN-GermanyView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sun Mar 09, 2003 2:44 pm Reply with quoteBack to top

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
Find all posts by ArtificialIntelView user's profileSend private message
trixxx
Nuke Cadet
Nuke Cadet


Joined: Mar 01, 2003
Posts: 7


PostPosted: Sun Mar 09, 2003 3:59 pm Reply with quoteBack to top

i upped it in ascii mode no change Embarassed

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
Find all posts by trixxxView user's profileSend private messageVisit poster's website
NSN-Germany
Nuke Soldier
Nuke Soldier


Joined: Feb 14, 2003
Posts: 31

Location: Germany

PostPosted: Sun Mar 09, 2003 4:16 pm Reply with quoteBack to top

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
Find all posts by NSN-GermanyView user's profileSend private messageVisit poster's website
trixxx
Nuke Cadet
Nuke Cadet


Joined: Mar 01, 2003
Posts: 7


PostPosted: Sun Mar 09, 2003 4:21 pm Reply with quoteBack to top

just fixed it it apears wsftp was sending corupt files
just uploaded with bulletproof ftp and now its fixed
thx for ur help Embarassed
Find all posts by trixxxView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sun Mar 09, 2003 5:20 pm Reply with quoteBack to top

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 Confused

AI
Find all posts by ArtificialIntelView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Sun Mar 09, 2003 5:35 pm Reply with quoteBack to top

Amen Wink

_________________
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
Find all posts by chatservView user's profileSend private messageVisit poster's website
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Mon Mar 10, 2003 6:39 am Reply with quoteBack to top

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 Confused

AI


uhh ditto to that...CuteFTP works nicely...

mikem

_________________
Getting Started | My Projects
Find all posts by mikemView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.206 Seconds - 206 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::