News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Cannot add products to cart

Started by alesbennetti, January 02, 2012, 08:04:25 AM

Previous topic - Next topic

jenkinhill

#15
ethosws, it is a server problem with ModSecurity. See http://www.modsecurity.org/documentation/modsecurity-apache/1.9.3/html-multipage/03-configuration.html

If you are using Apache you may be able to turn off ModSec in .htaccess but be careful about doing that. It is usually installed on the server for a reason!  See http://www.tipsandtricks-hq.com/apache-mod-security-update-how-to-fix-error-406-or-not-acceptable-issue-259
Alternatively, if it is your server you can modify conf/modsecurity.conf - or ask the host to is you show them the problem.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Kschuler

J1.7
VM2.0
I am still having problems with my add to cart button.  jenkinhill, I have seen you reference the same link for this problem, but it does not seem to help me.  In another post someone told me that my slider was using javascript and so was virtuemart so it wouldn't work.  I have found out how to disable jquery in virtuemart, according to jenkinhill's link but that didn't help my problems with my cart acting bad.  I can't see how to turn off jquery for the slider.  Do I have to delete some files?  Do I have to add something in to a file somewhere? and if I do then where?  What file?  Every template that I see it has a slider.  I like the image sliders and would like to have both to show products that are on a weekly sale. 

I am having such a hard time with this.  Any suggestions greatly appreciated.  Here is the site www.thegrowshopllc.com

PRO

Kschuler, if you want people to help you have to post a url.

With things like these it could be 1, out of 10,000 things. Nobody is going to post that many times. But it can be spotted within 2 minutes of looking at the site.

jenkinhill

Kschuler, please do not add your issue to this thread when it is already being discussed in another.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

edv

ethosws, can you give us information about your server/system? It could help to find a solution to the "NetworkError: 406"
Windows IIS 6 / 7, Linux Apache, Mac OSX Apache ... maybe firewall system?

Regards


millermulti

Same problem here. As soon as I view a product description page I get the 406 error which in turn stops the Add from Cart button from working.
System: Linux, PHP 5.2.11, Apache 1.3.41
Joomla 1.7.4, VirtueMart 2.0.0
SEF Disabled, All straight install, no modifications, no sample data, no Javascript errors, jQuery from Google is loaded.
Error on GET index.php?option=com_virtuemart&nosef=1&view=productdetails&task=recalculate&format=json&customPrice%255B0%255D%255B7%255D%3D10%26quantity%255B%255D%3D1%26option%3Dcom_virtuemart%26view%3Dcart%26virtuemart_product_id%255B%255D%3D1%26virtuemart_manufacturer_id%3D2%26virtuemart_category_id%255B%255D%3D1

jenkinhill

millermulti J1.7 requires a minimum PHP5.2.4 and Apaache 2.x  ( http://www.joomla.org/technical-requirements.html )
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

millermulti

jenkinhill, thanks for pointing that out. Talked with the server admin last night and they updated all server software. Apache 2.2.21, PHP 5.3.10
I'm still getting the error. Tried the htaccess option with no luck. I'll see if the system admin can look at the security settings and see if there is someway around this.

PRO

millermulti, how can someone help without a url?

millermulti

BanquetTables.pro, If the site had a public domain, I would share it. The site is under development and not public yet. This is why I am sharing as much information in regards to the issue as possible. I am pursuing jenkinhills suggestion on looking at the ModSecurity on the server. I'll post when I have results.

chocovo

Hello,

I'm using Joomla 1.5.25 and Virtuemart 2.0.

I have the same problem, when clic on "add to cart", nothing happen but in my case I know where is the problem.

In my case it is due sh404Sef. If I turn off this component "add to cart" work again.

Some Idea to have friend urls with virtuemart?

Regards.

PRO

Quote from: chocovo on February 10, 2012, 18:21:51 PM
Hello,

I'm using Joomla 1.5.25 and Virtuemart 2.0.

I have the same problem, when clic on "add to cart", nothing happen but in my case I know where is the problem.

In my case it is due sh404Sef. If I turn off this component "add to cart" work again.

Some Idea to have friend urls with virtuemart?

Regards.

yes, it works with standard joomla SEF.

NO reason at all to have another sef component

millermulti

OK, partially solved. I have been going back and forth with the system admin. They mentioned adding the following to the very top of the .htaccess file to disable mod_security, an Apache firewall module. I did with no luck.
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
I then found this posting in regards to the double encoding issue: http://forum.virtuemart.net/index.php?topic=95654.0
I edited components/com_virtuemart/assets/js/vmprices.js and replaced the two instances of ",encodeURIComponent(datas)," with ",data,"
I can now add items to my cart. The only downside so far is that when I first load a product page and look for errors with Firebug, I am seeing a 500 internal server error, on the upside this error is not causing the page to stop working.