Home Forums Plugin Support WP User Frontend Pro Conflict with autosuggest.

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  noomia 5 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #4606

    Post count: 115

    Hi Tareq !

    It seems I have a big problem here… I've bought this plugin to have an autosuggest search form. WordPress with only this plugin, it works well. Then, if I activate WPUF Pro, I have a script error that brake autosuggest plugin :
    Uncaught Error: cannot call methods on autocomplete prior to initialization; attempted to call method 'http://.../wp-admin/admin-ajax.php'

    It seems that this is a conflict with the jquery-ui you enqueue.
    If I desactivate WPUF and add in my function.php :
    wp_enqueue_script('jquery-ui-core');, autosuggest works.
    wp_enqueue_script( 'jqueryUi', 'http://code.jquery.com/ui/1.10.2/jquery-ui.js', array('jquery'), '1.0', true );, autosuggest doesn't work.

    So It seems that the problem is How jQuery-ui is enqueued… How do you enqueue jQuery-ui in WPUF ? Could it be changed ?



    Tareq Hasan
    Post count: 2831

    I enqueued via wp_enqueue_script('jquery-ui-core');, because the other jQuery UI is very old and that might be conflicting.


    Post count: 115

    Ok thanks Tareq,

    It seems it's a conflict with jquery-ui-autocomplete and the autosuggestplugin…

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Conflict with autosuggest.’ is closed to new replies.