Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2010
    Posts
    28
    Plugin Contributions
    0

    Default Getting SQL errors since upgrading

    Hey,

    I'm getting a lot of MySQL syntax errors since I upgraded to 1.3.9h. These are errors that weren't there when I used 1.3.9f.

    Examples:

    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 'ORDER BY r.`reviews_rating` DESC' at line 3
    in:
    [SELECT r.`reviews_rating` FROM reviews r WHERE r.`status` = 1 AND r.`products_id` = ORDER BY r.`reviews_rating` DESC]
    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 '' at line 1
    in:
    [select p.products_id,p.products_image,pd.products_name from products p, products_description pd where p.`products_id`=pd.`products_id` AND p.products_status =1 AND master_categories_id = ]
    Can anyone tell me what I can do about this?

    - Sorry, can't provide you with a link, as the website is under construction and still offline -

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,707
    Plugin Contributions
    6

    Default Re: Getting errors since upgrading to 1.3.9h

    What debug errors are you seeing in the /cache directory?
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Jan 2004
    Posts
    58,261
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Getting SQL errors since upgrading

    Those SQL errors both indicate that you're sending blank product numbers to the database.
    Seems like something wrong in customized code or maybe a bad addon.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Aug 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Getting SQL errors since upgrading

    That's really strange, because it worked(partially, never got it entirely working) on 1.3.9f and originally came from 1.3.8a(fully operational.

    As for the cache, it's empty, as there aren't any debug files created for MySQL errors.

    Haven't got a clue of what to do...

  5. #5
    Join Date
    Jan 2004
    Posts
    58,261
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Getting SQL errors since upgrading

    Quite possible you've missed something during your upgrade.
    I'd start with a brand new compare of everything: http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. 500 errors after upgrading
    By MischiefDesignz in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 24 Aug 2010, 05:36 AM
  2. Errors upgrading from v1.3.0.2 (due to bad db import)
    By Renz in forum Upgrading from 1.2 to 1.3.x
    Replies: 10
    Last Post: 18 Jun 2010, 06:32 AM
  3. Errors after switching servers and upgrading
    By chrisb in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 12 Nov 2006, 04:43 PM

Bookmarks

Posting Permissions

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