If you’re seeing this message, there’s a simple PHP snippet you can add to your functions.php file courtesy of Kevin Leary:

https://www.kevinleary.net/wordpress-ob_end_flush-error-fix/

/* Prevent ob_end_flush() notice when in debug mode */
if (WP_DEBUG) {
	remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 );
	add_action( 'shutdown', function() {
	   while ( @ob_end_flush() );
	} );
}

Allen Robinson

Director of Application Development
Allen has been responsible for overseeing client website development, implementation, and maintenance at Foxtrot Media for over 10 years. A Computer Science graduate from the University of Wisconsin- Madison, Robinson is a software development and content management system specialist, fluent in CSS, PHP, MySQL, HTML, and JavaScript.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Allen Robinson

Director of Application Development
Allen has been responsible for overseeing client website development, implementation, and maintenance at Foxtrot Media for over 10 years. A Computer Science graduate from the University of Wisconsin- Madison, Robinson is a software development and content management system specialist, fluent in CSS, PHP, MySQL, HTML, and JavaScript.

Post Details

Categories: