VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: Funtshirts on May 24, 2017, 11:35:44 AM

Title: Product detail page broken when updating virtuemart.
Post by: Funtshirts on May 24, 2017, 11:35:44 AM
As the title says: Product detail page broken when updating virtuemart.

I added a screenshot of how it looks.

I made a back up so my site is fixed now, but i hope someone can still tell me what causes that problem..
I did already update to Joomla 3.7.1. :(

My website is: www.funtshirts.nl
I use Joomla 3.7.1
Virtuemart 3.2.1
PHP 7.1.5
Title: Re: Product detail page broken when updating virtuemart.
Post by: GJC Web Design on May 24, 2017, 12:06:26 PM
try with "Display Subcategories in product detail" checked in vm template admin

posts on here about it from memory
Title: Re: Product detail page broken when updating virtuemart.
Post by: fastpat27 on May 25, 2017, 16:09:59 PM
Hi, I also have this problem, rest of site seems ok but product pages don't display.

Error is:
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 'DESC FROM `#__virtuemart_products` as p LEFT JOIN `#__virtuemart_products_en' at line 1 SQL=SELECT p.`virtuemart_product_id`, `l`.`product_name`,virtuemart_product_id DESC FROM `#__virtuemart_products` as p LEFT JOIN `#__virtuemart_products_en_gb` as l ON l.`virtuemart_product_id` = p.`virtuemart_product_id` LEFT JOIN `#__virtuemart_product_shoppergroups` as ps ON p.`virtuemart_product_id` = `ps`.`virtuemart_product_id` LEFT JOIN `#__virtuemart_product_categories` as pc ON p.`virtuemart_product_id` = `pc`.`virtuemart_product_id` WHERE ( `pc`.`virtuemart_category_id` = 26 AND ( `ps`.`virtuemart_shoppergroup_id`= "1" OR `ps`.`virtuemart_shoppergroup_id` IS NULL ) AND p.`published`="1" ) AND p.`virtuemart_product_id`!="178" AND virtuemart_product_id DESC <= "Black Sunflower Seeds" ORDER BY `p`.virtuemart_product_id DESC LIMIT 1

Is this a virtuemart error or caused by template? I was running Joomla 3.6.5 / VM 3.2.1 and trying to update to VM 3.2.2 and then J3.7.2

Thanks for any help

FP
Title: Re: Product detail page broken when updating virtuemart.
Post by: johnkont on May 26, 2017, 10:34:40 AM
I have the same problem.
Occurs only if you have subcategories in the category where is the product you viewing.

Downgrade to 3.2.1 and wait for solution.
Title: Re: Product detail page broken when updating virtuemart.
Post by: Funtshirts on May 26, 2017, 10:56:54 AM
Well i indeed have the subcategories there, but I actually dont want that. How do i remove them??
Title: Re: Product detail page broken when updating virtuemart.
Post by: fastpat27 on May 27, 2017, 13:28:03 PM
I have subcategories in most categories but I have one category with one product and a direct link to that one product, that product page still has the error. Is this confirmed as a VM error then and not a template problem. So do we need to revert back to Joomla 3.6.5 and VM 3.2.1 until the development team fix it on the next update?

Is the security issue in J3.7 only and that J3.6.5 is still secure?

Thanks
FP
Title: Re: Product detail page broken when updating virtuemart.
Post by: Milbo on May 29, 2017, 10:06:41 AM
Quote from: fastpat27 on May 25, 2017, 16:09:59 PM
Hi, I also have this problem, rest of site seems ok but product pages don't display.

Error is:
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 'DESC FROM `#__virtuemart_products` as p LEFT JOIN `#__virtuemart_products_en' at line 1
Fixed in vm3.2.3
Title: Re: Product detail page broken when updating virtuemart.
Post by: Funtshirts on May 29, 2017, 12:46:54 PM
My problem as well?
Title: Re: Product detail page broken when updating virtuemart.
Post by: fastpat27 on May 29, 2017, 20:50:14 PM
Great Milbo, I'll get updating tomorrow and hope that sorts it, thank you
Title: Re: Product detail page broken when updating virtuemart.
Post by: Milbo on May 30, 2017, 14:46:22 PM
Funtshirts, maybe the answere here helps you better http://forum.virtuemart.net/index.php?topic=137638.msg482031#msg482031