• Resolved th87tran

    (@th87tran)


    Hi Friends,

    I have just moved my site from HTTP to HTTPS. Everything works fine except the Forms (CF7) in my site. Those used to work perfectly before.

    I found this code from function.php

    function https_chrome44fix() {
    		$_SERVER['HTTPS'] = false;
    	}
    add_action('init', 'https_chrome44fix',0);

    If leaving this function running, my site crash but Forms work correctly at this point.

    If i comment this function out, my site back to normal but Forms will be hang after click send button.

    Please give me your advise.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    function https_chrome44fix() {
    		$_SERVER['HTTPS'] = false;
    	}
    add_action('init', 'https_chrome44fix',0);

    What is this code supposed to do? Why did you add it?

    Thread Starter th87tran

    (@th87tran)

    Hi @takayukister

    This code is from our former web coding agent which maybe to fix a conflict with Chrome browser. But it also caused “redirect too many times” trouble while moving site to HTTPS. So i decided to turn it off since then.

    I just tried another way to figure out where the issue come from (the above function still being off).
    Commenting out this code in .htaccess

    #Forcing HTTPS
    #RewriteEngine On
    #RewriteCond %{HTTPS} off
    #RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    Now i can access unsecured contact page http://tictacwatch.com/contact/ and sending form successfully.

    The problem only occurs when my site in HTTPS, doesn’t it?

    Thank you for your help.

    Thread Starter th87tran

    (@th87tran)

    Hi @takayukister

    i just enable some modules on Cpanel and now the forms are working well with HTTPS.

    Thank you so much for your support.

    Thread Starter th87tran

    (@th87tran)

    RESOLVED

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Contact Form 7 not working after HTTPS enable’ is closed to new replies.