VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: shalini_odz on January 29, 2015, 15:23:33 PM

Title: "Ask a Question about this product" button gives 404
Post by: shalini_odz on January 29, 2015, 15:23:33 PM
Hi,
URL to site : http://www.goldrushcoinsandjewelry.com
I am Joomla! v2.5.8 and virtuemart version VirtueMart 2.6.14. I had some issues with SEF URLs earliar but somehow I got to fix that and now a strange issue occurred. When I hit "Ask a Question about this product" button on any product detail page it now gives 404 error in popup. A week ago it was working fine.
Joomla and Virtuemart SEFs are ON. Vituremart suffix is set to -detail and Joomla suffix is off. I have googled too much but didn't find an answer. I am not able to fix this.

Please help and reply asap.

Thanks.
Title: Re: "Ask a Question about this product" button gives 404
Post by: GJC Web Design on January 29, 2015, 17:12:04 PM
and with SEF off does it work?

Title: Re: "Ask a Question about this product" button gives 404
Post by: shalini_odz on January 30, 2015, 06:45:53 AM
No it doesn't even work with SEO off.
Title: Re: "Ask a Question about this product" button gives 404
Post by: GJC Web Design on January 30, 2015, 11:19:44 AM
and the url when sef is off? it should be

index.php?option=com_virtuemart&view=productdetails&task=askquestion&virtuemart_product_id=51&virtuemart_category_id=19&tmpl=component
Title: Re: "Ask a Question about this product" button gives 404
Post by: shalini_odz on January 30, 2015, 11:31:19 AM
Here is the example of URL that is generated on "Ask Question" button when SEF is off:
http://www.goldrushcoinsandjewelry.com/index.php?option=com_virtuemart&view=productdetails&task=askquestion&virtuemart_product_id=86&virtuemart_category_id=10&tmpl=component&Itemid=534

Title: Re: "Ask a Question about this product" button gives 404
Post by: GJC Web Design on January 30, 2015, 12:25:58 PM
the url looks correct so u need to do some basic trouble shooting to see that all files are where they should be etc etc

have you got a proper menu to com_virtuemart?  I.e the VM home page - hidden or otherwise

http://www.goldrushcoinsandjewelry.com/index.php?option=com_virtuemart just gives me a blank template page
Title: Re: "Ask a Question about this product" button gives 404
Post by: shalini_odz on January 30, 2015, 14:52:07 PM
The home page is set to menu item type " VirtueMart ยป VirtueMart Front page". But I don't want the products to show on home page thats why I made them hidden by CSS. I dont know why the link you are talking about is giving blank page.
Title: Re: "Ask a Question about this product" button gives 404
Post by: GJC Web Design on January 30, 2015, 17:50:50 PM
will be because I didn't have the Itemid

well -- as I say .. 

Quotethe url looks correct so u need to do some basic trouble shooting to see that all files are where they should be etc etc
Title: Re: "Ask a Question about this product" button gives 404
Post by: shalini_odz on January 30, 2015, 19:02:48 PM
All the files are in place coz it was working fine a week ago and I have copied this site from dev site and on dev site its also working. I had some sef issues with articles so I applied   a fix for that in com_contents-router.php file. I though this hack might have caused this issue but undoing the changes in that file didn't effect anything.
I tried adding die() in contoller function but it didnt work.
I've already tried all possible but no avail. Please guide me what should I do for basic troubleshooting.Although I've already done it by my side.
Title: Re: "Ask a Question about this product" button gives 404
Post by: GJC Web Design on January 30, 2015, 23:59:48 PM
you need to trace the call thru the controller to the view - step by step to see where it fails