Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » ob_gzhandler problem with RSS feeds

#1 2005-10-14 18:27:25

cmv
New Member
Registered: 2004-03-24
Posts: 6

ob_gzhandler problem with RSS feeds

All of my RSS feeds (for example) end prematurely with the following code:

<br />
<b>Warning</b>: (null)() [<a href='http://www.php.net/ref.outcontrol'>ref.outcontrol</a>]: output handler 'ob_gzhandler' cannot be used twice in <b>Unknown</b> on line <b>0</b><br />

I’m using TXP 4.0.1 from SVN. Output buffering and handling is not turned on via php.ini or my Apache config settings. Any ideas?

Offline

#2 2005-10-15 00:28:12

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: ob_gzhandler problem with RSS feeds

Are you using a plugin or include()ing a script that might turn output buffering on?

Textpattern doesn’t turn it on twice, and from the look of this error, it’s this external thing that’s turning it on the second time. If it was Textpattern, the message would refer to a specific line in rss.php.


Alex

Offline

#3 2005-10-16 21:03:56

cmv
New Member
Registered: 2004-03-24
Posts: 6

Re: ob_gzhandler problem with RSS feeds

Actually, line 20 and 121 of publish/rss.php turn on output buffering.

If I comment out line 20, then the error still happens, so it’s the call on line 121 that’s causing issues.

I don’t have any plugins that are using OB, nor is it enabled in php.ini, .htaccess or httpd.conf (a phpinfo() page confirms all this). Any other ideas?

Offline

#4 2005-10-16 21:07:41

cmv
New Member
Registered: 2004-03-24
Posts: 6

Re: ob_gzhandler problem with RSS feeds

Ah crap … it’s probably due to the fact that I’m running PHP 4.3.0 on this box. There was a bug that sounds just like this.

Sorry to bother y’all (however, you may want to see why you need two calls to ob_start() in rss.php and atom.php (lines 181 and 254).

Offline

#5 2005-10-16 23:13:09

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: ob_gzhandler problem with RSS feeds

There was a bug that sounds just like this.

Thanks, I wasn’t aware of that.

you may want to see why you need two calls to ob_start() in rss.php and atom.php

Ah, I thought they’d been removed already. Gone in r1037.


Alex

Offline

  1. Index
  2. » Archives
  3. » ob_gzhandler problem with RSS feeds

Board footer

Powered by FluxBB