Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

1064 - You have an error in your SQL syntax; ...


mondobongo3

Recommended Posts

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

 

select products_id, products_image, products_tax_class_id, products_price from products where products_status = '1' order by products_date_added desc limit

 

[TEP STOP]

 

Where to edit and what?

Thank you.

 

EDIT: I CAN NOT ACCESS MY SITE SINCE THAT ERROR :'(

Link to comment
Share on other sites

That would appear to be coming from includes/boxes/whats_new.php. The problem is that for some reason, MAX_RANDOM_SELECT_NEW has become undefined, or defined as empty. It should be defined in the "configuration" table under the heading "Selection of Random New Products". The default value is 10. Go into phpMyAdmin and browse the configuration table under that "configuration_title". What is the value? What happened that it's not correct?

Link to comment
Share on other sites

I am having a new 1064 error that wasn't happening a couple weeks ago. I have no idea what caused it to suddenly appear - the info is here: Other 1064 Error Forum Post and on the Master Products Forum.

 

I didn't want to keep repeating it all over the forums - but I'm getting desperate for help as our top selling product is currently not purchasable online with this error. Please let me know if you have any ideas on what to change. Thank you.

~Tracy
 

Link to comment
Share on other sites

Have you tried any of the fixes on this forum section? Click here

 

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

 

select products_id, products_image, products_tax_class_id, products_price from products where products_status = '1' order by products_date_added desc limit

 

[TEP STOP]

 

Where to edit and what?

Thank you.

 

EDIT: I CAN NOT ACCESS MY SITE SINCE THAT ERROR :'(

~Tracy
 

Link to comment
Share on other sites

That would appear to be coming from includes/boxes/whats_new.php. The problem is that for some reason, MAX_RANDOM_SELECT_NEW has become undefined, or defined as empty. It should be defined in the "configuration" table under the heading "Selection of Random New Products". The default value is 10. Go into phpMyAdmin and browse the configuration table under that "configuration_title". What is the value? What happened that it's not correct?

Indeed, this was the problem ! In Admin was no value there. It was blank.

Thanks. I was a little scared :wacko:

Link to comment
Share on other sites

Glad that fix helped you! Hopefully someone will know how to fix my issue :blush:

 

Indeed, this was the problem ! In Admin was no value there. It was blank.

Thanks. I was a little scared :wacko:

~Tracy
 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...