Page MenuHomePhabricator

Config variable $wgUserStatsPointValues not defined in global scope (fixme on line 611)
Closed, ResolvedPublic

Description

Author: wikifoot

Description:
UserStats/UserStatsClass.php defines config variables intended for the global scope at the top of the file including the array $wgUserStatsPointValues.

When the UserStatsTrack class is constructed, it calls for this global, which is null, and sets it to a property that is later iterated (fixme on line 611).

Putting the variable in global scope before it is defined fixes the problem.


Version: master
Severity: normal

Details

Reference
bz51281

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 1:51 AM
bzimport added a project: SocialProfile.
bzimport set Reference to bz51281.

UserStats has had its own extension.json file (see T152865) since December 2017 (see Change-Id: Ib934825e7c086ae8b30f975a34edeb02355e1ba8) where $wgUserStatsPointValues is given a default value, so I guess this is fixed.