The core global $is_https is not TRUE.

Created on 13 February 2018, almost 7 years ago
Updated 10 January 2024, about 1 year ago

This needs to be added to the settings.php file. See https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drup...

if ((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on')
  || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
  || (isset($_SERVER['HTTP_HTTPS']) && $_SERVER['HTTP_HTTPS'] == 'on')
) {
  $_SERVER['HTTPS'] = 'on';
}

If you eval this it fails even though it's a https site.

var_export(drupal_is_https());
πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mikeytown2

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024