Jump to content

Topic on Extension talk:Matomo

deprecated $wgUser message

4
Summary by Seb35

Fixed in version 5.0.0 available for MediaWiki 1.34+.

J2w (talkcontribs)

Since MediaWiki update from 1.36.2 to 1.37.1 I see on top of my Wiki the following debug messages caused by Matomo extension:

Use of $wgUser was deprecated in MediaWiki 1.35. [Called from MatomoHooks::MatomoSetup in ***/extensions/matomo/Matomo.hooks.php at line 23] in ***/includes/debug/MWDebug.php on line 375


$wgUser reassignment detected [Called from MatomoHooks::MatomoSetup in ***/extensions/matomo/Matomo.hooks.php at line 23] in ***/includes/debug/MWDebug.php on line 375


Matomo ext. version 4.01


Any hint how to avoid or is an extsntion updated planned?

Thanks!

Gruniversal (talkcontribs)

see: github.com/DaSchTour/matomo-mediawiki-extension/issues/38

Tenbergen (talkcontribs)

I added a pull request to the git repository. The issue is in line 173 of the matomo.hooks / hooks.php (file name depends if you install from composer or git). isLoggedIn() is deprecated and ! isAnon() needs to be used. After i did I realized there is another pull request in there already for this. So the trick would be to get the owner to merge one or the other or to come up with their preferred solution and then also update the composer. Depending if that's what should be used to install this. The install instructions really don't mention composer for this, so I wonder where that repository came from.

Seb35 (talkcontribs)

This is fixed in version 5.0.0 available for MediaWiki 1.34+.