Project

General

Profile

Actions

Bug #19919

closed

"output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter'" on backend login

Added by Carsten Pohle almost 16 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-01-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

On the backend login-screen, the message

Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in /PATH_TO_TYPO3_INSTALL/typo3/init.php on line 389

appears.

Fix: Move the "compression" block befor the "BackEnd User authentication".

(issue imported from #M10273)


Files

bug_0010273.diff (1.04 KB) bug_0010273.diff Administrator Admin, 2009-01-26 16:02

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #21804: output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in .... /typo3_src-4.3.0/typo3/init.php line 436ClosedChris topher2009-12-05

Actions
Actions #1

Updated by Oliver Hader over 15 years ago

I can confirm this issue on a website running at Domainfactory...
Please tell whether you have phpMyAdmin installed and in what version.
Please also look into the headers sent back to the client and look for "Transfer-Encoding".
Thanks!

Actions #2

Updated by Peter Kraume over 15 years ago

I can confirm this problem with Domainfactory and PMA 4.2.0 / PMA 4.3.0.
After uninstalling PMA the problem is gone.

Actions #3

Updated by Steffen Gebert over 15 years ago

I can reproduce it on one site using 4.3-dev
not reproducable on another site running 4.2.6, but also with BE-compression enabled.
Both on dF-servers.

Could you find out anything more about this bug? Is PMA responsible for it or does this TYPO3 bug only caused by PMA?

Actions #4

Updated by Tobias H. almost 15 years ago

I have the same error, with 4.3 now logged:

Core: Error handler (BE): PHP Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in /../typo3_src-4.3.0/typo3/init.php line

I have this error only when the PMA is installed. Of course the newest version.

Actions #5

Updated by Steffen Gebert over 14 years ago

This one is still valid, does anyone have an idea?

Tobias, are you also at domainfactory?

Don't know if it's a good idea to move the compression block around.

Actions #6

Updated by Peter Kraume about 14 years ago

Any news on this issue?

Actions #7

Updated by Oliver Hader about 14 years ago

Can somebody using Domainfactory please post the "zlib.*" part of the php.ini? I guess that compression is already enabled/defined there - thus, checking in TYPO3 if compression is already enabled should be enough.

Actions #8

Updated by Steffen Gebert about 14 years ago

Settings are
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value

Actions #9

Updated by Steffen Gebert about 14 years ago

Searching the web shows we're not alone..

I found a PHP bug from back in 2003, when this error message was introduced: http://bugs.php.net/24315

PHP now (latest stable CVS) reports the correct error message
(ob_start(): output handler 'ob_gzhandler' cannot be used after
'URL-Rewriter') if you call ob_start('ob_gzhandler'); after
session_start hs been called and trans_sid is used.
The solution is to call ob_start('ob_gzhandler'); before
session_start().

Actions #10

Updated by Steffen Gebert about 14 years ago

In EXT:phpmyadmin/res/phpMyAdmin-xxx/libraries/session.inc.php I see the following lines:

// but not all user allow cookies
@ini_set('session.use_only_cookies', false);
@ini_set('session.use_trans_sid', true);
@ini_set('url_rewriter.tags', 'a=href' ...)

As we 'can' cookies, I suggest to just remove these ini_set().
As adviced, session_start() is called afterwards, but I think TYPO3 itself already started a session.

Can sb. have a quick check on deactivating these lines, please?

Actions #11

Updated by Steffen Gebert about 14 years ago

Doesn't work..

Actions #12

Updated by Alexander Opitz about 11 years ago

  • Status changed from Accepted to Needs Feedback
  • Target version deleted (0)
  • Is Regression set to No

Hi,

as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #13

Updated by Oliver Hader about 11 years ago

In 6.x it's different due to the overworked bootstrap mechanism.
TYPO3 4.5 uses t3lib_utility_Http::redirect() in the backend user authentication which exits after a redirect.

Thus, in case of a redirect, the ob_gzhandler won't be triggered anymore.

Actions #14

Updated by Oliver Hader about 11 years ago

  • Status changed from Needs Feedback to Resolved
Actions #15

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions #16

Updated by 2eduvu cye1ccfyn over 1 year ago

What the heck does this mean and how can I fix it? This is only displayed once per browser session. It disappears by clicking refresh or going back to the page.

Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL- [Rewriter][https://seotoolsystem.com/ai-paragraph-rewriter-online] ' in /home/public_html/forums/pageheader.php on line 18

Here's the snippet of code for that section:

$gzip_compressed = 0;
if($config['use_gzip_compression'] == 1) {
if(phpversion() >= "4.0.4") {
if(extension_loaded("zlib")) {
ob_start("ob_gzhandler");
$gzip_compressed = 1;
}
}
}

if($gzip_compressed 0 && $config['activate_ob'] 1) {
ob_start();
}

Actions

Also available in: Atom PDF