Forums / General Questions / Getting SQL errors since upgrading

Getting SQL errors since upgrading

Locked

Started by bogyi on 31 Oct 2010, 10:30 PM · Views: 10,697

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
31 Oct 2010, 10:30 PM
#1
bogyi avatar

bogyi

New Zenner

Join Date:
Aug 2010
Posts:
28
Plugin Contributions:
0

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:

 
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]
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 -
1 Nov 2010, 12:05 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Getting SQL errors since upgrading

What debug errors are you seeing in the /cache directory? :unsure:

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!

1 Nov 2010, 3:52 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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!
Donate to: DrByte directly or to the Zen Cart team as a whole

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.

1 Nov 2010, 7:45 AM
#4
bogyi avatar

bogyi

New Zenner

Join Date:
Aug 2010
Posts:
28
Plugin Contributions:
0

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...

1 Nov 2010, 8:32 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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.php/Troubleshoot_-_Diagnosing_Obscure_Issues

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

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.