Buy Now
Sign in

https lost in form action

contact@informatiqueprog.net , September 13 2017
Answered
C
contact@informatiqueprog.net
Hy,

I have installed on a fresh install Joomla 3.7.5, the chronoforms 6.0.9

I have installed the "Basic contact form", save, create, the menu entry.
When i call the page "https://www.domain.fr/rendez-vous"
All seems good, but if you check the HTML's code of the form tag, URL action is HTTP

<form action="http://www.domain.fr/rendez-vous?chronoform=Contact&event=submit" method="post" name="display-section1" id="display-section1" data-id="display-section1" class="ui form G2-form" data-valloc="inline" enctype="multipart/form-data" data-dtask="send/self" data-result="replace/self" data-subanimation="1">


Thanks
C
contact@informatiqueprog.net
any ideas to resolve this ?
C
contact@informatiqueprog.net
I finally found why, I'm behind a HTTPS proxy.

To resolve this, you need to change on
cegcore2\libs\url.php
line 32
REPLACE
if((!empty($_SERVER['HTTPS']) AND $_SERVER['HTTPS'] !== 'off') OR $_SERVER['SERVER_PORT'] == 443){

BY
if((!empty($_SERVER['HTTPS']) AND $_SERVER['HTTPS'] !== 'off')
      OR $_SERVER['SERVER_PORT'] == 443
      OR (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) AND $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
      OR (!empty($_SERVER['HTTP_X_FORWARDED_SSL']) AND $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on')){
admin
Thank you for posting the solution!

Best regards
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!