VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: aronxie on December 26, 2012, 19:40:46 PM

Title: Help! VirtueMart 2.0.16 Product Search cant worked. Joomla! 2.5.8
Post by: aronxie on December 26, 2012, 19:40:46 PM
When I try to search sth, it display below message:

vmError: exeSortSearchListQuery Column 'ordering' in where clause is ambiguous SQL=SELECT SQL_CALC_FOUND_ROWS l.`virtuemart_product_id` FROM `jml_virtuemart_products_zh_cn` as l JOIN `jml_virtuemart_products` AS p using (`virtuemart_product_id`) LEFT JOIN `jml_virtuemart_product_categories` as pc ON p.`virtuemart_product_id` = `pc`.`virtuemart_product_id` LEFT JOIN `jml_virtuemart_categories_zh_cn` as c ON c.`virtuemart_category_id` = `pc`.`virtuemart_category_id` LEFT JOIN `jml_virtuemart_product_manufacturers` ON p.`virtuemart_product_id` = `jml_virtuemart_product_manufacturers`.`virtuemart_product_id` LEFT JOIN `jml_virtuemart_manufacturers_zh_cn` as m ON m.`virtuemart_manufacturer_id` = `jml_virtuemart_product_manufacturers`.`virtuemart_manufacturer_id` LEFT JOIN `jml_virtuemart_product_prices` as pp ON p.`virtuemart_product_id` = pp.`virtuemart_product_id` LEFT JOIN `jml_virtuemart_product_shoppergroups` ON p.`virtuemart_product_id` = `jml_virtuemart_product_shoppergroups`.`virtuemart_product_id` LEFT OUTER JOIN `jml_virtuemart_shoppergroups` as s ON s.`virtuemart_shoppergroup_id` = `jml_virtuemart_product_shoppergroups`.`virtuemart_shoppergroup_id` WHERE ((`product_name` LIKE "%karicare%" OR `product_s_desc` LIKE "%karicare%" OR `category_name` LIKE "%karicare%" OR `category_description` LIKE "%karicare%" OR `mf_name` LIKE "%karicare%" OR `product_price` LIKE "%karicare%" OR `product_availability` LIKE "%karicare%" OR `ordering` LIKE "%karicare%") AND p.`published`="1" AND `pc`.`virtuemart_category_id` > 0 AND ( s.`virtuemart_shoppergroup_id`= "2" OR s.`virtuemart_shoppergroup_id` IS NULL ) ) group by p.`virtuemart_product_id` ORDER BY product_name ASC LIMIT 0, 9
Title: Re: Help! VirtueMart 2.0.16 Product Search cant worked. Joomla! 2.5.8
Post by: PRO on December 26, 2012, 21:30:12 PM
did you update the "all in one" component?

Title: Re: Help! VirtueMart 2.0.16 Product Search cant worked. Joomla! 2.5.8
Post by: aronxie on December 26, 2012, 22:19:23 PM
Quote from: PRO on December 26, 2012, 21:30:12 PM
did you update the "all in one" component?

Yes, I did.

[attachment cleanup by admin]
Title: Re: Help! VirtueMart 2.0.16 Product Search cant worked. Joomla! 2.5.8
Post by: PRO on December 26, 2012, 22:34:36 PM
is this backend or frontend?

have you tried

"tools & migration"  "install or update tables"   ?
Title: Re: Help! VirtueMart 2.0.16 Product Search cant worked. Joomla! 2.5.8
Post by: aronxie on December 26, 2012, 22:57:40 PM
Quote from: PRO on December 26, 2012, 22:34:36 PM
is this backend or frontend?

have you tried

"tools & migration"  "install or update tables"   ?

This is the frontend. Yes, I have tried the "install or update tables".
Title: Re: Help! VirtueMart 2.0.16 Product Search cant worked. Joomla! 2.5.8
Post by: jjk on December 27, 2012, 14:37:24 PM
Perhaps the same problem/solution as this one:
http://forum.virtuemart.net/index.php?topic=111341.msg373996#msg373996 (http://forum.virtuemart.net/index.php?topic=111341.msg373996#msg373996)
Title: Re: Help! VirtueMart 2.0.16 Product Search cant worked. Joomla! 2.5.8
Post by: aronxie on December 28, 2012, 06:17:56 AM
Quote from: jjk on December 27, 2012, 14:37:24 PM
Perhaps the same problem/solution as this one:
http://forum.virtuemart.net/index.php?topic=111341.msg373996#msg373996 (http://forum.virtuemart.net/index.php?topic=111341.msg373996#msg373996)

I have changed the the "case 'ordering':" to "case '`pc`.ordering':". But still doesn't work. Could you help to find the problem? thank you

vmError: exeSortSearchListQuery Column 'ordering' in where clause is ambiguous SQL=SELECT SQL_CALC_FOUND_ROWS l.`virtuemart_product_id` FROM `jml_virtuemart_products_zh_cn` as l JOIN `jml_virtuemart_products` AS p using (`virtuemart_product_id`) LEFT JOIN `jml_virtuemart_product_categories` as pc ON p.`virtuemart_product_id` = `pc`.`virtuemart_product_id` LEFT JOIN `jml_virtuemart_categories_zh_cn` as c ON c.`virtuemart_category_id` = `pc`.`virtuemart_category_id` LEFT JOIN `jml_virtuemart_product_manufacturers` ON p.`virtuemart_product_id` = `jml_virtuemart_product_manufacturers`.`virtuemart_product_id` LEFT JOIN `jml_virtuemart_manufacturers_zh_cn` as m ON m.`virtuemart_manufacturer_id` = `jml_virtuemart_product_manufacturers`.`virtuemart_manufacturer_id` LEFT JOIN `jml_virtuemart_product_prices` as pp ON p.`virtuemart_product_id` = pp.`virtuemart_product_id` LEFT JOIN `jml_virtuemart_product_shoppergroups` ON p.`virtuemart_product_id` = `jml_virtuemart_product_shoppergroups`.`virtuemart_product_id` LEFT OUTER JOIN `jml_virtuemart_shoppergroups` as s ON s.`virtuemart_shoppergroup_id` = `jml_virtuemart_product_shoppergroups`.`virtuemart_shoppergroup_id` WHERE ((`product_name` LIKE "%karicare%" OR `product_s_desc` LIKE "%karicare%" OR `category_name` LIKE "%karicare%" OR `category_description` LIKE "%karicare%" OR `mf_name` LIKE "%karicare%" OR `product_price` LIKE "%karicare%" OR `product_availability` LIKE "%karicare%" OR `ordering` LIKE "%karicare%") AND p.`published`="1" AND `pc`.`virtuemart_category_id` > 0 AND ( s.`virtuemart_shoppergroup_id`= "2" OR s.`virtuemart_shoppergroup_id` IS NULL ) ) group by p.`virtuemart_product_id` ORDER BY product_name ASC LIMIT 0, 9
Title: Re: Help! VirtueMart 2.0.16 Product Search cant worked. Joomla! 2.5.8
Post by: PRO on December 28, 2012, 18:08:36 PM
http://forum.virtuemart.net/index.php?topic=111322.msg373894#msg373894