I can't add to cart without HTTPS enabled I have a quite weird situation here, I assume this problem must be a server side issue, but so far I couldn't figure it out how to fix this.

I have a Nginx server with Varnish (I even disabled it totally still got the error) running a Drupal Commerce website on it, the quite funny issue here is the "Add to Cart" button doesn't work on a session without HTTPS, if I add HTTPS in front of my URL, I can add the product to my cart!

I'd really appreciate any help!
The problem was that commerce_cart.module requires a valid session or logged-in user.  The security settings of the OP's site prevented sessions being sent out to HTTP requests.
While the OP solved this problem via PHP.ini, there are other valid solutions:


Adding session.cookie_secure = 0 in settings.php
Requiring all users to use HTTPS.
Preventing the cart from displaying to anonymous users.