Contentteller

Contentteller Support Forums
Home Forums > Contentteller > Troubleshooting and Problems >

Zero hits search page

Discussion in 'Troubleshooting and Problems' started by ReviewStud, Jun 9, 2009.

  1. ReviewStud New Member

    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,
    ReviewStud, Jun 9, 2009
    #1
  2. Philipp Administrator

    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:

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

    PHP:
    $notice = "No matches were found. Please try different search terms.";
    Philipp, Jun 11, 2009
    #2
  3. ReviewStud New Member

    That fixed it.

    Thank you very much.
    ReviewStud, Jun 11, 2009
    #3
Tweet
Facebook:
Forgot your password?
Contentteller Support Forums
Home Forums > Contentteller > Troubleshooting and Problems >
  • Home
  • Forums

    Forums

    Quick Links
    • Search Forums
    • What's New?
  • Members

    Members

    Quick Links
    • Registered Members
    • Current Visitors
    • Recent Activity
  • Help

    Help

    Quick Links
    • Smilies
    • BB Codes
    • Trophies

Separate names with a comma.

Advanced search...
    Forum software by XenForo™ ©2011 XenForo Ltd.