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?