Title: ob_flush errors
Last modified: August 21, 2016

---

# ob_flush errors

 *  Resolved [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/ob_flush-errors/)
 * Once in a while I will see an error for `ob_flush` being called when there is
   no buffer set. The fix is as follows.
 *     ```
       public function onFooter()
       	{
       		if ( 0 < ob_get_level() ) {
       			ob_flush();
       		}
       	}
       ```
   
 * [http://wordpress.org/plugins/firephp-firebug-php/](http://wordpress.org/plugins/firephp-firebug-php/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [chaoix](https://wordpress.org/support/users/chaoix/)
 * (@chaoix)
 * [12 years ago](https://wordpress.org/support/topic/ob_flush-errors/#post-4492079)
 * Andy,
 * I have incorporated this fix into my Github repo for an update to this plugin.
   Thanks for the tip.
 * [https://github.com/msigley/firephp-for-wordpress](https://github.com/msigley/firephp-for-wordpress)
 *  Thread Starter [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [12 years ago](https://wordpress.org/support/topic/ob_flush-errors/#post-4492080)
 * You’re welcome. If I’d known where the GitHub repo was I would have submitted
   a PR.
 * Thanks for the plugin. It served me well, but I’m now using PHPStorm.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘ob_flush errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/firephp-firebug-php.svg)
 * [FirePHP / Firebug PHP Integration](https://wordpress.org/plugins/firephp-firebug-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/firephp-firebug-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/firephp-firebug-php/)
 * [Active Topics](https://wordpress.org/support/plugin/firephp-firebug-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/firephp-firebug-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/firephp-firebug-php/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/ob_flush-errors/#post-4492080)
 * Status: resolved