Skip to main content

Troubleshooting & Pitfalls

Errors

"Node cannot be null or undefined"

While this error can signify a lot of problems, I've often found it occurs when an editor is still bound to an element on the page, but that element no longer exists.

Make sure both to remove any unused editor instances in elements before removing those elements, and also to use the tinymce.remove() and TinyMCEManager.removeEditors() functions correctly. They take CSS selectors and work precisely according to those - passing in the class name of e.g. a div that contains lots of editor instances in its nested child elements will not work. You must pass this function a CSS selector matching elements where editors are directly inside those elements.

"Synchronous requests are disabled by permissions policy"

This can have many causes, but for Deserted Chateau, it's often caused by incorrect Apache configuration when rendering a new page via AJAX.

If the loadfromajax=1 GET parameter is lost due to incorrect Apache Rewrite rules, all of the head HTML will be loaded again, causing the error.