Multiple word search pagination broken

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Multiple word search pagination broken

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28506
    Mark Fenske
    mark.fenske
    Participant

    When using ASP on this site, the search is giving some 404 errors with the pagination whenever multiple word search terms are used. This can be tested with the search bar in the header of the site.

    For example, if you search the term “well“, results are returned as expected and the pagination works as expected. However, if you search “well child“, the first page of results returns as expected, but then any pagination links clicked come back with a 404 error. This seems to be a consistent bug that we can recreate. For instance, you get the same issue if you search “office” vs “office visit“.

    The ASP plugin is up to date and this error occurs with the standard WP theme activated as well, so it does not seem to be theme related. We’ve also tested any plugins conflicts by turning off every non-essential plugin, with only ASPro active, and on the TwentyTwenty theme, this error is still present.

    Due to security reasons, I am unable to give admin access to this site without an email and the WP login URL has been updated. I can provide any screenshots of settings pages you would like and if you provide me with an email for your support team, I can look into getting you admin access that way.

    Thanks.

    • This topic was modified 2 years ago by Mark Fenske mark.fenske.
    Attachments:
    You must be logged in to view attached files.
    #28513
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thanks for the details. I have noticed some weird behaviour, as well as possible configuration issues:
    1. There are other search plugins active as well, Search & Filter and the Pro version. I strongly recommend having only one search related plugin active.
    2. When visiting the results page via URL, when the plugin override does not activate, there does not seem to be any pagination, for example: https://tvc.org/?s=well+chil
    This leads me to think, that the results count on the results page might be set by the theme somewhere, to possibly a high number.
    3. The other search bar on the bottom of the page seems to be working all right, the only difference I see is the override method. Can you please change that to GET on the header search as well? I’m almost sure it will resolve the issue.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #28527
    Mark Fenske
    mark.fenske
    Participant

    Hi Ernest,

    1. Agreed, unfortunately, with how this site was built, both of these plugins are deeply integrated into multiple parts of the website. Too many hands in the cookie jar with this site if you know what I mean. I have tested this issue with Search + Filter Pro disabled and the problem is still present, so I don’t believe they are conflicting with one another.

    2 and 3. I wasn’t able to find any excessively high result counts in the theme, but changing that override method from POST to GET definitely did the trick!!

    Thank you so much for your help!

    #28536
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


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

You must be logged in to reply to this topic.