The following piece of code is not correct:

function __construct($_COOKIE) {
     if (isset($_COOKIE["__utmz"])) {
       $this->utmz = $_COOKIE["__utmz"];
     }
     if (isset($_COOKIE["__utma"])) {
       $this->utma = $_COOKIE["__utma"];
     }
       $this->ParseCookies();
  }

Using $_COOCKIE is not correct. If you need to use the global cookie variable just remove the parameter from the constructor.

function __construct() {
     if (isset($_COOKIE["__utmz"])) {
       $this->utmz = $_COOKIE["__utmz"];
     }
     if (isset($_COOKIE["__utma"])) {
       $this->utma = $_COOKIE["__utma"];
     }
       $this->ParseCookies();
  }

Comments

skek’s picture

Status: Active » Needs review
StatusFileSize
new656 bytes
Brian294’s picture

Issue summary: View changes
Status: Needs review » Closed (fixed)

Thank you for reporting this issue. I thought I fixed this issue several months ago, but it appears my commit for version 1.4 was never pushed from my local git clone to drupal.org. I retagged the issue as 1.5 and it took this time: https://drupal.org/node/2165215

LiCra’s picture

How can I fix this problem on my site if I can not get to the login page on the site?