WordPress.org

Ready to get started?Download WordPress

Forums

WordPress.com Stats
HTTPS undefined (3 posts)

  1. teetilldeath
    Member
    Posted 3 years ago #

    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 http://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.

    http://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

    http://wordpress.org/extend/plugins/stats/

  2. teetilldeath
    Member
    Posted 3 years ago #

    Wow, a new version was released that did not include the above code fix? C'mon guys, now I have to update your plugin on every one of my pages again...

  3. Andy Skelton
    Member
    Plugin Author

    Posted 3 years ago #

    Sorry, I missed this until now.

    http://plugins.trac.wordpress.org/changeset/297292

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags