Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    39
    Plugin Contributions
    0

    Default 1064 error in search box

    I upgraded to the latest version 1.3.1 and everything works great expect for the search box. When I do a search I get this error:

    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 ' p.products_quantity , m.manufacturers_id, p.products_id, pd.products_name, p.p' at line 1
    in:
    [SELECT DISTINCT , p.products_quantity , m.manufacturers_id, p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_price_sorter FROM products p LEFT JOIN manufacturers m USING(manufacturers_id), products_description pd, categories c, products_to_categories p2c LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND ((pd.products_name LIKE '%travel%' OR p.products_model LIKE '%travel%' OR m.manufacturers_name LIKE '%travel%' OR (mtpd.metatags_keywords LIKE '%travel%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%travel%' AND mtpd.metatags_description !='') OR pd.products_description LIKE '%travel%') ) order by pd.products_name limit 0, 84]

    The search feature on my site is not a priority, but I would like it to work.

    Can anybody help?

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

    Default Re: 1064 error in search box

    Do you have an URL that we can peek at? This is reminding me of something ... but I need to see your site ...
    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
    Apr 2006
    Location
    Texas
    Posts
    39
    Plugin Contributions
    0

    Default Re: 1064 error in search box

    Quote Originally Posted by godin5150
    I upgraded to the latest version 1.3.1 and everything works great expect for the search box. When I do a search I get this error:

    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 ' p.products_quantity , m.manufacturers_id, p.products_id, pd.products_name, p.p' at line 1
    in:
    [SELECT DISTINCT , p.products_quantity , m.manufacturers_id, p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_price_sorter FROM products p LEFT JOIN manufacturers m USING(manufacturers_id), products_description pd, categories c, products_to_categories p2c LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND ((pd.products_name LIKE '%travel%' OR p.products_model LIKE '%travel%' OR m.manufacturers_name LIKE '%travel%' OR (mtpd.metatags_keywords LIKE '%travel%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%travel%' AND mtpd.metatags_description !='') OR pd.products_description LIKE '%travel%') ) order by pd.products_name limit 0, 84]

    The search feature on my site is not a priority, but I would like it to work.

    Can anybody help?
    url: http://www.turnkeywebsplus.com

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

    Default Re: 1064 error in search box

    What fields are you displaying on the Configuration ... Product Listing ...
    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
    Apr 2006
    Location
    Texas
    Posts
    39
    Plugin Contributions
    0

    Default Re: 1064 error in search box

    Quote Originally Posted by Ajeh
    What fields are you displaying on the Configuration ... Product Listing ...
    I'm displaying:

    Product Name - 2
    Display Product Price/Add to Cart Column Width - 125
    Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both) - 3
    Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both) - 1
    Display Multiple Products Qty Box Status and Set Button Location - 3
    Product Listing Ascending Sort Order +
    Product Listing - Layout Style - columns
    Product Listing - Columns Per Row - 3

  6. #6
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: 1064 error in search box

    Mmmm? Odd? I have two versions of Zen Cart installed (1.2.2 and 1.3.0) - and neither of them have those last two entries in Admin --> Configuration --> Product Listing. Got them in CRE Loaded, but not in Zen Cart.

    Vger

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

    Default Re: 1064 error in search box

    Quote Originally Posted by godin5150
    I'm displaying:

    Product Name - 2
    Display Product Price/Add to Cart Column Width - 125
    Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both) - 3
    Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both) - 1
    Display Multiple Products Qty Box Status and Set Button Location - 3
    Product Listing Ascending Sort Order +
    Product Listing - Layout Style - columns
    Product Listing - Columns Per Row - 3
    For giggles ... turn on Product Image for a minute ... does this fix the issue?

    If not, also turn on Product Model ... how about now?
    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!

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

    Default Re: 1064 error in search box

    Quote Originally Posted by Vger
    Mmmm? Odd? I have two versions of Zen Cart installed (1.2.2 and 1.3.0) - and neither of them have those last two entries in Admin --> Configuration --> Product Listing. Got them in CRE Loaded, but not in Zen Cart.

    Vger
    I believe those come with the add-on for the multiple columns vs the rows ...
    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!

  9. #9
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: 1064 error in search box

    In which case please feel free to ignore the PM.

    Vger

  10. #10
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    39
    Plugin Contributions
    0

    Default Re: 1064 error in search box

    Quote Originally Posted by Ajeh
    For giggles ... turn on Product Image for a minute ... does this fix the issue?

    If not, also turn on Product Model ... how about now?
    I turned on the product image and that fixed it!

    Your the best.... Thank you !

 

 

Similar Threads

  1. Replies: 10
    Last Post: 4 Oct 2010, 11:08 PM
  2. Search Error 1064
    By Garby in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 11 Jun 2009, 03:29 PM
  3. Error 1064 means Manufacturer search doesn't work
    By robhaworth in forum General Questions
    Replies: 3
    Last Post: 2 Aug 2008, 05:58 PM
  4. error 1064 using music filter search?
    By ooakllc in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 1 Aug 2008, 02:08 PM
  5. Search error in search box
    By sparktronic in forum General Questions
    Replies: 7
    Last Post: 17 Aug 2006, 05:53 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