Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi there,

    I’m sorry, but I’m not able to reproduce this issue. Please read https://dontdream.it/support-options/ about how I can help you in this case.

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hello mecanographik,

    I’ve been able to reproduce this issue, but only when the Form Method is set to GET.

    Is that your case? If so, you can set your Form Method to POST until I find a fix.

    Thank you for your report!

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hello again,

    I have a report from another user who was able to solve this issue by simply clearing the browser cache. Could that be your case too?

    MattPurland

    (@mattpurland)

    WP: 4.1
    BP: 2.1.1
    BPS: 4.0.3

    I get this issue also, though my search form is already set to POST. The form doesn’t work at all when setting it to GET (clicking search redirects me back to the search form).

    I’m stepping through the code and can see that upon the pagination AJAX call there’s a filter missing (bp_pre_user_query_construct) and so is not being run – this filter exists when posting the initial form, just not when using pagination (AJAX). From what I can tell, BPS uses this filter to apply the search terms against all users to get the user IDs needed for the main query. But during the paginated AJAX call the filter doesn’t exist and is skipped.

    A quick look at the bps-search.php code will show you the filter being applied and removed before and after the members loop.

    I’m pretty sure that makes sense.

    Now, I’m no WP expert, WP baffles me on the best of days. I’ve dug as deep as I can go without my brain exploding, but if anyone understands this and knows how to get the filter to exist on AJAX calls, then we hopefully have a fix!

    Any help would be appreciated, I’ve spent far too long trying to fix this. If any code snippets are needed or more info then please ask!

    MattPurland

    (@mattpurland)

    FYI: when debugging you can see that all the other BP/BPS filters are available in $wp_filters, just not this one (there could be others, I’ve no idea).

    If you’re curious I’ve been looking at function do_action_ref_array in wp-includes/plugin.php

    If you debug the above you’ll notice the filter is missing in $wp_filters during AJAX calls.

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hello Matt,

    Which theme are you using? Do you have the same problem with a standard theme, say Twenty Fourteen?

    Did you try disabling all your plugins, except of course BuddyPress and BP Profile Search?

    ch1n3s3b0y

    (@ch1n3s3b0y)

    Hi

    For me the total number of members viewed isn’t working. It is showing the wrong number. This number only changes if I change the ‘Order By’ option and then the correct results are displayed. Can we not get the AJAX search to take into account the ‘Order By’ as well as the general/site wide search box?

    I had been working on something to add new ‘Order By’ options. Perhaps that code would help?

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi there,

    I think this issue depends on BuddyPress, and not on BP Profile Search. You should experience the same issue if you disable BP Profile Search and use the general Members search box.

    ch1n3s3b0y

    (@ch1n3s3b0y)

    Hi Andrea

    I think it may be an issue with BuddyPress. Do you have any advice on how to correct this issue?

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi ch1n3s3b0y,

    Probably your best option is to open a ticket with BuddyPress.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘bp profile search plugin breaks buddypress members pagination’ is closed to new replies.