Opened 18 months ago

Closed 18 months ago

Last modified 17 months ago

#3478 closed Bug (fixed)

Notice: Indirect modification of overloaded property Piwik_Config::$General has no effect

Reported by: matt Owned by:
Priority: normal Milestone: 1.9.2 - Piwik 1.9.2
Component: Core Keywords:
Cc: Sensitive: no

Description

A bug was reported in the forums

There is an error. Please report the message (Piwik 1.9.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Notice: Indirect modification of overloaded property Piwik_Config::$General has no effect in /var/www/piwik/core/Url.php on line 208

Backtrace -->

#0 Piwik_ErrorHandler(...) called at [/var/www/piwik/core/Url.php:208]
#1 Piwik_Url::isValidHost(...) called at [/var/www/piwik/core/Url.php:246]
#2 Piwik_Url::getHost(...) called at [/var/www/piwik/core/Url.php:277]
#3 Piwik_Url::getCurrentHost(...) called at [/var/www/piwik/core/Url.php:64]
#4 Piwik_Url::getCurrentUrlWithoutFileName(...) called at [/var/www/piwik/core/View.php:49]
#5 Piwik_View->__construct(...) called at [/var/www/piwik/core/ViewDataTable/HtmlTable.php:97]
#6 Piwik_ViewDataTable_HtmlTable->buildView(...) called at [/var/www/piwik/core/ViewDataTable/HtmlTable.php:89]
#7 Piwik_ViewDataTable_HtmlTable->main(...) called at [/var/www/piwik/core/Controller.php:152]
#8 Piwik_Controller->renderView(...) called at [/var/www/piwik/plugins/Referers/Controller.php:167]
#9 Piwik_Referers_Controller->getWebsites(...) called at [:]
#10 call_user_func_array(...) called at [/var/www/piwik/core/FrontController.php:138]
#11 Piwik_FrontController->dispatch(...) called at [/var/www/piwik/index.php:53]


Change History (2)

comment:1 Changed 18 months ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [7314]) Fixes #3478 We cannot apparently set the value of a config file section directly, it fails for some php versions which don't understand the &get() magic function.. Refs #3080
Refactoring the two setters into one helper function

Also fixing notice in graph code

comment:2 Changed 17 months ago by matt (mattab)

  • Priority changed from critical to normal
  • Summary changed from Notice: Indirect modification of overloaded property Piwik_Config::$General has no effect in core/Url.php on line 208 to Notice: Indirect modification of overloaded property Piwik_Config::$General has no effect
Note: See TracTickets for help on using tickets.