| Author |
Message |
linksysinfo New Member


Joined: Aug 06, 2005 Posts: 9
|
Posted:
Mon Jul 10, 2006 11:16 am |
|
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) |
|
|
|
 |
linksysinfo New Member


Joined: Aug 06, 2005 Posts: 9
|
Posted:
Mon Jul 10, 2006 11:59 am |
|
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: 9136 Location: Arizona
|
Posted:
Tue Jul 11, 2006 6:17 am |
|
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. |
|
|
|
 |
technocrat Life Cycles Becoming CPU Cycles

Joined: Jul 07, 2005 Posts: 511
|
Posted:
Tue Jul 11, 2006 8:10 am |
|
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. |
|
|
|
 |
Dauthus Worker


Joined: Oct 07, 2003 Posts: 211
|
Posted:
Tue Jul 11, 2006 9:08 am |
|
You can try this fix and see if it works especially if you are running PHP 4.3.x:
|
|
|
|
 |
technocrat Life Cycles Becoming CPU Cycles

Joined: Jul 07, 2005 Posts: 511
|
Posted:
Tue Jul 11, 2006 9:13 am |
|
Since its the mainfile that has the gzip part of this code, this change would probably not help. |
|
|
|
 |
DarK_Gamers New Member


Joined: Jun 19, 2006 Posts: 11 Location: Portugal and Holland :)
|
Posted:
Wed Jul 12, 2006 3:27 pm |
|
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. |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
|
Posted:
Wed Jul 12, 2006 3:32 pm |
|
And all of you that have this issue have 'enable gzip' turned OFF in the forum config? |
|
|
|
 |
DarK_Gamers New Member


Joined: Jun 19, 2006 Posts: 11 Location: Portugal and Holland :)
|
Posted:
Wed Jul 12, 2006 3:37 pm |
|
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
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 New Member


Joined: Aug 06, 2005 Posts: 9
|
Posted:
Wed Jul 12, 2006 3:58 pm |
|
yep mine has always been off. |
|
|
|
 |
Dauthus Worker


Joined: Oct 07, 2003 Posts: 211
|
Posted:
Wed Jul 12, 2006 6:20 pm |
|
|
|
 |
linksysinfo New Member


Joined: Aug 06, 2005 Posts: 9
|
Posted:
Wed Jul 12, 2006 6:25 pm |
|
| 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
|
Posted:
Thu Jul 13, 2006 2:12 pm |
|
this seems to be related..
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); |
|
|
|
|
 |
southern Client

Joined: Jan 29, 2004 Posts: 579 Location: Texas
|
Posted:
Fri Jul 21, 2006 11:02 pm |
|
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. |
|
|
|
 |
linksysinfo New Member


Joined: Aug 06, 2005 Posts: 9
|
Posted:
Sat Jul 22, 2006 3:20 am |
|
It worked for me, without any problems, however i have now, sorry to say, moved over to the dark side.... to vBulletin |
|
|
|
 |
Dauthus Worker


Joined: Oct 07, 2003 Posts: 211
|
Posted:
Sun Jul 23, 2006 4:52 pm |
|
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: 3143 Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Sun Jul 23, 2006 6:18 pm |
|
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. |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
|
Posted:
Sun Jul 23, 2006 7:13 pm |
|
|
|
 |
Dauthus Worker


Joined: Oct 07, 2003 Posts: 211
|
Posted:
Mon Jul 24, 2006 9:20 am |
|
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.
|
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
|
Posted:
Mon Jul 24, 2006 10:37 am |
|
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 Moderator

Joined: Dec 19, 2004 Posts: 3143 Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Mon Jul 24, 2006 1:26 pm |
|
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 Site Admin

Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
|
Posted:
Mon Jul 24, 2006 8:39 pm |
|
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


Joined: Jul 29, 2006 Posts: 4 Location: Rio de Janeiro - Brasil
|
Posted:
Fri Aug 04, 2006 10:14 pm |
|
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:
|
... 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 |
|
|
 |
Dauthus Worker


Joined: Oct 07, 2003 Posts: 211
|
Posted:
Fri Aug 04, 2006 11:48 pm |
|
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. |
|
|
|
 |
|
|
|
|