Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ v2.5.x
Author Message
linksysinfo
New Member
New Member


Joined: Aug 06, 2005
Posts: 9

PostPosted: Mon Jul 10, 2006 11:16 am Reply with quote

Just installed the new 2.5.00 version. upgraded from 2.4.2pl9 using upgrade script.

the first time i open a browser and goto my website i get

Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in /home/linksys/public_html/mainfile.php on line 120
above the header

anyone have a fix? for that?

I'm running Nuke Platinum 7.6.x (with all of Technocrats fixes)
 
View user's profile Send private message
linksysinfo
PostPosted: Mon Jul 10, 2006 11:59 am Reply with quote

line 120 is:

ob_start('ob_gzhandler');

I have changed this to:

ob_start();

will this incur any problems with the site?
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9449
Location: Arizona

PostPosted: Tue Jul 11, 2006 6:17 am Reply with quote

You might want to check with Technocrat, but is it possible that you have gzip compression enabled in your Forum configuration settings? Do you see this only when you are in the Forums, Members LIst or Private Messages? If it is everywhere, then I would definitely check with Technocrat as to the proper edit to make.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
technocrat
Life Cycles Becoming CPU Cycles


Joined: Jul 07, 2005
Posts: 511

PostPosted: Tue Jul 11, 2006 8:10 am Reply with quote

He checked with me already and I am unsure why PNP has this problem. I have the same issue with my (now dead) PNP site too when I did the upgrade. Must be something with the way PNP starts the gzip session.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! / Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message
Dauthus
Worker
Worker


Joined: Oct 07, 2003
Posts: 211

PostPosted: Tue Jul 11, 2006 9:08 am Reply with quote

You can try this fix and see if it works especially if you are running PHP 4.3.x:
Only registered users can see links on this board! Get registered or login!

_________________
Only registered users can see links on this board! Get registered or login!
Vivere disce, cogita mori 
View user's profile Send private message Visit poster's website
technocrat
PostPosted: Tue Jul 11, 2006 9:13 am Reply with quote

Since its the mainfile that has the gzip part of this code, this change would probably not help.
 
DarK_Gamers
New Member
New Member


Joined: Jun 19, 2006
Posts: 11
Location: Portugal and Holland :)

PostPosted: Wed Jul 12, 2006 3:27 pm Reply with quote

same error here,i use a Platinum site and it comes up with this error above header,and its not allways,also,it start since i upgraded Sentinel to 2.5.
 
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6792
Location: Ha Noi, Viet Nam

PostPosted: Wed Jul 12, 2006 3:32 pm Reply with quote

And all of you that have this issue have 'enable gzip' turned OFF in the forum config?
 
View user's profile Send private message Send e-mail
DarK_Gamers
PostPosted: Wed Jul 12, 2006 3:37 pm Reply with quote

my Gzip is off yes

**edit**

but my error is a bit difrent:

Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in mainfile.php on line 99

wen i try fix it just stops showing my web-links Shocked

can anyone help or give some advise?


Last edited by DarK_Gamers on Wed Jul 12, 2006 3:58 pm; edited 1 time in total 
linksysinfo
PostPosted: Wed Jul 12, 2006 3:58 pm Reply with quote

yep mine has always been off.
 
Dauthus
PostPosted: Wed Jul 12, 2006 6:20 pm Reply with quote

Ok then, how about this?
Only registered users can see links on this board! Get registered or login!
 
linksysinfo
PostPosted: Wed Jul 12, 2006 6:25 pm Reply with quote

linksysinfo wrote:
line 120 is:

ob_start('ob_gzhandler');

I have changed this to:

ob_start();



this seems to have fixed this issue, no one yet has complained. though am moving to vB soon.
 
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Thu Jul 13, 2006 2:12 pm Reply with quote

this seems to be related.. Only registered users can see links on this board! Get registered or login!

To skip displaying this warning, you should change the error_reporting`s value to E_NONE & ~E_NOTICE in your php.ini file.

Code:
Error_Reporting(E_NONE & ~E_NOTICE);
 
View user's profile Send private message
southern
Client


Joined: Jan 29, 2004
Posts: 591
Location: Texas

PostPosted: Fri Jul 21, 2006 11:02 pm Reply with quote

I have this error in my error log:
Code:


[error] PHP Warning:  ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in /home/mydomain/public_html/mainfile.php on line 100

for about 100 iterations. I'm going to try linksysinfo's fix. I have gzip off, too. I recently upgraded tto NS 2.5.00.

_________________
Computer Science is no more about computers than astronomy is about telescopes.
- E. W. Dijkstra 
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number
linksysinfo
PostPosted: Sat Jul 22, 2006 3:20 am Reply with quote

It worked for me, without any problems, however i have now, sorry to say, moved over to the dark side.... to vBulletin
 
Dauthus
PostPosted: Sun Jul 23, 2006 4:52 pm Reply with quote

One more suggested fix for this. Place the following in your root .htaccess file:

php_flag session.use_trans_sid off

This problem has been bugging me for some time now....hehe
 
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Sun Jul 23, 2006 6:18 pm Reply with quote

Would you please explain the effect and possible risk of:
php_flag session.use_trans_sid off

I noticed that my NSNST_Flood session ids from urls and title tags are gone.
 
View user's profile Send private message
Guardian2003
PostPosted: Sun Jul 23, 2006 7:13 pm Reply with quote

Interesting
 
Dauthus
PostPosted: Mon Jul 24, 2006 9:20 am Reply with quote

Actually I was doing some SEO, and noticed this helped my site....

I don't know of any bad effect unless the browser visiting your page doesn't accept cookies. The plus is, for some sites, it increases your SEO.
Only registered users can see links on this board! Get registered or login!
 
Guardian2003
PostPosted: Mon Jul 24, 2006 10:37 am Reply with quote

Provided flood blocker works by 'counting' hits from a specific IP or referer or useragent (or a combination) then I do not see any reason why this would affect its effectiveness.

I see from the article they recommend using
Code:
ini_set('session.use_trans_sid', false);
which might be another way to remove session ID's particularly for the forums for anonymous users.
 
Susann
PostPosted: Mon Jul 24, 2006 1:26 pm Reply with quote

Normally I´m more skeptically but I use it until I find strange things in my logfiles or the flood blocker. I don´t have real traffic currently so I can´t check the behavior of different bots.But the good thing is that fixed automatically my validation problem.
 
montego
PostPosted: Mon Jul 24, 2006 8:39 pm Reply with quote

That is an interesting implementation. Was also considering it for removing the SSID's in phpBB for the "GoogleTap" crowd. Didn't get far enough into trying it. I may have to now. But wasn't really sure how phpBB used sessions. I was needing to analyze that first.

As Dauthus has commented, though, it might even kill session handling for browsers without cookies enabled. So, with everything, is the trade-off worth it? In this day-and-age, I would say "yes". Almost EVERY site on the web that we use on a daily basis (I am meaning things like our banks, purchasing, etc.) use cookies.
 
mpaschoal
New Member
New Member


Joined: Jul 29, 2006
Posts: 4
Location: Rio de Janeiro - Brasil

PostPosted: Fri Aug 04, 2006 10:14 pm Reply with quote

Hi!

I had the same problem: "Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in /home/public_html/mainfile.php on line 98" above the header...
Using the Dauthus tips (in quote)...

Quote:

You can try this fix and see if it works especially if you are running PHP 4.3.x: Only registered users can see links on this board! Get registered or login!


... I had the following changes in mainfile...

Quote:

// After doing those superglobals we can now use one
// and check if this file isnt being accessed directly
if (stristr(htmlentities($_SERVER['PHP_SELF']), "mainfile.php")) {
header("Location: index.php");
exit();
}

if ($phpver >= '4.0.4pl1') {
ob_end_clean();
ob_start('ob_gzhandler');
// }


... and the site is working perfectly.

Just forgive my bad english, ok?

Thanks!!!


Last edited by mpaschoal on Sat Aug 05, 2006 4:09 pm; edited 1 time in total 
View user's profile Send private message Visit poster's website MSN Messenger
Dauthus
PostPosted: Fri Aug 04, 2006 11:48 pm Reply with quote

mpaschoal, Thanks for verifying this for me. It worked for me too, but everyone seemed to think I was on the wrong track, so I just figured I would leave it alone and dig around for another method.

I came across the last one by accident while trying to up the SEO, and it seemed to work too, so I threw it in the mix.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ v2.5.x

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©