It is Drupal 7.
This is kind of strange behaviour of the website.
If you type any junk keyword (That means the site will definitely throw 0 results) for example "werewe" then you will see the proper search result page with no result.
But if you type a keyword related to the website's content for example "dental" or "contact" or any related meaning full keyword then you will see the broken page with no content at all.
Not too sure the issues is: it seems like if there is a search result data, then it is somehow breaking the page:
I didn't find any error log for it even when I tried watchdog.
- I cleared the cache
- I re-indexed the search
- I manually ran the cron
But no luck. Can anyone please help to at least narrow down the cause of this issue.
My default search result template:
<?php if ($search_results): ?> <h2><?php print t('Search results');?></h2> <ol class="search-results <?php print $module; ?>-results"> <?php print $search_results; ?> </ol> <?php print $pager; ?> <?php else : ?> <h2><?php print t('Your search yielded no results');?></h2> <?php print search_help('search#noresults', drupal_help_arg()); ?> <?php endif; ?>