PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
linksysinfo
New Member
New Member


Joined: Aug 06, 2005
Posts: 9

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

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
New Member
New Member


Joined: Aug 06, 2005
Posts: 9

PostPosted: Mon Jul 10, 2006 11:59 am Reply with quote Back to top

line 120 is:

ob_start('ob_gzhandler');

I have changed this to:

ob_start();

will this incur any problems with the site?
View user's profile Send private message
montego
Site Admin


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

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

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.
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 Back to top

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.
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 Back to top

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 to the forums!
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 9:13 am Reply with quote Back to top

Since its the mainfile that has the gzip part of this code, this change would probably not help.
View user's profile Send private message
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 Back to top

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: 6373
Location: Vsetin, Czech Republic

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

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 Visit poster's website
DarK_Gamers
New Member
New Member


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

PostPosted: Wed Jul 12, 2006 3:37 pm Reply with quote Back to top

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
View user's profile Send private message
linksysinfo
New Member
New Member


Joined: Aug 06, 2005
Posts: 9

PostPosted: Wed Jul 12, 2006 3:58 pm Reply with quote Back to top

yep mine has always been off.
View user's profile Send private message
Dauthus
Worker
Worker


Joined: Oct 07, 2003
Posts: 211

PostPosted: Wed Jul 12, 2006 6:20 pm Reply with quote Back to top

Ok then, how about this?
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
linksysinfo
New Member
New Member


Joined: Aug 06, 2005
Posts: 9

PostPosted: Wed Jul 12, 2006 6:25 pm Reply with quote Back to top

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.
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

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

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


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: 579
Location: Texas

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

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.
View user's profile Send private message Visit poster's website
linksysinfo
New Member
New Member


Joined: Aug 06, 2005
Posts: 9

PostPosted: Sat Jul 22, 2006 3:20 am Reply with quote Back to top

It worked for me, without any problems, however i have now, sorry to say, moved over to the dark side.... to vBulletin
View user's profile Send private message
Dauthus
Worker
Worker


Joined: Oct 07, 2003
Posts: 211

PostPosted: Sun Jul 23, 2006 4:52 pm Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
Susann
Moderator


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

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

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 Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Sun Jul 23, 2006 7:13 pm Reply with quote Back to top

Interesting
View user's profile Send private message Send e-mail Visit poster's website
Dauthus
Worker
Worker


Joined: Oct 07, 2003
Posts: 211

PostPosted: Mon Jul 24, 2006 9:20 am Reply with quote Back to top

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 to the forums!
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Mon Jul 24, 2006 10:37 am Reply with quote Back to top

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.
View user's profile Send private message Send e-mail Visit poster's website
Susann
Moderator


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

PostPosted: Mon Jul 24, 2006 1:26 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
montego
Site Admin


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

PostPosted: Mon Jul 24, 2006 8:39 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
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 Back to top

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 to the forums!



... 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
Worker
Worker


Joined: Oct 07, 2003
Posts: 211

PostPosted: Fri Aug 04, 2006 11:48 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum