We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Insecure form action in EE's contact form

How Do I?

Nelly's avatar
Nelly
94 posts
2 years ago
Nelly's avatar Nelly

Hi! I’m having trouble with a form that uses EE’s contact form tag. In the front end, the form action uses a http url, so I get a browser warning.

I double-checked URL settings. This is the second site in a MSM install, the form in the first install works perfectly. Both forms used FormGrab originally, with the same problem presenting in site 2.

{exp:email:contact_form recipients="REDACTED" redirect="none" return="es/contacto-gracias" form_class="cform"}

What else should I check?

       
Bryan's avatar
Bryan
16 posts
2 years ago
Bryan's avatar Bryan

Hi Nelly,

It looks like the Contact Form’s action url is based on the value for $config['site_url']. In an MSM setup you might have this set in your second site’s index.php file as $assign_to_config['site_url'].

It might also be worth checking inside the control panel under Developer > Settings > URL and Path Settings and look at the value for Default base URL.

       
Nelly's avatar
Nelly
94 posts
2 years ago
Nelly's avatar Nelly

Hi Bryan,

That’s it! It was the config value in index.php.

Default base URL was correct, it was driving me crazy. Problem solved, thank you so much!

? 1
       
Bryan's avatar
Bryan
16 posts
2 years ago
Bryan's avatar Bryan

Awesome! I’m so glad that got things working for you 😊

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.