WordPress.org

Forums

Error: switchEditors is not defined (5 posts)

  1. Surrogate
    Member
    Posted 1 year ago #

    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.

  2. Jonathan Dingman
    Member
    Posted 1 year ago #

    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?

  3. Surrogate
    Member
    Posted 1 year ago #

    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

  4. Surrogate
    Member
    Posted 1 year ago #

    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..

  5. amfap3
    Member
    Posted 10 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic