Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Installed a new template and got errors with the demo products.

 

1054 - Unknown column 'p.products_id' in 'on clause'

 

select count(p.products_id) as total from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '27'

 

Been told this is a problem with sql4 and sql 5?

 

It will not work with sql 5 so I've got it on sql 4 and still same problem

 

AS SHOWN http://www.rcplans4u.co.uk/store/index.php?cPath=36_27

Posted
Installed a new template and got errors with the demo products.

 

1054 - Unknown column 'p.products_id' in 'on clause'

 

select count(p.products_id) as total from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '27'

 

Been told this is a problem with sql4 and sql 5?

 

It will not work with sql 5 so I've got it on sql 4 and still same problem

 

AS SHOWN http://www.rcplans4u.co.uk/store/index.php?cPath=36_27

Could be a problem with the template and the version of osc installed.

Posted

Error Message - 1054 - Unknown column 'p.products_id' in 'on clause'

 

If you get this message it is probably due to your server upgrading to php5 or MySQL5. You get the message when you try a search on your site. The new OSC from around Sept-Oct 2006 or so, doesn't have this problem.

 

You just need to change one section in index.php and one in advance search_result.php.

 

Very simple Good Luck!

 

Ozstar

 

 

I've gone throught this and still no change and still now working.

 

I have tried this and seems to have done the trick but may not work for others

 

First open you index.php in a html editor

 

Search and replace the following code.

 

p.products_id = s.products_id

 

REPLACE WITH

 

p2c.products_id = s.products_id

 

If anyone use the above and it works for them could you post a message here

 

Many thanks to all the people that have helped in this matter

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...