WordPress.org

Ready to get started?Download WordPress

Forums

Google CSE
[resolved] Search results pagination problem (10 posts)

  1. rubywhite
    Member
    Posted 1 year ago #

    Hi Erik,

    This looks like a great plugin, but I am having a problem with results that span multiple pages. I'm using WordPress 3.4.2 and version 1.0.2 of your plugin.
    The number of blog posts is set to 10.

    If I search for words that return less than 10 results, no problem.
    If there are over 10 results but less than 20 then the first page is fine, but the Older Posts link returns a 404 error.
    If there are over 20 results but less than 30 the first and second pages of results are fine, but the last page has the 404 error.

    I have a test site setup at http://rubywhite.com/wp
    You can try searching for 'john', 'mac', 'and'

    This site uses the ThemeID responsive theme but I get the same results with the Twenty Eleven theme. I've tested with all other plugins deactivated with the same results.

    Thanks for your help.

    http://wordpress.org/extend/plugins/google-cse/

  2. ptz0n
    Member
    Plugin Author

    Posted 1 year ago #

    Hi rubywhite & thx for the explicit bug report.

    I have experienced the same problem with later versions.

    I'm on it and will get back to you with the progress and a new release of the plugin.

  3. rubywhite
    Member
    Posted 1 year ago #

    Thanks Erik, I appreciate your work.

    I've gone ahead and made my site live at http://rubywhite.com with your plugin disabled (for now) but I look forward to activating it with your new release.

    Thanks again.

  4. gabeshaughnessy
    Member
    Posted 1 year ago #

    Erik,
    I'm experiencing this same issue with paginated search results. The first page of the query returns 10 results, but the pagination links all result in 404 errors. I think this happens because our Google CSE returns several hundred results, but our default WordPress query for the same term returns fewer results. Consequently, when we try to load a search results page greater than the max number of pages in the default query, we get a 404 error.

    As far as I can tell, your plugin is the only one out there that integrates the google cse results with the wp_query, which is exactly what we want to do. I really like your approach and want to help make it work.
    Let me know if I could be any use fixing this bug. your hard work is appreciated.

    -gabe

  5. ptz0n
    Member
    Plugin Author

    Posted 1 year ago #

    @gabeshaughnessy That's right! Thanks for the clarification.

    The source code is located in an open repository at GitHub. Please submit a pull request and I will gladly merge it and then update the plugin.

    Thanks again, good job!

  6. Simmons
    Member
    Posted 1 year ago #

    Checking in to see if there's a plan to resolve this. Otherwise, alas, I'll need to stop using what otherwise is a great plugin.

  7. Marcel Brinkkemper
    Member
    Posted 1 year ago #

    I think I'll disable the plugin until this issue has been resolved. I do like the approach, but the implementation needs a little tweak.

  8. ptz0n
    Member
    Plugin Author

    Posted 1 year ago #

    This issue have been resolved and code is available to try out at Github.

  9. rubywhite
    Member
    Posted 1 year ago #

    Hi Erik,
    This is great! Thanks so much. Works perfectly.
    Cheers, John

  10. Simmons
    Member
    Posted 1 year ago #

    Yes, working beautifully now. Thanks so much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic