Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SQL error on non-existant products


Guest

Recommended Posts

Hi,

 

I've just noticed that I get an SQL error if I go to a product_info.php page for a deleted product. Obviously, this ain't too good for when the site is properly live and google sends someone to a deleted product or something.

 

here's the error:

 

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

 

It's a fairly heavily modified store, so I have no idea where it could come from. Don't suppose anyone's got any ideas?

 

mods I can remember adding:

 

ask a question

category descriptions

disable buy now and shopping cart

resize images

STS 4.5.8

 

plus a whole load of my own code.

Link to comment
Share on other sites

Any chance of a URL of the code in question?

 

Or shall I use my famous psychic hat?

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...