Mautic Community Forums

Forms do not work with https

I am using Mautic with Wordpress. The forms do not render on my site due to a mixed content warning:

Mixed Content: The page at ‘https://skillit-dev.example.com/instructor-signup/’ was loaded over HTTPS, but requested an insecure script ‘http://mautic.example.com/mtc.js’. This request has been blocked; the content must be served over HTTPS.

I’ve tried with both the WP Mautic plugin and the automatically created script. Both fail because the mtc.js request is hard coded. How do I fix this?

I think you need to make your mautic site ssl secure. Check out LetsEncrypt it’s free and easy to install using instructions here if you are on a cpanel/WHM setup or otherwise:

https://thedavidweb.com/install-lets-encrypt-free-ssl-hostgator/

Thx. But my site and subdomain ARE secured by letsencrypt. Both work fine as follows:

https://example.com
https://mautic.example.com

The issue is some script in Mautic is asking for http://mautic.example.com/mtc.js and this gives me the “mixed content” error.

Ok I found the problem. In my WP plugin I specified the Mautic install URL incorrectly with http.

The form displays but the submit doesn’t work. I am getting this error message:

The page at 'https://skillit-dev.goofy-foot.com/instructor-signup/' was loaded over HTTPS, but requested an insecure form action 'http://mautic.goofy-foot.com/form/submit?formId=1'. This request has been blocked; the content must be served over HTTPS.

The URL uses https in the WP Mautic plugin and I’ve specified https in the

Configuration -> System Settings

Thanks @mxyzptlkfishstix. I didn’t know about the rebuild forms! Problem solved.