Support » Plugin: Simple Event Planner » Media library broken and JavaScript error in the console

  • Resolved pierreripka

    (@pierreripka)


    Today I noticed that my media library no longer worked, and that there were JavaScript errors in the back-office.

    After disabling all plugins, the issue was gone. I then reactivated the plugins one by one and realized that it was Simple Event Planner which caused the issue.

    Here is the error I see in the console on the media library page when the plugin is activated:

    upload.php:2240 Uncaught TypeError: ajaxurl.indexOf is not a function
        at upload.php:2240
        at Function.<anonymous> (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.4:4)
        at Function.each (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.4:2)
        at g (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.4:4)
        at Tb (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.4:4)
        at Function.ajax (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.4:4)
        at Function.n.<computed> [as post] (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.4:4)
        at HTMLDocument.<anonymous> (upload.php:429)
        at i (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.4:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.4:2)

    I think this issue is similar to the one discussed here: https://wordpress.org/support/plugin/simple-event-planner/

    Can you help me please?

    Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Media library broken and JavaScript error in the console’ is closed to new replies.