If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Search Keyword problem

Search Keyword problem

Started by southshorepizza on 6 May 2013, 5:50 AM · Views: 1,486

Results 1 to 12 of 12
6 May 2013, 5:50 AM
#1
southshorepizza avatar

southshorepizza

Zen Follower

Join Date:
Sep 2012
Posts:
253
Plugin Contributions:
0

Search Keyword problem

I have a live site http://d132s.southshorepizza.net Recently I set up a test site. http://onlineorder.sshorepizza.com I copied the files from d132s... over to the onlineorder... site so the files started out exactly the same. I am running version 1.5.1 I added a module on and tried to search for a product using the search keyword function. I had 0 results on the test site. I went to the live site that customers are ordering from and tried searching for the same keyword and immediately found results. I have tried copying the files in includes/pages/advanced_search and includes/pages/advanced_search_results from the live site over to the test site to get the search function working again and have not had any luck. Can someone point me in the right direction please??

Thank you in advance.

6 May 2013, 7:18 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Search Keyword problem

I added a module on
What module?
What other addons are installed?
What version of mysql?

Zen-Venom Get Bitten

6 May 2013, 12:36 PM
#3
southshorepizza avatar

southshorepizza

Zen Follower

Join Date:
Sep 2012
Posts:
253
Plugin Contributions:
0

Re: Search Keyword problem

MySQL version 5.5.23-55
Modules installed add customers from admin, css_js_loader, customer tax exempt, discount_1.11, edit_orders_v4.0.4, export_shipping_information, fast updates, fec, sales report 310, time zone fix, tip module, tnbci.

Then I installed hidden categories on the test site only. I don't think this is the problem though. If I copy the file includes/modules/pages/advanced_search_result/header_php.php from the live site (where the search function works) over to the test site instead of using the file that came with hidden categories the test site still does not work. If I make the modifications to the header_php.php file that is required for hidden categories module the search function doesn't work. I think this problem existed prior to adding the hidden categories module I just didn't know it.

What files does the search keyword use? Perhaps I could go back to original v 1.5.1 files for all of those and then make changes 1 by 1 until I find the culprit. I just can't do that since I don't know what files to look for.

6 May 2013, 3:10 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Search Keyword problem

If I copy the file includes/modules/pages/advanced_search_result/header_php.php from the live site (where the search function works)
I would start by copying all the files from the working site to your test site EXCEPT the 2 configure.php files
Assuming that hidden categories did not have any sql for it's install

Zen-Venom Get Bitten

6 May 2013, 3:17 PM
#5
southshorepizza avatar

southshorepizza

Zen Follower

Join Date:
Sep 2012
Posts:
253
Plugin Contributions:
0

Re: Search Keyword problem

It did have an sql. How does that affect it?

6 May 2013, 3:18 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Search Keyword problem

Well depending - the database now has/expects it to be installed

Zen-Venom Get Bitten

6 May 2013, 3:46 PM
#7
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Search Keyword problem

kobra:

Well depending - the database now has/expects it to be installed
The readme and the SQL file for hideCategories VERY clearly says that the SQL file does nothing but create ONE table that is used by ONLY by hideCategories.

As I reported on the hideCategories support thread, the modifications to the **includes/pages/advanced_search_results/header.php.php **file included in hideCategories Version: 2.1 do not work and causes the issue the OP is reporting (the search doesn't find ANYTHING). hideCategories Version: 2.1 was the version where this file is introduced. (there were no other changes) I will NOT be attempting to fix this as I'm not entirely sure why it worked for Zen Cart v1.3.9, and does not work with Zen Cart v1.5.x. It is addmittedly over my head to fix, which is why I won't attempt it. I will in fact exclude this file from the upcoming version of hideCategories I will be submitting (updated for Zen Cart v1.5.1)

My advice to the OP mimics yours.. Get the test site to match the live site..

After he does that, THEN install hideCategories WITHOUT the modified includes/pages/advanced_search_results/header.php.php file. (suggest installing hideCategories - Version: 2.0)

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

6 May 2013, 4:06 PM
#8
southshorepizza avatar

southshorepizza

Zen Follower

Join Date:
Sep 2012
Posts:
253
Plugin Contributions:
0

Re: Search Keyword problem

Right! I have done exactly that. As I posted in both threads. When I put the original includes/pages/advanced_search_results/header.php.php file back in place the search function still does not work. When I copy it from the "live" site where the search function works it still does not work. thus my posting here in the general category. I don't think this issue was caused by that Mod. If it was putting the original file back in place should have fixed the issue. Would it not?

I just created a second test site. Just tested the search feature and it works. So now I will work on this again by installing one file at a time and seeing what happens.

6 May 2013, 4:10 PM
#9
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Search Keyword problem

southshorepizza:

Right! I have done exactly that. As I posted in both threads. When I put the original includes/pages/advanced_search_results/header.php.php file back in place the search function still does not work. When I copy it from the "live" site where the search function works it still does not work. thus my posting here in the general category. I don't think this issue was caused by that Mod. If it was putting the original file back in place should have fixed the issue. Would it not?

Honestly no.. or logically what you are doing would have worked.. There is CLEARLY something ELSE different about your test site besides this one file.. and you can spend all day trying to figure out what it is or you can follow mine and kobra's advice and simply get your test site exactly like your live site and then move forward with the hideCategories install (sans the includes/pages/advanced_search_results/header.php.php file of course..) This really is the FASTEST way to move you forward.. If you made a backup of your test site before installing hideCategories, this process will be even FASTER..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

6 May 2013, 5:04 PM
#10
southshorepizza avatar

southshorepizza

Zen Follower

Join Date:
Sep 2012
Posts:
253
Plugin Contributions:
0

Re: Search Keyword problem

DivaVocals:

logically what you are doing would have worked.. There is CLEARLY something ELSE different about your test site besides this one file..

Which was the point of the post to begin with. Trying to figure out what files affect the search feature. But sorry for all the confusion and frustration. I will just start again.

6 May 2013, 5:28 PM
#11
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Search Keyword problem

southshorepizza:

Which was the point of the post to begin with. Trying to figure out what files affect the search feature. But sorry for all the confusion and frustration. I will just start again.
If ALL you did was to use the modified files from hideCategories, then restoring the search files back to their defaults would have righted things for you.. (that's all I had to do on my test site) This didn't work for you which tends to sound like OTHER changes were made.. and since none of use can see what those changes MIGHT be (we'd be GUESSING), the easiest thing to do is to start over by making the test site match the live site..

If your file merging program allows you to compare files directly on your webhost (Beyond Compare has this feature not sure about WinMerge) then you can compare the test and live sites to see what files are different between the two and see if you spot the issue that way..

The point is that your attempt to shortcut the process of figuring out why your live and test sites don't behave the same is taking longer than it would have to simply just get the test site and the live site on equal footing and then start over.. Seriously it's what I would have done or I wouldn't have suggested it..:smile:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

8 May 2013, 4:14 PM
#12
southshorepizza avatar

southshorepizza

Zen Follower

Join Date:
Sep 2012
Posts:
253
Plugin Contributions:
0

Re: Search Keyword problem

So the file that was breaking the search engine was located at
includes/templates/your_template/templates/tpl_advanced_search_default.php

The one I kept being told was the problem was
includes/modules/pages/advanced_search_result/header_php.php