I would like to trace down the issue I'm about to explain, but I
unfortunately am not sure where to look. Any advice or help would be
appreciated.

I am continually getting NOTICE level error messages reported to
debug.log from media.php:
2010-12-15 11:04:50 Notice: Notice (8): ob_flush() [<a
href='ref.outcontrol'>ref.outcontrol</a>]: failed to flush buffer. No
buffer to flush. in [/home/sspl/cake/libs/view/media.php, line 283]

==== ACTUAL LINES ====
function _flushBuffer() {
        @flush();
        @ob_flush();    // <-- error here
}
====================

Due to execution time looping (depending on the size of the file being
served and the buffer), this notice can be (and is) repeated multiple
times. This causes the debug.log file (on default core.php logging
settings) to increase in size *very* rapidly. (I have since modified
my core.php file to use E_ALL ^ E_NOTICE to prevent the file growth,
but this is only a band-aid solution.)

I have found two other CakePHP users that have mentioned the problem:
1.
http://groups.google.com/group/cake-php/browse_thread/thread/65f03d0c43fd4edf/c86ff38f94fa2ea5?lnk=gst&q=failed+to+flush+buffer#c86ff38f94fa2ea5
2.
http://groups.google.com/group/cake-php/browse_thread/thread/7b6ec1c1f27f6c57/44767d055582552c?lnk=gst&q=failed+to+flush+buffer#44767d055582552c

There was a Lighthouse ticket for the 1.2.7 and 1.3.3 branches which
has supposedly fixed the issue for some:
http://cakephp.lighthouseapp.com/projects/42648/tickets/882-regression-for-plugins-assets-with-assetcompress-disabled-introduced-in-fix-for-864

...but not all.

It may be related to server configuration and (PHP?) server settings.

Two questions:
1. Any ideas of where to start looking, and what to look at?
2. Should the debug.log still log errors of code that had used the
suppression character (@) ?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to