Skip to:
Content
Pages
Categories
Search
Top
Bottom

Auto-Suggest is Broken

  • Profile photo of Manish
    Manish
    Participant

    @financetrain

    The plugin is broken and gives the error “undefined undefined” when you type @ and a letter after it.

    I’m using version 1.6.1

    Can you please help?

Viewing 15 replies - 1 through 15 (of 15 total)
  • I can’t immediately, but I’ll look into it when I get some time. You’ll need to let me know what versions of WordPress, BuddyPress you have, and what theme you’re using.

    Profile photo of Manish
    Manish
    Participant

    @financetrain

    Hi Paul,

    Thank you for your response. I’ve seen other people also mention this problem on the wordpress forum.

    I’m using WordPress 3.4.1, and BuddyPress 1.6.1.

    The theme is the default BuddyPress theme with a few css modifications.

    Looking forward to your response.

    It’s probably weeks/month away from being looked at; Labs is low priority for me, and I’m very busy at the moment.

    Profile photo of Manish
    Manish
    Participant

    @financetrain

    Hey Paul,

    Thanks for telling me. I’ll try to fix it, atleast a temporary solution.

    Look forward to whenever you are ready to look into it.

    Profile photo of af3
    af3
    Participant

    @af3

    Manish – did you get a temp fix for this? Pls share. Thanks

    Profile photo of drhoussem
    drhoussem
    Member

    @drhoussem

    I have the same probleme with frisco theme! my community membres love that option, I hope that you’ll fix it as soon as possible :)

    Profile photo of Manish
    Manish
    Participant

    @financetrain

    I am looking into it but till now haven’t found the fix. What I see is this:

    In jquery.mentions.js , we have the following ajax request

    `$.ajax({
    dataType : o.dataType,
    type : ‘POST’,
    url : ajaxurl,
    data : {
    ‘action’ : ‘activity_mention_autosuggest’,
    ‘cookie’ : encodeURIComponent(document.cookie),
    ‘format’ : o.dataType,
    ‘limit’ : o.max_suggestions,
    ‘search’ : query
    },

    // Callbacks
    error : o.error,
    success : function(response, textStatus, jqXHR) { receive_results( response, textStatus, jqXHR, query ); }

    });`

    Now the issue is that the response is always 0, no matter what you do. i am checking if the action activity_mention_autosuggest is being called properly. In my understanding, the problem lies with the data action in the above jquery.

    If Paul could spend a few minutes and help in this, I would really appreciate it.

    Profile photo of drhoussem
    drhoussem
    Member

    @drhoussem

    @djpaul try to spend few minutes to look where is the probleme :'(

    Profile photo of Manish
    Manish
    Participant

    @financetrain

    I could not really solve the problem, but what I did is deactivate the plugin, and then copy the relevant files and functions for autosuggest to my theme folder and it’s started working.

    Profile photo of iamdhunt
    iamdhunt
    Participant

    @iamdhunt

    @financetrain Can I ask exactly which files and functions did you need to copy to get it working? Thanks.

    Profile photo of dvd3141
    David Hunt
    Participant

    @dvd3141

    Just wanted to note that I also have this problem. If anyone can suggest a fix, please post it here.

    Profile photo of af3
    af3
    Participant

    @af3

    Anyone ?

    Profile photo of ayazcreations
    ayazcreations
    Participant

    @ayazcreations

    Hi! all
    Same problem here. The BP Labs @mentions plugin is broken.
    @Manish please share with us how you have fixed it (temporarily though). I have latest WP+BP+BPLabs, Theme SOCIAL(latest)

    Someone’s provided a patch on Github for this, but I haven’t checked it out yet: https://github.com/paulgibbs/BP-Labs/pull/1

    Profile photo of mgkoller
    mgkoller
    Participant

    @mgkoller

    I replaced the breaker.php from 1.2.2 with the updated breaker.php on github
    (https://github.com/rmccue/BP-Labs/blob/916b63f817553a8d5b0cbd408b9ada78fd2be1c0/beakers/class-bplabs-beaker.php)
    and the auto-suggest finds the username and auto-completes, the ajax dropdown seems a little quirky but everything works.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Auto-Suggest is Broken’ is closed to new replies.
Skip to toolbar