|
» 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
|
|
|
|
|
|
|
|
|
|
|
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.
|
|
|
|
|
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 ... |
|
 |
 |
|
 |

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?
|

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
|

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
|

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
|

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
|

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
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|