» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 64
0 members and 64 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on Nuke Error Message On Site within the Purged Topics forums, part of the NM Staff category; Here's what starting happening today: Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the ...


Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-15-2003, 03:44 PM
Junior Member
 
Join Date: Jan 2003
Posts: 23
Nuke Error Message On Site
Here's what starting happening today:

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

I see that between each news article. Also see this:

Warning: (null)() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in Unknown on line 0


Does anyone know the cause and fix for this?

UPDATE: Doing a search on GOOGLE with the string: mainfile.php on line 565, I found A LOT Of sites that have this problem on their nuke. Any suggestions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2003, 06:29 PM
Junior Member
 
Join Date: Jan 2003
Posts: 4
I had one of the same issues today, here's what i did.
Any news posting i made caused the same error.
Code:
Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. 
Use the LC_* -constants instead. in \phpWeb\mainfile.php on line 565
The post is visible and a difference that i saw is in the time... Mine reads "Central Standard Time" where it should read the exact time of the story post.
Code:
Posted by Admin on Friday, January 17 @ Central Standard Time (0 reads)
                          (comments? | Score: 0)
Here's the original section of code surrounding line 565 from mainfile.php:
Code:
559:/*********************************************************/
560:/* formatting stories                                    */
561:/*********************************************************/
562:
563:function formatTimestamp($time) {
564:    global $datetime, $locale;
565:    setlocale ("LC_TIME", "$locale"); 
566:    ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime);
567:    $datetime = strftime(""._DATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
568:    $datetime = ucfirst($datetime);
569:    return($datetime);
570:}
Here's what i changed, this change fixes the warning message that i get, but i still saw "Central Standard Time" instead of the exact time of the post.
Code:
565:    setlocale (LC_TIME, "$locale");
from what i've seen and read, there are conflicts with the strftime function and Windows.(My server is W2k) I had to change the date format in line 567:
Code:
567:    $datetime = strftime("%B %d @ %I:%M:%S %p %Z", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
not sure about your "ob_gzhandler" error...

Dukaruk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2003, 06:44 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Here is what my search results found on this issue.

Quote:
Remove the quotes from around "LC_TIME" in those files/lines mentioned in your errors. This means "LC_TIME" should be changed to LC_TIME.
thanks to chatserv.

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-20-2003, 03:02 AM
Junior Member
 
Join Date: Jan 2003
Posts: 23
Thanks for the replies.

Yes, I fixed the first error message. It was the "" issue in Mainfile.php

I do still get the: ob_start("ob_gzhandler"); problem. It has to do with the gzip compression and from what I could find out is that it's a bug in PHPNUKE. It can't be called more than once, however there are numberous files that call it like: mainfile.php, page_header_admin.php, etc.

If you omit: ob_start("ob_gzhandler");, than you get more error messages, so that's not a fix.

Any suggestions? Anyone encountered that?

Vachi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-20-2003, 08:04 AM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Originally Posted by Vachi
Thanks for the replies.

Yes, I fixed the first error message. It was the "" issue in Mainfile.php

I do still get the: ob_start("ob_gzhandler"); problem. It has to do with the gzip compression and from what I could find out is that it's a bug in PHPNUKE. It can't be called more than once, however there are numberous files that call it like: mainfile.php, page_header_admin.php, etc.

If you omit: ob_start("ob_gzhandler");, than you get more error messages, so that's not a fix.

Any suggestions? Anyone encountered that?

Vachi
I remember reading something about gzip compression too. I'll look around.
Post back here in a few days if I have not posted a solution for you to remind me

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-23-2003, 07:06 AM
Junior Member
 
Join Date: Jan 2003
Posts: 23
Mike, here's your reminder.

Let me know what you can figure out about the second problem. I've done more research and I'm not coming up with anything.

Thanks,
Vachi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Message error don`t appear at Forum meu Nuke 7.x - Themes 1 06-02-2006 10:40 PM
Error mods message! web_design Nuke 7.x - Modules 2 12-16-2005 06:40 AM
Site Works, But I Have An Error Message... highlandcruise Nuke 7.x - General 1 01-18-2005 04:55 AM
fiapple 6.5 error message kah Theme packs 3 07-01-2003 10:09 PM
error message Garrett Open topics 6 03-21-2003 08:00 PM


All times are GMT -5. The time now is 09:26 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31