Search Box in Header returns no products after 1.0.9.1 update

Open to all! Ask other shopowners for help.
Post Reply
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

Search Box in Header returns no products after 1.0.9.1 update

Post by cwh2000 »

Search Box in Header returns no products after 1.0.9.1 update

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

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

Post 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.
I am not here to build for you.
I am here to build with you. Let's help each other.
14Steve14
Senior Contributor
Posts: 923
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

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

Post 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?
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

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

Post by cwh2000 »

Upgrading the 1.0.9.3 solved the problem.
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

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

Post 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
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

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

Post 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.
I am not here to build for you.
I am here to build with you. Let's help each other.
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

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

Post by cwh2000 »

Hi Burt,

The file /catalog/includes/modules/content/header/templates/tpl_cm_header_search.php exists in that directory.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

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

Post 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.
I am not here to build for you.
I am here to build with you. Let's help each other.
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

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

Post by cwh2000 »

The error no longer appears in the log. Although the search doesn't produce any results.
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

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

Post by cwh2000 »

This problem was resolved. The issue was a file that was mistakenly copied into the default hooks shop siteWide folder.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply