Title: shutdown function flush output buffer
Last modified: January 23, 2020

---

# shutdown function flush output buffer

 *  Resolved [ewd910](https://wordpress.org/support/users/ewd910/)
 * (@ewd910)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/shutdown-function-flush-output-buffer/)
 * Hi, I’ve been building a wordpress site with this plugin and it has been difficult
   to develop with because the exception thrown on line 191 of mgcl_core.php when
   the output buffer is flushed slows my php debugger. I suggest changing this code
   to
 *     ```
       while (ob_get_level() > 0) {
           ob_end_flush();
       }
       ```
   
 * To avoid the exception and avoid using the ‘@’ operator.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/shutdown-function-flush-output-buffer/#post-12375529)
 * Hello,
 * Good idea and thanks 🙂 I modified the code and that will be part of the next
   release.

Viewing 1 replies (of 1 total)

The topic ‘shutdown function flush output buffer’ is closed to new replies.

 * ![](https://ps.w.org/gallery-custom-links/assets/icon-256x256.png?rev=2588900)
 * [Gallery Custom Links](https://wordpress.org/plugins/gallery-custom-links/)
 * [Support Threads](https://wordpress.org/support/plugin/gallery-custom-links/)
 * [Active Topics](https://wordpress.org/support/plugin/gallery-custom-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gallery-custom-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gallery-custom-links/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/shutdown-function-flush-output-buffer/#post-12375529)
 * Status: resolved