ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

No search results ("Template group and template not found, showing 404 page")

August 01, 2011 7:26am

Subscribe [6]
  • #1 / Aug 01, 2011 7:26am

    Jolantis

    4 posts

    I didn’t try out search since I updated from 2.1.3 tot 2.2.1. But now search doesn’t give results anymore, but shows the 404 page.

    When I turn on template debugging I could see the following was happening:

    (0.000004 / 7.42MB) - Begin Template Processing -
    (0.000107 / 7.42MB) URI: search/results/399b4848cf4edb4e2382ef3c099f3e22
    (0.000116 / 7.43MB) Path.php Template: /
    (0.000124 / 7.43MB) Retrieving Template
    (0.000130 / 7.43MB) Parsing Template URI
    (0.002179 / 7.71MB) Template group and template not found, showing 404 page
    (0.002191 / 7.71MB) Retrieving Template from Database: /
    (0.002502 / 7.71MB) Template Found
    (0.002549 / 7.72MB) Retrieving Template from File
    (0.002721 / 7.71MB) Template Type: 404
    (0.002735 / 7.71MB) Parsing Site Variables

    So the search/results template is not found?! Off course it’s there.

    And looking to the DB queries shows the following:

    0.0002  SELECT `group_id`
                 FROM (`exp_template_groups`)
                 WHERE `group_name` =  'search'
                 AND `site_id` =  '1' 
    
    0.0003  SELECT exp_templates.template_name,
                 ...

    But when I look to the DB queries of an older installation (version 2.1.3) that I’ve still running, and for which search is working, I see the following:

    0.0003  SELECT `group_id`
                 FROM (`exp_template_groups`)
                 WHERE `group_name` = 'search'
                AND `site_id` = '1'
    
    0.0002  SELECT COUNT(*) as count
                 FROM (`exp_templates`)
                 WHERE `group_id` = '8'
                 AND `template_name` = 'results'
    
    0.0003  SELECT exp_templates.template_name,
                 ...

    If I look in the DB (exp_search), I can see there are really results (see attached screenshot). And I did not change the search (results and no results) templates between the 2.1.3 and 2.2.1 update!

    I saw the search module is updated with EE 2.2.1 from 2.0 to version 2.1? Has something been changed that results in this behavior?

    Any ideas, help? I’m testing it still locally, but I could put it on a server if that helps?

  • #2 / Aug 01, 2011 5:44pm

    Kevin Smith

    4784 posts

    Hi Jolantis,

    Be on the lookout for an email from me. This certainly is strange behavior, and we want to get it taken care of.

  • #3 / Aug 02, 2011 11:51am

    Jolantis

    4 posts

    Hi Kevin,

    I’ve send you the information via the provided link in the email.
    The site is nog yet “on” ($config[‘is_system_on’] = “n”), so make sure to login first to be abel to see the site.
    The link to the search page is http://stage.artlantis.nl/search

    Thanks!

  • #4 / Aug 03, 2011 4:07pm

    Kevin Smith

    4784 posts

    Hi Jonathan,

    Glad to hear that you already upgraded to 2.2.2! Since upgrading, are you still experiencing this problem? In trying to run tests, I’m not seeing the 404 page.

  • #5 / Aug 03, 2011 4:20pm

    Jolantis

    4 posts

    Hi Kevin, I noticed this too, but I still do get the 404 on my local dev machine. But although I don’t get the 404 page on the staging server, I don’t get results either. No matter what I search for (titles I know exist), I always get the no results message?!

    But there is a difference between the local and staging server…

  • #6 / Aug 03, 2011 6:32pm

    Kevin Smith

    4784 posts

    If there EE installation and DB are exactly the same on local and staging servers, then it’s probably a server issue locally causing the 404. Strange…

    Let me hop back in there and see if I can figure out why the search isn’t returning results…

  • #7 / Aug 04, 2011 5:08pm

    Robin Sowell

    13255 posts

    Sent along a longer reply- but see if it’s working for you now.

  • #8 / Aug 08, 2011 12:53pm

    Sue Crocker

    26054 posts

    Hi Jolantis - have you had a chance to check yet?

  • #9 / Aug 09, 2011 6:13pm

    Brandon Jones

    5500 posts

    Just checking in again, Jolantis.

  • #10 / Aug 11, 2011 11:35am

    Marcus Neto

    1005 posts

    Closing this issue due to no response. Jolantis, if you run into another issue please don’t hesitate to post again.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases