Support » Plugin: Better Search » Better Search not returning any results

  • Resolved rzharding

    (@rzharding)


    Ajay

    PHP 7.2
    Wordpress 5.1.1
    Better Search 2.2.2 and 2.2.4

    I have been using Better Search for a long, long time. However, Better Search is no longer returning any results. All that is displayed is a blank page without any information on the page. I have no idea when this started. My host, WP Engine, recently upgraded PHP to 7.2.

    For example,
    https://wisenutritioncoaching.com.au/?s=milk
    does not return anything.

    Do you have any clues what might be happening?
    Thank you.
    Richard

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ajay

    (@ajay)

    Can you please try to deactivate, then delete the plugin and reinstall it. If you have made any changes to the settings, please make a note of those.

    There could also be an issue that WP Engine as they haven’t liked fulltext indices which Better Search uses.

    Ajay,

    It was a problem with search.php from the theme I was using. My host recently upgraded to php 7.2.

    22 PHP Parse error: syntax error, unexpected ‘new’ (T_NEW) in /nas/content/live/rzharding28/wp-content/themes/satori-Child/search.php on line 16

    line 16
    ——-
    <h1 class=”page-title”>Search Result for <?php $allsearch = &new WP_Query(“s=$s&showposts=-1″); $key = wp_specialchars($s, 1); $count = $allsearch->post_count; _e(”); _e(‘<span class=”search-terms”>’); echo $key; _e(‘</span>’); _e(‘ — ‘); echo $count . ‘ ‘; _e(‘articles’); wp_reset_query(); ?></h1>

    I removed the & before the “new WP_Query” and the searches are now working again.

    Richard

    Plugin Author Ajay

    (@ajay)

    Thanks for confirming this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Better Search not returning any results’ is closed to new replies.