VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: bhoomikasethi on January 19, 2016, 13:59:25 PM

Title: Shopping cart empty
Post by: bhoomikasethi on January 19, 2016, 13:59:25 PM
Hi there!!!

J : 3.4.5
Virtuemart : 3.0.12
PHP : 5.4.45
MySQL : 5.5.47

A few days before my client's website was working as expected. Virtuemart is not adding up the products to cart. I console it and found this error:
GET https://www.healthydogtreats.com.au/healthy-dog-treats/components/com_virtuemart/assets/js/chosen.jquery.min.js
Cache is disabled, did SSL settings, tried different combinations of  VM config. Tried disabling different components, If those conflicting with VM cart. Read almost every topic related to it and tried to solve accordingly. But all in vain!! I'm messing up with issue from last few days.
Pls help... Any help would be appreciated!!
Thanks and regards,
Bhoomika
Title: Re: Shopping cart empty
Post by: jenkinhill on January 19, 2016, 15:07:08 PM
Your Joomla version is known to have critical security issues, and should have been updated in early December - current version is J3.4.8.  http://virtuemart.net/news/latest-news/475-critical-security-leak-in-all-joomla-versions-please-update-immediatly

I cannot see a js error, so suggest you switch to Protostar template to check if you have an issue with your template overrides - assuming that your site has not been hacked yet.
Title: Re: Shopping cart empty
Post by: GJC Web Design on January 19, 2016, 18:02:13 PM
the error is that chosen.js is missing

404 Not Found - https://www.healthydogtreats.com.au/healthy-dog-treats/components/com_virtuemart/assets/js/chosen.jquery.min.js"
Title: Re: Shopping cart empty
Post by: jenkinhill on January 19, 2016, 18:10:23 PM
If you check this line in the header the file is loaded and is present: <script src="components/com_virtuemart/assets/js/chosen.jquery.min.js" type="text/javascript"></script>

??
Title: Re: Shopping cart empty
Post by: GJC Web Design on January 19, 2016, 20:08:08 PM
that call is wrong.. it is sef'd.. there is no folder /healthy-dog-treats/
https://www.healthydogtreats.com.au/healthy-dog-treats/components/com_virtuemart/assets/js/chosen.jquery.min.js is a 404

https://www.healthydogtreats.com.au/components/com_virtuemart/assets/js/chosen.jquery.min.js  is there
Title: Re: Shopping cart empty
Post by: jenkinhill on January 19, 2016, 23:58:56 PM
Surely a full url should not be used?
Title: Re: Shopping cart empty
Post by: bhoomikasethi on January 20, 2016, 06:23:15 AM
yes but I didn't customize any js urls. Its adding up product name alias in js url, that's y shopping cart isn't working.. I agree with it.. But on home page its not adding up any additional aliases in url.. I don't see any other cause of returning shopping cart empty..

Please suggest me something, How will it work?

Many thanks.
Title: Re: Shopping cart empty
Post by: bhoomikasethi on January 20, 2016, 06:54:15 AM
@jenkinhill Yes tried with switching the template to protostar but issue remains the same. I don't see any major error from which I can conclude the cause of it.  :(
Title: Re: Shopping cart empty
Post by: jenkinhill on January 20, 2016, 10:56:28 AM
You state elsewhere that it is not just VM that has stopped working, so I suggest you check carefully for evidence of hacking.  http://forum.joomla.org/viewtopic.php?f=714&t=904114
Title: Re: Shopping cart empty
Post by: bhoomikasethi on January 20, 2016, 11:44:52 AM
Yeah but those are fixed now. Vm cart is working on chrome only not in any other browser. And If I check on other devices its not working yet. Its only working on my PC. Can it be cache issue? My cache settings are off. And still when I navigate to clear cache I can see 3 - 4 blocks of vm cache files. If I dont want to store virtuemart cache, How can I achieve that?
Title: Re: Shopping cart empty
Post by: GJC Web Design on January 20, 2016, 12:37:30 PM
vm ALWAYS caches the category view only (and rss if enabled) .. the rest not
Title: Re: Shopping cart empty
Post by: bhoomikasethi on January 20, 2016, 12:40:08 PM
I'm getting this error when i console it FF:
{"stat":"2","msg":"Continue Shopping<\/a>
Error while adding product in cart: no product ids<\/div>
\n\r"}