Title: Error: Failed to execute &#039;insertBefore&#039; on &#039;Node&#039;
Last modified: August 22, 2016

---

# Error: Failed to execute 'insertBefore' on 'Node'

 *  [Asitha](https://wordpress.org/support/users/asitha/)
 * (@asitha)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-failed-to-execute-insertbefore-on-node/)
 * After the latest update, I’m getting the following error:
 * Uncaught NotFoundError: Failed to execute ‘insertBefore’ on ‘Node’: The node 
   before which the new node is to be inserted is not a child of this node.
 * I’m using shortcodes to wrap the code.
 * [https://wordpress.org/plugins/syntaxhighlighter/](https://wordpress.org/plugins/syntaxhighlighter/)

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

 *  [llvasconcellos](https://wordpress.org/support/users/llvasconcellos/)
 * (@llvasconcellos)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-failed-to-execute-insertbefore-on-node/#post-5743692)
 * I’m having the same problem right now. Did you manage to solve it?
 *  Thread Starter [Asitha](https://wordpress.org/support/users/asitha/)
 * (@asitha)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-failed-to-execute-insertbefore-on-node/#post-5743693)
 * Unfortunately because I did not get a response, I moved on to another plugin 
   called Crayon Syntax Highlighter
 *  [llvasconcellos](https://wordpress.org/support/users/llvasconcellos/)
 * (@llvasconcellos)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-failed-to-execute-insertbefore-on-node/#post-5743694)
 * I just fixed it. I had php display errors enabled on php.ini.
    After disabling
   it worked fine.

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

The topic ‘Error: Failed to execute 'insertBefore' on 'Node'’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/syntaxhighlighter_ffffff.svg)
 * [SyntaxHighlighter Evolved](https://wordpress.org/plugins/syntaxhighlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/syntaxhighlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/syntaxhighlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/syntaxhighlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/syntaxhighlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/syntaxhighlighter/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [llvasconcellos](https://wordpress.org/support/users/llvasconcellos/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/error-failed-to-execute-insertbefore-on-node/#post-5743694)
 * Status: not resolved