• Resolved riw

    (@riw)


    Y’all —

    I’ve installed the really simple ssl plugin, and everything looks right (green lock, certificate is right, etc.). However, when I try to set up a Caldera form that requires SSL, Caldera tells me I don’t have SSL installed (it forces me to demo mode for credit card transactions even though the page the form is on has the green lock, and everything looks right). According to Caldera, this is because is_ssl() is returning false…

    I see there was a fix for this in a recent update, but I don’t know if it’s working right or not.

    Any ideas?

    🙂

    Russ

    https://ww.wp.xz.cn/plugins/really-simple-ssl/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    That last fix was something else, and had to do with the way curl was used. If your server setup causes is_ssl() to return false this plugin should detect that and add a fix to the wp-config.php:

    if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
        $_SERVER['HTTPS'] = 'on';

    You can check this simply by looking at your wp-config.php for that code. If it isn’t there, and you are sure it should, you can add it yourself.

    Normally, when this is needed, the admin is not accessible anymore, so it would be strange if you didn’t have any issues without the plugin fixing it but that you would need it anyway.

    Thread Starter riw

    (@riw)

    Hmmm… The fix wasn’t in my wp-config.php, but when I tried to put it in there, the site became inaccessible. I tried disabling wordfence, but the problem persists. Can I check to make certain is_ssl() is returning true somehow so I can toss the ball back into the Caldera forms camp? In other words, is there a simple way to tell?

    Thanks!

    Russ

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Are you sure you put it in the right way, because the if statement should ensure the code only works when it is needed. You should add it directly after <?php

    You can also just add
    $_SERVER['HTTPS'] = 'on';
    right after the <?php

    To check what is_ssl() returns, you can just add some code to for example your functions.php or header.php

    <?php
    if (is_ssl()) {
      echo "is_ssl() returned true";
    } else {
      echo "is_ssl() returned false";
    }
    ?>

    Then look in the source, or maybe you can see it on your site straight away.

    Thread Starter riw

    (@riw)

    Thanks — both of these worked. I put the test code in the footer so it shows up on my site. It might actually be nice to have a widget that displays the is_ssl() state for easier testing, but this works.

    🙂

    Russ

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    I’ll add it to the configuration page of the plugin. Thanks for the input.

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

The topic ‘Caldera Forms and SSL’ is closed to new replies.