• Resolved mroandersons

    (@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

    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 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marcel Pol

    (@mpol)

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

    Regards,
    Marcel

    Thread Starter mroandersons

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