JDatabaseMySQL::query: 1064

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Apr 07, 2014 7:59 pm
Reply with quote
Report this post
Hello,

The following information appears on my web:

JDatabaseMySQL::query: 1064 - 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 18 SQL=SELECT DISTINCT c.virtuemart_category_id AS CID FROM qa9dx_virtuemart_product_categories AS cx LEFT JOIN qa9dx_virtuemart_categories_pl_pl AS c ON cx.virtuemart_category_id = c.virtuemart_category_id LEFT JOIN qa9dx_virtuemart_products_pl_pl AS content ON cx.virtuemart_product_id = content.virtuemart_product_id LEFT JOIN qa9dx_virtuemart_categories AS cat ON c.virtuemart_category_id = cat.virtuemart_category_id WHERE ( )

And while trying to search for products:

JDatabaseMySQL::query: 1054 - Unknown column 'pc.ordering' in 'where clause' SQL=SELECT SQL_CALC_FOUND_ROWS l.`virtuemart_product_id` FROM `qa9dx_virtuemart_products_en_gb` as l JOIN `qa9dx_virtuemart_products` AS p using (`virtuemart_product_id`) LEFT JOIN `qa9dx_virtuemart_product_categories` as pc ON p.`virtuemart_product_id` = `pc`.`virtuemart_product_id` LEFT JOIN `qa9dx_virtuemart_categories_en_gb` as c ON c.`virtuemart_category_id` = `pc`.`virtuemart_category_id` LEFT JOIN `qa9dx_virtuemart_product_manufacturers` ON p.`virtuemart_product_id` = `qa9dx_virtuemart_product_manufacturers`.`virtuemart_product_id` LEFT JOIN `qa9dx_virtuemart_manufacturers_en_gb` as m ON m.`virtuemart_manufacturer_id` = `qa9dx_virtuemart_product_manufacturers`.`virtuemart_manufacturer_id` LEFT JOIN `qa9dx_virtuemart_product_prices` as pp ON p.`virtuemart_product_id` = pp.`virtuemart_product_id` LEFT JOIN `qa9dx_virtuemart_product_shoppergroups` ON p.`virtuemart_product_id` = `qa9dx_virtuemart_product_shoppergroups`.`virtuemart_product_id` LEFT OUTER JOIN `qa9dx_virtuemart_shoppergroups` as s ON s.`virtuemart_shoppergroup_id` = `qa9dx_virtuemart_product_shoppergroups`.`virtuemart_shoppergroup_id` WHERE ((`product_name` LIKE "%3011%" OR `p`.created_on LIKE "%3011%" OR `p`.product_sku LIKE "%3011%" OR `product_s_desc` LIKE "%3011%" OR `product_desc` LIKE "%3011%" OR `l`.slug LIKE "%3011%" OR `category_name` LIKE "%3011%" OR `category_description` LIKE "%3011%" OR `mf_name` LIKE "%3011%" OR `product_price` LIKE "%3011%" OR `product_special` LIKE "%3011%" OR `product_sales` LIKE "%3011%" OR `product_availability` LIKE "%3011%" OR `p`.product_available_date LIKE "%3011%" OR `product_height` LIKE "%3011%" OR `product_width` LIKE "%3011%" OR `product_length` LIKE "%3011%" OR `product_lwh_uom` LIKE "%3011%" OR `product_weight` LIKE "%3011%" OR `product_weight_uom` LIKE "%3011%" OR `product_in_stock` LIKE "%3011%" OR `low_stock_notification` LIKE "%3011%" OR `p`.modified_on LIKE "%3011%" OR `product_unit` LIKE "%3011%" OR `product_packaging` LIKE "%3011%" OR `p`.virtuemart_product_id LIKE "%3011%" OR `pc.ordering` LIKE "%3011%") AND p.`published`="1" AND `pc`.`virtuemart_category_id` > 0 AND ( s.`virtuemart_shoppergroup_id`= "1" OR s.`virtuemart_shoppergroup_id` IS NULL ) ) group by p.`virtuemart_product_id` ORDER BY product_name ASC LIMIT 0, 18

Could you please help me to fix it?
User avatar
Senior Boarder

GK User
Wed Apr 09, 2014 9:02 am
Reply with quote
Report this post
Do you use some News Show Pro module configured to display content from VirtueMart? Please try to unpublish this module and check whether this helps.
User avatar
Platinum Boarder

GK User
Wed Apr 09, 2014 10:20 am
Reply with quote
Report this post
Thank you for your response. I did what you've adviced and it did help but only for the frontpage. As far as the search is concerned there are no changes.
User avatar
Senior Boarder

GK User
Wed Apr 09, 2014 11:31 pm
Reply with quote
Report this post
Ok so the problem disappear for homepage and still exist on all other pages? If yes you probably have another module published on all pages except home that returns no results. My advise is to disable all modules and test subpages.
User avatar
Platinum Boarder


cron