osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Search function does not work.

This is a discussion on Search function does not work. within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Click Advanced Search, enter anything in the search box, click Search .... returns No Results. Click the Back button from ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-29-2005, 05:59 AM
Lurker
 
Join Date: May 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
datazen
Default Search function does not work.

Click Advanced Search, enter anything in the search box, click Search .... returns No Results. Click the Back button from there and get this fatal error:

Code:
1146 - Table 'ggbig_com_osc3.searchword_swap' doesn't exist

SELECT * FROM searchword_swap

[TEP STOP]
Let me stress here that the Search function does NOT work. I have an item named 'test' and Search cannot locate the item.

Quick search and Advanced search do not work. Verified with the default install of osCMax 2-1.

UPDATE: Search returns no results only if no categories are defined.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 06-29-2005, 07:24 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,491
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: Search function does not work.

DOH! How about mentioning that you have tried to hack in a search mod...

The searchword_swap table is not part of osCMax. You have added a mod that is looking for this table. Why not mention that in your post?

The default search and advanced search work fine, and I have verified this. Your half baked mod install is the problem. Remove it or fix it by actually adding the searchword_swap table to your DB and everything will work fine.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 06-29-2005, 08:40 AM
Lurker
 
Join Date: May 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
datazen
Default

Hello ...

It's in the current version:

grep for searchword_swap and get:

catalog/advanced_search.php: $sql_words = tep_db_query("SELECT * FROM searchword_swap");

On line 31

I could have fixed this, yes. Just thought you would want to know so you could fix. I've been programming since the early 80's and after reading your response .. you seem juvenile. If this is not the case, try not to assume you are talking to an idiot on the other end. Some of us have been at this longer than even you.

I just downloaded v2 RC1 again just to verify this and it is there.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 06-29-2005, 09:25 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,491
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Yes, I admit it, I can be immature and impatient. I can be quite abrasive at times. On the other hand, I can also be kind and understanding. It really depends on my mood. I bet you have similar ranges in personality. Here's to being human...

Thanks, but I cannot reproduce the error. I have tested it on 3 systems without any issue. Searches work fine and return relevant results. No mysql errors are generated.

Yes, that line of code is present, but not generating errors in any of the test shops. I am not 100% sure how that even got into the codebase. I will have to look over the CVS commits. It seems like a halfway installed contribution.

I retract my reckless Homerism, as it was not a Homer moment and did not warrant it. We all know the damage that can be done when wantonly spewing them.

What system are you running this on? Versions of mysql, php, apache, linux please.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 06-29-2005, 09:44 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,491
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Hey, I was just able replicate your error, but not the way you describe it. I can only generate the error when clicking the 'back' button after making a search.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 06-29-2005, 09:58 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,491
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Here is the fix. Run the following query on your DB:
Code:
CREATE TABLE `search_queries` (
  `search_id` int(11) NOT NULL auto_increment,
  `search_text` tinytext,
  PRIMARY KEY  (`search_id`)
) TYPE=MyISAM AUTO_INCREMENT=24 ;
# --------------------------------------------------------

#
# Table structure for table `search_queries_sorted`
#
# Creation: May 15, 2003 at 05:07 AM
# Last update: May 17, 2003 at 09:32 PM
#

CREATE TABLE `search_queries_sorted` (
  `search_id` smallint(6) NOT NULL auto_increment,
  `search_text` tinytext NOT NULL,
  `search_count` int(11) NOT NULL default '0',
  PRIMARY KEY  (`search_id`)
) TYPE=MyISAM AUTO_INCREMENT=134 ;
# --------------------------------------------------------

#
# Table structure for table `searchword_swap`
#
# Creation: May 11, 2003 at 03:45 AM
# Last update: May 17, 2003 at 09:33 PM
#

CREATE TABLE `searchword_swap` (
  `sws_id` mediumint(11) NOT NULL auto_increment,
  `sws_word` varchar(100) NOT NULL default '',
  `sws_replacement` varchar(100) NOT NULL default '',
  PRIMARY KEY  (`sws_id`)
) TYPE=MyISAM AUTO_INCREMENT=28 ;
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 07-07-2005, 01:50 AM
New Member
 
Join Date: Jun 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
DigitalPimp
Default Same problem...

I'm getting same problem...

1146 - Table 'shockproof_gem.searchword_swap' doesn't exist

SELECT * FROM searchword_swap

[TEP STOP]

Can I run the fix on my DB to fix this problem too?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 07-07-2005, 06:26 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,491
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: Same problem...

Same problem = same fix.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 08-09-2005, 09:13 PM
New Member
 
Join Date: Mar 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
slothy
Default Re: RE: Same problem...

Quote:
Originally Posted by msasek
Same problem = same fix.
im getting the same prob newbie? here, how do i run/use the code you posted msasek ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 08-15-2005, 10:00 PM
New Member
 
Join Date: Mar 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
slothy
Default RE: Re: RE: Same problem...

nm i got it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
problem with admin panel search function taol osCMax v2 Features Discussion 0 12-13-2006 03:15 PM
customer search function NEVER worked properly ogilirca osCommerce 2.2 Discussion 0 11-22-2006 04:30 AM
Cross Sell interface... can you add a search function? taol osCMax v2 Customization/Mods 1 12-15-2005 11:28 AM
Backups dir set, yet the backup function doesnt work Anonymous osCommerce 2.2 Installation Help 5 06-23-2004 06:09 AM
How to remove search function Plastic osCommerce 2.2 Modification Help 2 05-06-2004 05:35 PM


All times are GMT -8. The time now is 04:34 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax