CMS MADE SIMPLE FORGE

Statistics

 

[#11581] Error after upgrading cms from 2.2 to 2.2.3.1

avatar
Created By: Kim Birkeland Skorgenes (master3395)
Date Submitted: Fri Sep 22 16:45:45 -0400 2017

Assigned To: Fernando Morgado (JoMorg)
Version: 1.2.1.2
CMSMS Version: 2.2.3.1
Severity: Critical
Resolution: None
State: Open
Summary:
Error after upgrading cms from 2.2 to 2.2.3.1
Detailed Description:
This error comes constant, each day, up to several times.
It spams my error page, and is one of the reasons, why my site loads blank error
lines.

[21-Sep-2017 01:08:50 Europe/Oslo] PHP Notice:  Undefined variable:
search_engine in
/home/u889915015/public_html/modules/Statistics/Statistics.module.php on line
546

Witch are this line in the module.php


"      if ($search_engine != '') {
        // save search engine and keywords to database
        $this->IncreaseValue("count_search_engine", $search_engine);
        $statkeywords=$this->ReplaceKeywords(join($keyword_array, " "));
        $statkeywords=utf8_encode($statkeywords);
        if ($this->singlekeywords=='1') {
          $singlekeywords=explode(' ',$statkeywords);
          foreach ($singlekeywords as $keyword) {
            $this->IncreaseValue("count_search_keywords", trim($keyword));
          }
        } else {
          $this->IncreaseValue("count_search_keywords", trim($statkeywords));
        }"


History