Page 1 of 1

Search Box in Header returns no products after 1.0.9.1 update

Posted: Tue Jul 16, 2024 1:26 pm
by cwh2000
Search Box in Header returns no products after 1.0.9.1 update

Re: Search Box in Header returns no products after 1.0.9.1 update

Posted: Wed Jul 17, 2024 10:28 am
by burt
Install a TEST 1.0.9.1 (ie a new clean shop, just for testing) and see if the search function works on a clean shop.
If yes, you know that the problem is not code, but is somewhere in your updating.

Re: Search Box in Header returns no products after 1.0.9.1 update

Posted: Thu Jul 18, 2024 6:37 am
by 14Steve14
When you updated first on a test site did the search work before you uploaded all the files to the live site?

Are there any errors in your error logs relating to the search function?

Have you tried uninstalling and reinstalling the module?

Re: Search Box in Header returns no products after 1.0.9.1 update

Posted: Thu Jul 18, 2024 10:16 am
by cwh2000
Upgrading the 1.0.9.3 solved the problem.

Re: Search Box in Header returns no products after 1.0.9.1 update

Posted: Sun Aug 25, 2024 2:32 pm
by cwh2000
Upgrading the 1.0.9.5 the issue is back where no results are returned. The error log shows:

[25-Aug-2024 10:09:08 America/New_York] PHP Warning: include(/catalog/includes/modules/content/header/templates/tpl_cm_header_search.php): failed to open stream: No such file or directory in /catalog/includes/modules/content/cm_template.php on line 14

include(Guarantor::ensure_global('Template')->map($tpl_data['file']));

[25-Aug-2024 10:09:08 America/New_York] PHP Warning: include(): Failed opening '/catalog/includes/modules/content/header/templates/tpl_cm_header_search.php' for inclusion (include_path='.:/opt/alt/php73/usr/share/pear') in /catalog/includes/modules/content/cm_template.php on line 14

We are using PHP v8.1

Re: Search Box in Header returns no products after 1.0.9.1 update

Posted: Sun Aug 25, 2024 2:59 pm
by burt
It is telling you what the problem is.

/catalog/includes/modules/content/header/templates/tpl_cm_header_search.php
No such file

This file exists in 1.0.9.5;
https://github.com/CE-PhoenixCart/Phoen ... /templates
so can only conclude that you have made an error somewhere in updating.

Re: Search Box in Header returns no products after 1.0.9.1 update

Posted: Sun Aug 25, 2024 3:21 pm
by cwh2000
Hi Burt,

The file /catalog/includes/modules/content/header/templates/tpl_cm_header_search.php exists in that directory.

Re: Search Box in Header returns no products after 1.0.9.1 update

Posted: Sun Aug 25, 2024 3:26 pm
by burt
Your system says it does not.
You have checked and say it does.

Would advise to get a second opinion on it, as both cannot be correct.

Re: Search Box in Header returns no products after 1.0.9.1 update

Posted: Sun Aug 25, 2024 3:31 pm
by cwh2000
The error no longer appears in the log. Although the search doesn't produce any results.

Re: Search Box in Header returns no products after 1.0.9.1 update

Posted: Sun Aug 25, 2024 6:08 pm
by cwh2000
This problem was resolved. The issue was a file that was mistakenly copied into the default hooks shop siteWide folder.