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

  • Resolved mroandersons

    (@mroandersons)


    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

    wp_localize_script(
                        $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 1 replies (of 1 total)
  • Plugin Support Arsalan Ahmed

    (@arsalanahmed901)

    Hi @mroandersons,

    Thanks for pointing out such an issue.

    We will surely diagnose it on our end and add a fix in the next release of the Simple Event Planner.

    Feel free to reach out for further assistance.

    Regards,

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.