Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 49
1 members and 48 guests
buynm6ymobcha8b
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
Nuke Error Message On Site
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 23
Join Date: Jan 2003
Nuke Error Message On Site - 01-15-2003, 02:44 PM

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
I had one of the same issues today, here's what i did.
Old
  (#2 (permalink))
Junior Member
 
Status: Offline
Posts: 4
Join Date: Jan 2003
I had one of the same issues today, here's what i did. - 01-18-2003, 05:29 PM

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
Old
  (#3 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
01-18-2003, 05:44 PM

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
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 23
Join Date: Jan 2003
01-20-2003, 02:02 AM

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
Old
  (#5 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
01-20-2003, 07:04 AM

Quote:
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
Old
  (#6 (permalink))
Junior Member
 
Status: Offline
Posts: 23
Join Date: Jan 2003
01-23-2003, 06:06 AM

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 09:40 PM
Error mods message! web_design Nuke 7.x - Modules 2 12-16-2005 05:40 AM
Site Works, But I Have An Error Message... highlandcruise Nuke 7.x - General 1 01-18-2005 03:55 AM
fiapple 6.5 error message kah Theme packs 3 07-01-2003 09:09 PM
error message Garrett Open topics 6 03-21-2003 07:00 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.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