mautic / mautic-joomla

Joomla Plugin
16 stars 16 forks source link

Mixed content when the form is generated to include http:// in https website #29

Closed martinduplex closed 7 years ago

martinduplex commented 7 years ago

Hi,

I have installed Mautic plugin for joomla and used shortcode for form generation in the article.

However there is apparent problem where the form is dynamically generated, it generates http://domain.com/mautic/form/submit?formId=xx where the prefix is non-secure, when the website that contains the form adopts https:// protocol for Secure SSL.

Is there any way to fix it?

Thanks

RCheesley commented 7 years ago

Make sure your Mautic instance is on https: and then rebuild the form cache :)

martinduplex commented 7 years ago

@RCheesley Thanks for that. Unfortunately after I changed http to https in Site URL and rebuild the form cache, the form seems stuck on "Please Wait...".
Also when I inspected in console inspector, it seems Mautic Joomla Plugin isn't properly load the https:// for form action for submit button. Here is example warning message of mixed message in Console report:

> Mixed Content: The page at 'https://www.domain.com.au/contact' was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http://domain.com/mautic/form/submit?formId=7'. This endpoint should be made available over a secure connection.

It seems that the Mautic Joomla plugin somehow dynamically generate form via short code {{mauticform id}} and dynamically load the http form action (where it should load https?).

Any advice is greatly appreciated, thank you.

escopecz commented 7 years ago

Make sure the Site URL in Mautic's configuration is https and then rebuild the form. There is a button for it in the list of forms or just simply open the form and save it again.

RCheesley commented 7 years ago

Also make sure you clear any cache - joomla, cloudflare/cdn, and your browser (delete cached files).

Ruth

Ruth Cheesley CEO & Co-Founder

Virya Group Limited

P: +44 (0) 1473 852130 E: ruth.cheesley@viryagroup.com M: +44 (0) 7920 404314 C: Schedule a meeting https://app.hubspot.com/meetings/ruth-cheesley

Please note that I often type emails using voice dictation - while I try to ensure that what is typed is what I dictate, sometimes there can be errors!

On 15 May 2017 at 08:22, John Linhart notifications@github.com wrote:

Make sure the Site URL in Mautic's configuration is https and then rebuild the form. There is a button for it in the list of forms or just simply open the form and save it again.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mautic/mautic-joomla/issues/29#issuecomment-301396287, or mute the thread https://github.com/notifications/unsubscribe-auth/ACy3ofcDPI2c39f3mGyqwNIhi5-ihBkpks5r5_00gaJpZM4NYv_U .

--

Be like me, be Carbon free - don't print this and save a tree IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.

martinduplex commented 7 years ago

Thanks @RCheesley @escopecz for the advice much appreciated!

escopecz commented 7 years ago

@martinduplex is it working for you now?

martinduplex commented 7 years ago

Hello @escopecz , yes it does. Many thanks!

gregorybrad commented 4 years ago

Want to add something else here that worked for me. In Settings -> Configuration -> Site URL Make sure you have HTTPS set there too. Then clear the app/cache folder and it worked.