Jump to content

Trouble with SSL and "mixed content"


tiagomiranda

Recommended Posts

Hi,

 

I use SSL and I'm having this error when testing "Notify me when available" (mail alert module).

 

 

 

 

jquery-1.11.0.min.js:4 XMLHttpRequest cannot load http://regards.com.br/shopline/modules/mailalerts/mailalerts-ajax_add.php. Failed to start loading.send @ jquery-1.11.0.min.js:4

jquery-1.11.0.min.js:4 Mixed Content: The page at 'https://regards.com.br/shopline/comprar-taylor-swift/1037-taylor-swift-speak-now.html' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 

'http://regards.com.br/shopline/modules/mailalerts/mailalerts-ajax_add.php'. This request has been blocked; the content must be served over HTTPS.send @ jquery-1.11.0.min.js:4

jquery-1.11.0.min.js:4 XMLHttpRequest cannot load http://regards.com.br/shopline/modules/mailalerts/mailalerts-ajax_add.php. Failed to start loading.send @ jquery-1.11.0.min.js:4

 

I'm not sure where to edit to fix this mixed content. 

Any help is appreciated.

Link to comment
Share on other sites

You can try to edit file:

themes\yourtheme\modules\mailalerts\views\templates\hook\product.tpl

 

and find these two lines:

{addJsDef mailalerts_url_check=$link->getModuleLink('mailalerts', 'actions', ['process' => 'check'])}
{addJsDef mailalerts_url_add=$link->getModuleLink('mailalerts', 'actions', ['process' => 'add'])}

try to change them to:

{addJsDef mailalerts_url_check=$link->getModuleLink('mailalerts', 'actions', ['process' => 'check'], true)}
{addJsDef mailalerts_url_add=$link->getModuleLink('mailalerts', 'actions', ['process' => 'add'], true)}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...