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
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
I’ll add it to the configuration page of the plugin. Thanks for the input.