Title: JSON errors by unclosed ob_start function
Last modified: April 13, 2023

---

# JSON errors by unclosed ob_start function

 *  [Remco](https://wordpress.org/support/users/rembem/)
 * (@rembem)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/json-errors-by-unclosed-ob_start-function/)
 * Hi,
 * We have users in our FacetWP.com support, reporting JSON errors while also using
   your plugin:
   [https://d.pr/i/GRfRDi](https://d.pr/i/GRfRDi)
 * These are caused by unclosed ob_start functions.
 * You are opening a buffer here:
   [https://plugins.trac.wordpress.org/browser/tag-manager-header-body-footer/trunk/include/front-end-output.php#L307](https://plugins.trac.wordpress.org/browser/tag-manager-header-body-footer/trunk/include/front-end-output.php#L307)
 * that could potentially not end.
 * Maybe you can look into this and make sure buffers always end.
 * Thanks,
   RemcoFacetWP.com support/dev team

The topic ‘JSON errors by unclosed ob_start function’ is closed to new replies.

 * ![](https://ps.w.org/tag-manager-header-body-footer/assets/icon-256x256.png?rev
   =2176667)
 * [Tag Manager - Header, Body And Footer](https://wordpress.org/plugins/tag-manager-header-body-footer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tag-manager-header-body-footer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tag-manager-header-body-footer/)
 * [Active Topics](https://wordpress.org/support/plugin/tag-manager-header-body-footer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tag-manager-header-body-footer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tag-manager-header-body-footer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Remco](https://wordpress.org/support/users/rembem/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/json-errors-by-unclosed-ob_start-function/)
 * Status: not resolved