• Resolved arhit

    (@arhit)


    Hi, first of all, Events manager is an awesome plugin.

    (but… ??

    There is a compatibility problem with SiteOrigin page builder plugin . When EM is active, it breaks their builder.

    The error in console is:

    Error: cannot call methods on dialog prior to initialization; attempted to call method 'option'

    In admin (While editing pages), it breaks SiteOrigin (accordion style) widget options in their builder for the widgets including:

    SiteOrigin Button
    SiteOrigin Call-to-action
    SiteOrigin Headline
    SiteOrigin Social Media Buttons
    SiteOrigin Video

    Access to option is therefore limited, because they can’t open/close

    When I disable Events Manager plugin, their builder starts working again.

    How I temporaly resolved it:
    in events-manager.php I removed jquery-ui-dialog as dependancy in function admin_enqueue().
    I most certanly broke something with this of course. And don’t ask me, how I came up with the idea, that this might help.

    I really hope theme authors (or someone else, smarter than me) comes up with a proper fix.

    Any ideas, why this would happen?

    https://www.ads-software.com/plugins/events-manager/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    I see what you mean, however can I know if your page builder plugin is also using wordpress default jquery library or loading it’s own version?

    Thread Starter arhit

    (@arhit)

    I check through the plugin files, but didn’t find jquery, or jquery ui files. Also searched for wp_enqueue_script,
    as I saw, they don’t load jquery or jquery ui, they just use it as dependancy.
    ie:
    wp_enqueue_script( ‘siteorigin-widget-admin’, plugin_dir_url(SOW_BUNDLE_BASE_FILE).’base/js/admin’ . SOW_BUNDLE_JS_SUFFIX . ‘.js’, array( ‘jquery’, ‘jquery-ui-sortable’, ‘jquery-ui-slider’ ), SOW_BUNDLE_VERSION, true );

    I even did search for jquery-ui-dialog but they apparently don’t use that.

    Thanks for looking into this.

    Can you post a link to your site?

    Thread Starter arhit

    (@arhit)

    If you want, I can easily install a demo page with Events manager plugin and Siteorigin panels (pagebuilder), so you can see the error. What is the best way to safely send you WP credentials / ftp access info?

    Thread Starter arhit

    (@arhit)

    I’ve already set up a clean demo with twentythirteen theme and only plugins installed are:

    – Events Manager
    – Page Builder by SiteOrigin
    – SiteOrigin Widgets Bundle

    the link to the demo site is demo site
    Since the error is on the admin part, you won’t be able to see it on frontend. I can’t really post the admin credentials here. I need a safe way to send you the login credentials.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Sorry for the delay. I’ve just reviewed our code regarding dialogs, and if the problem is because we enqueue jQuery UI Dialog, then it’s likely there’s a JS bug in SiteOrigin’s side of things, because we’re enqueueing it the WP way.

    We also only call dialog functions withih jQuery.ready meaning everything should be initialized.

    I could double-check the demo site if it’s still up, but pretty sure that the other plugin devs should look at this. You or they can contact me via https://wp-events-plugin.com/contact-us/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘jquery-ui-dialog related bug’ is closed to new replies.