VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: tweetie on April 16, 2013, 22:58:42 PM

Title: [ SOLVED ] Products do not display
Post by: tweetie on April 16, 2013, 22:58:42 PM
Just upgraded to 2.0.20b using Joomla 2.5.9

Now I get the following error:

vmError: exeSortSearchListQuery Column 'ordering' in order clause is ambiguous SQL=SELECT SQL_CALC_FOUND_ROWS l.`virtuemart_product_id` FROM `j25_virtuemart_products_en_gb` as l JOIN `j25_virtuemart_products` AS p using (`virtuemart_product_id`) LEFT JOIN `j25_virtuemart_product_categories` as pc ON p.`virtuemart_product_id` = `pc`.`virtuemart_product_id` LEFT JOIN `j25_virtuemart_categories_en_gb` as c ON c.`virtuemart_category_id` = `pc`.`virtuemart_category_id` LEFT JOIN `j25_virtuemart_product_shoppergroups` ON p.`virtuemart_product_id` = `j25_virtuemart_product_shoppergroups`.`virtuemart_product_id` LEFT OUTER JOIN `j25_virtuemart_shoppergroups` as s ON s.`virtuemart_shoppergroup_id` = `j25_virtuemart_product_shoppergroups`.`virtuemart_shoppergroup_id` WHERE ( p.`published`="1" AND `pc`.`virtuemart_category_id` = 7 AND ( s.`virtuemart_shoppergroup_id`= "2" OR s.`virtuemart_shoppergroup_id` IS NULL ) ) group by p.`virtuemart_product_id` ORDER BY ordering ASC LIMIT 0, 10

Similar error in administrator trying to view product list.

Please advise.
Title: Re: Products do not display
Post by: jenkinhill on April 16, 2013, 23:27:31 PM
Same as here: http://forum.virtuemart.net/index.php?topic=112606

Fix is to Enable database Update tools  in Configuration/Shop then go to Tools & Migration and hit "Install or if necessary update tables" button. But backup first, as always when working on the database.
Title: Re: Products do not display
Post by: tweetie on April 29, 2013, 20:34:24 PM
Thank you. I had missed the part about "Enable database Update tools  in Configuration/Shop" - it has worked now.