[Plugin: WordPress.com Stats] HTTPS undefined
-
Notice: Undefined index: HTTPS in /home/BLAH/wp-content/plugins/stats/stats.php on line 111
This line of code dumps the above error message to my sites.
$http = $_SERVER['HTTPS'] ? 'https' : 'http';
I had to go around and manually change the line to
$http = isset($_SERVER['HTTPS']) ? 'https' : 'http';
Because of this note on https://www.php.net/manual/en/reserved.variables.server.php
[b]Note: Note that when using ISAPI with IIS, the value will be [i]off[/i if the request was not made through the HTTPS protocol.[/b]
And I’m obviously not the only one with this issue as you can see from this google result.
https://www.google.com/search?q=%22Notice%3A+Undefined+index%3A+HTTPS%22+%22line+111%22
Just an FYI for future development. Love the product, by the way!
Peace
- The topic ‘[Plugin: WordPress.com Stats] HTTPS undefined’ is closed to new replies.