.78 work well on my local server (MAMP - PHP 516 mysql5,019) but not on my ISP (PHP 521 mysql415)
1.01 work well on my local server (MAMP - PHP 516) but not on my ISP (PHP 521) - ie pb when comments are closed - the page is not totally built and stop just when call to comment is stop
(I use comments file from theme classic and WP213)
Curiously don't occur when classic theme is active..
The mysterous is global. Any ideas ?
This function's behaviour - obstart - has been changed in php 5.2.0 ???
Does your theme call wp_footer() in the footer, even when comments are closed? Because that's when the output buffer for the comments preview should be flushed.
Actually the change in PHP 5.2 that you link to doesn't apply in the case of my plugin, because I pass the callback function to ob_start as a method of a global object to avoid the problems with using global variables within ob_start.
The problem is that you have to flush the output buffer, and when comments are closed my plugin flushes the output buffer as a callback of the wp_footer action hook, which you were missing if you weren't calling wp_footer() in your theme, leaving the output buffer un-flushed.
.78 work well on my local server (MAMP - PHP 516 mysql5,019) but not on my ISP (PHP 521 mysql415)
1.01 work well on my local server (MAMP - PHP 516) but not on my ISP (PHP 521) - ie pb when comments are closed - the page is not totally built and stop just when call to comment is stop
(I use comments file from theme classic and WP213)
Curiously don't occur when classic theme is active..
The mysterous is global. Any ideas ?
This function's behaviour - obstart - has been changed in php 5.2.0 ???
Does your theme call wp_footer() in the footer, even when comments are closed? Because that's when the output buffer for the comments preview should be flushed.
Hi! My theme don't use wp_footer() - After exploring long time, I expect now that the error is coming from the function ob_start and the change described here :
http://fr.php.net/manual/en/function.ob-start.php#73865
By adding wp_footer() - the theme work again both in 5.1 and 5.2
If I will have time, I will continue to explore step by step and how object are created and transformed and why the error occur...
Actually the change in PHP 5.2 that you link to doesn't apply in the case of my plugin, because I pass the callback function to ob_start as a method of a global object to avoid the problems with using global variables within ob_start.
The problem is that you have to flush the output buffer, and when comments are closed my plugin flushes the output buffer as a callback of the wp_footer action hook, which you were missing if you weren't calling wp_footer() in your theme, leaving the output buffer un-flushed.
RSS feed for this topic
Reply
You must log in to post.