News:

Support the VirtueMart project and become a member

Main Menu

https <-> http JS-Error

Started by bastgl, October 01, 2015, 13:04:38 PM

Previous topic - Next topic

bastgl

Hi,

here are my specifications:
Joomla 2.5.27
Virtuemart 2.6.18

My website now has SSL and can run on http and https. When I click on the shoppingcart button the loader gif shows up, but nothing happens. The product is not added to the cart.

As no SSL is active and when I look at it with the Firefox Web-Console this error comes, when clicking on the shopping cart button: "Laden von gemischten aktiven Inhalten "http://www.domain.de/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&quantity=1&quantity%5B%5D=1&option=com_virtuemart&view=cart&virtuemart_product_id%5B%5D=807&Itemid=239&_=1443695643334" wurde blockiert"

In englisch:  "Load mixed active content has been blocked!"

When I activate ssl and try out the same thing it says something about "CORS-Kopfzeile 'Access-Control-Allow-Origin' fehlt"

In english: CORS-HEADER is missing.


What can I do now? When I deactivate SSL I can't add products to the cart, and when I activate SSL it's just the same.

Thanks,
Basti


Milbo

I think we solved the problems with the mixed mode in vm3, but in anycase, you must check your layouts or css for links with http, just use always relative links and it should work.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

bastgl

Hi,

thanks for your answer.
Do you know in which file this call is produced?

http://www.domain.de/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&quantity=1&quantity%5B%5D=1&option=com_virtuemart&view=cart&virtuemart_product_id%5B%5D=807&Itemid=239&_=1443695643334

maybe I should change some call in this file or elsewhere? I don't know where to start to change the http to https.

jjk

Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations