Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

database error after migration to another host provider


Guest

Recommended Posts

Posted

Hello,

 

I had to move my shop to another machine due to owner's changes. Unfortunatelly after copying all oscommerce structure and dumping database to new location, the following errors appears while going down into subcategories through category tree:

 

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 = '141')

 

Same happens when I try to use a search function:

 

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

 

select count(distinct p.products_id) as total from products p left join manufacturers m using(manufacturers_id), products_description pd left join specials s on p.products_id = s.products_id, categories c, products_to_categories p2c where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and ((pd.products_name like '%ol%' or p.products_model like '%ol%' or m.manufacturers_name like '%ol%') )

 

I appreciate your help on that issue.

 

Regards,

Wojciech

Posted
Hello,

 

I had to move my shop to another machine due to owner's changes. Unfortunatelly after copying all oscommerce structure and dumping database to new location, the following errors appears while going down into subcategories through category tree:

 

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 = '141')

 

Same happens when I try to use a search function:

 

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

 

select count(distinct p.products_id) as total from products p left join manufacturers m using(manufacturers_id), products_description pd left join specials s on p.products_id = s.products_id, categories c, products_to_categories p2c where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and ((pd.products_name like '%ol%' or p.products_model like '%ol%' or m.manufacturers_name like '%ol%') )

 

I appreciate your help on that issue.

 

Regards,

Wojciech

What version MYSQL was on your old machine and what version MYSQL is on your new?

Posted
What version MYSQL was on your old machine and what version MYSQL is on your new?

 

new one is 5.x, old one probably 3.x

 

regards,

Wojciech

Archived

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

×
×
  • Create New...