Support » Plugin: Super Simple Event Calendar » ajaxurl.indexOf is not a function (conflict with polylang)

  • Resolved mroandersons


    First of all – thank you for great plugin!

    In our site we found error “ajaxurl.indexOf is not a function”, when trying to add featured image. It prevented media library to open.

    After some debugging I finally commented out /admin/class=simple-event-planner-admin.php lines 154 to 158

                        $this->simple_event_planner . '-admin-scripts', 'ajaxurl', array(
                    'url' => admin_url('admin-ajax.php'),

    And it fixed the error.
    Maybe you can add quick check if page is using polylang in future versions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marcel Pol


    It seems you are mistaken, probably this is about another plugin.
    This plugin doesn’t use any JavaScript or AJAX or wp_localize_script.


    Thread Starter mroandersons


    I’m sorry. You are right. It was other very similar named plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ajaxurl.indexOf is not a function (conflict with polylang)’ is closed to new replies.