This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Zero hits search page


avatar
ReviewStud 135
From: -
Zero hits search page

When I do an article search on my site, occasionally I hit a keyword that won't find any articles, but instead of it showing me a "zero articles page", it displays a page with no notice "zero articles found".

Here is a link to a search with no hits. Click here.

Shouldn't CT be displaying a message that the keyword you used doesn't match any articles?

Thanks,

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Zero hits search page
avatar
OP 135
From: -
That fixed it.

Thank you very much.
1 Re: Zero hits search page
avatar
Editor
0
From: -
Thanks. Yes, it is a bug.

As a workaround you could do the following modification. Open modules/news/newsresults.php in an editor and replace:

$notice = $templates -> exectemplate( $main_templates[ 'news_search_error_login_html' ], $main_templates[ 'news_search_error_login_php' ], $insert );


with:

$notice = "No matches were found. Please try different search terms.";

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.