Title: Script output before doctype is causing errors
Last modified: March 1, 2022

---

# Script output before doctype is causing errors

 *  Resolved [norabrown212](https://wordpress.org/support/users/norabrown212/)
 * (@norabrown212)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/script-output-before-doctype-is-causing-errors/)
 * Hello. Thanks for this plugin, it’s very handy.
 * On the latest version, (and latest version of WordPress) this line:
 * `$this->loader->add_action('enqueue_block_editor_assets', $plugin_admin, 'remove_publishing_sidebar_gutenberg');`
 * is causing the script to be output before the `<doctype>` and that is causing
   some issues on the editing screen. I removed that line and all is working fine
   now. I don’t understand what that script is supposed to disable, but I think 
   it should be optional. Thank you.

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

 *  Plugin Author [Felix W.](https://wordpress.org/support/users/welly2103/)
 * (@welly2103)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/script-output-before-doctype-is-causing-errors/#post-15420230)
 * Hi [@norabrown212](https://wordpress.org/support/users/norabrown212/),
 * Thanks for the feedback, I hope to have solved the problem with version 1.0.19.
   Can you please update your plugin and test if the problem persists?
 * Greetings Felix
 *  Thread Starter [norabrown212](https://wordpress.org/support/users/norabrown212/)
 * (@norabrown212)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/script-output-before-doctype-is-causing-errors/#post-15422803)
 * Yes, this appears to be fixed! Thanks for the quick reply and update.
 *  Thread Starter [norabrown212](https://wordpress.org/support/users/norabrown212/)
 * (@norabrown212)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/script-output-before-doctype-is-causing-errors/#post-15422806)
 * Now just marking as resolved…

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

The topic ‘Script output before doctype is causing errors’ is closed to new replies.

 * ![](https://ps.w.org/extended-post-status/assets/icon-256x256.png?rev=1981802)
 * [Extended Post Status](https://wordpress.org/plugins/extended-post-status/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/extended-post-status/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/extended-post-status/)
 * [Active Topics](https://wordpress.org/support/plugin/extended-post-status/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/extended-post-status/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/extended-post-status/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [norabrown212](https://wordpress.org/support/users/norabrown212/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/script-output-before-doctype-is-causing-errors/#post-15422806)
 * Status: resolved