WordPress.org

Support

Support » How-To and Troubleshooting » Error: switchEditors is not defined

Error: switchEditors is not defined

  • Hello i have this jquery error on the Page where i edit MEDIA, the page where i use wordpress native media tools crop / resize etc.

    I tried :

    Disable scissors,

    define(‘CONCATENATE_SCRIPTS’, false );

    define(‘SCRIPT_DEBUG’, true);

    Its not working..

    Getting desperate now since client is not very happy at the moment.

    Firebug console :

    ReferenceError: switchEditors is not defined
    switchEditors.switchto(this);

    post.p…onclick (line 2)
    ReferenceError: switchEditors is not defined

    switchEditors.switchto(this);

    post.p…onclick (line 2)

    problem is somewhere on post.php page, i am just not getting it.

    help is being much apriciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • If you’re under pressure to get it done, you’re best to hire someone that can work on it promptly.

    Have you tried disabling any plugins that could be causing the JS conflict? Or maybe something in functions.php?

    Its a fairly large website, 50-60 k visits a day, 300mb database. On a custom theme i developed.

    I am trying to avoid shuting everything down and reinstalling wordpress.

    dont think its anything in functions php, do it does have 2000 lines of various code in it.

    So far i am prety sure it is a tinymce problem. by googling i found out that there is an extension in tinymce called switchEditors

    so its probably something related to it.

    I also noticed there is another error, when i press crop at the gallery interface however this one is related to scissors plugin, which might be related or might not be related to this.

    ReferenceError: scissorsShowCrop is not defined
    https://hotsport.rs/wp-admin/post.php?post=95608&action=edit/132

    Oh this is just awesume, i somehow managed to fix it, but i dont know how, i dont get the error any more, however now Edit Image button is missing so i cant access the screen where i crop / resize the image..

    it is jQuery error, just add wp_footer() and it will solve it. i had it and it work after add this function

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error: switchEditors is not defined’ is closed to new replies.
Skip to toolbar