WordPress.org

Ready to get started?Download WordPress

Forums

Lift: Search for WordPress
Pagination broken (7 posts)

  1. bswen
    Member
    Posted 1 year ago #

    I've been working on implementing Lift Search for a couple of days, styling, etc, but just now clicked on the second page of search results for the first time to find a white screen.

    I have modified the results page, but I tested without any modfications and clicking to another page of results still gives me a white screen.

    You can see here on a test server:
    http://rhrealitycheck.wpengine.com/?s=rick+perry&date_end=1359663078&date_start=&lift_post_type=&orderby=relevancy

    Is there anything else I can provide that might help debug?

    http://wordpress.org/extend/plugins/lift-search/

  2. prettyboymp
    Member
    Plugin Author

    Posted 1 year ago #

    Since this is your test server, are you able to define('WP_DEBUG', true); in your wp-config.php or view the error_logs to provide some error output?

  3. bswen
    Member
    Posted 1 year ago #

    Here's the error produced when attempting to click on or to another page in search results pagination (http://rhrealitycheck.wpengine.com/page/1410065407/?s=rick+perry):

    Fatal error: Uncaught exception 'CloudSearchAPIException' with message 'Start must be a positive integer' in /nas/wp/www/cluster-1455/rhrealitycheck/wp-content/plugins/lift-search/api/cloud-search.php:55 Stack trace: #0 /nas/wp/www/cluster-1455/rhrealitycheck/wp-content/plugins/lift-search/api/cloud-search.php(60): Cloud_Search_Query->__validate_start(14100654060) #1 /nas/wp/www/cluster-1455/rhrealitycheck/wp-content/plugins/lift-search/wp/lift-wp-search.php(109): Cloud_Search_Query->set_start(14100654060) #2 /nas/wp/www/cluster-1455/rhrealitycheck/wp-content/plugins/lift-search/wp/lift-wp-search.php(348): Lift_WP_Search::lift_search_query(Object(WP_Query)) #3 [internal function]: Lift_WP_Search::posts_results(NULL, Object(WP_Query)) #4 /nas/wp/www/cluster-1455/rhrealitycheck/wp-includes/plugin.php(230): call_user_func_array(Array, Array) #5 /nas/wp/www/cluster-1455/rhrealitycheck/wp-includes/query.php(2683): apply_filters_ref_array('posts_results', Array) #6 /nas/wp/www/cluster-1455/rhrealitycheck/wp-includes/query.php(2 in /nas/wp/www/cluster-1455/rhrealitycheck/wp-content/plugins/lift-search/api/cloud-search.php on line 55

  4. bswen
    Member
    Posted 1 year ago #

    $start is set to 14100654060 on line 55 of /api/cloud-search.php

  5. bswen
    Member
    Posted 1 year ago #

    If I replace 14100654060 in the query string with 2 or 3, the correct page appears...

    Seems that something, not sure what, is going wrong with the get_pagenum_link function to produce that number?

  6. prettyboymp
    Member
    Plugin Author

    Posted 1 year ago #

    Have you been able to find what was changing the page number/ offset?

  7. Kevin Langley
    Member
    Plugin Author

    Posted 6 months ago #

    @bswen, are you still experiencing issues with pagination?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.