Results 1 to 7 of 7
  1. #1
    Join Date
    May 2006
    Posts
    43
    Plugin Contributions
    0

    Default SQL Error on Advanced Search

    I get this SQL error whenever I try to do an Advanced Search.

    Any tips or fixes would be appreciated. I'm running version 1.3.5 with MySQL on a Linux server.

    Code:
    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from where manufacturers_id = 0' at line 2
    in:
    [select from where manufacturers_id = 0]

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: SQL Error on Advanced Search

    Looks like it does not know the database table name in the statement ...

    Check your code against a clean Zen Cart v1.3.5 and see if you have altered something ...

    Have you an URL where you are getting this?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    May 2006
    Posts
    43
    Plugin Contributions
    0

    Default Re: SQL Error on Advanced Search

    go to www.oclumberstore.com and try an advanced search

    I'll check the code and post my results.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: SQL Error on Advanced Search

    Peek in here for the fix for that error ...
    http://www.zen-cart.com/forum/showthread.php?t=45377
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    May 2006
    Posts
    43
    Plugin Contributions
    0

    Default Re: SQL Error on Advanced Search

    I tried Fix #6..

    I got this error in PHPMyAdmin:

    Code:
    Error
    
    SQL query:
    
    #
    # Updating table `get_terms_to_filter`
    #
    ALTER TABLE get_terms_to_filter ADD get_term_table varchar( 64 ) NOT NULL ;
    
    MySQL said: Documentation
    #1146 - Table 'oclumber_zc2.get_terms_to_filter' doesn't exist

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: SQL Error on Advanced Search

    You will need to adapt that line if you are using table prefixes in your database ...

    Or, run the line in your Zen Cart Admin ... Tools ... Insert SQL Patch ... and it will manage the changes for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    May 2006
    Posts
    43
    Plugin Contributions
    0

    Default Re: SQL Error on Advanced Search

    I did it from the Zen admin.. it worked.

    Thanks!

 

 

Similar Threads

  1. Advanced Search Plus Error
    By newbie456 in forum All Other Contributions/Addons
    Replies: 10
    Last Post: 15 Nov 2013, 12:04 AM
  2. Replies: 10
    Last Post: 4 Oct 2010, 11:08 PM
  3. Error in validating dates in advanced search
    By tlahtine in forum Bug Reports
    Replies: 0
    Last Post: 4 Oct 2010, 12:01 PM
  4. Replies: 5
    Last Post: 20 Apr 2010, 12:54 PM
  5. advanced search error after upgrading?
    By inkspot in forum General Questions
    Replies: 1
    Last Post: 18 Nov 2007, 12:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg