Switching Visual & Text tabs in WordPress editor not working


  • Share on Google+

One of my clients recently reported my an issue when they were switching tabs, in the WordPress CMS editor, stopped working, we’re talking about the “Visual” and “Text” tabs here. When clicking on one of the tabs, I noticed the following JavaScript error appeared in my console:

Uncaught TypeError: Cannot call method 'switchto' of undefined

Clearing the cache also resulted in a notification within the WordPress CMS

JAVASCRIPT ERRORS FROM THE TINYMCE THAT IS PREVENTING THE VISUAL EDITOR FROM LOADING

For those running into the same issue this can be fixed by adding the following line to your wp-config.php file…

define( 'CONCATENATE_SCRIPTS', false );

While this might solve this issue the real problem probably lies somewhere else. Most likely there is a plugin ‘conflicting’. You can simply find out if this is the case by disabling all plugins and see if this fixes the problem. Don’t forget to remove the define mentioned above if you’re going on this debugging route and back up your database!

HAVE A PROJECT IN MIND?

Get a free same-day website design ballpark quote and roadmap proposal.

We will only send your quote and wont share your email address.