Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matomo extension calls a function deprecated in MediaWiki 1.36 #39

Closed
felipeforte opened this issue Jun 17, 2022 · 1 comment
Closed

Comments

@felipeforte
Copy link
Contributor

felipeforte commented Jun 17, 2022

When setting the parameter $wgMatomoTrackUsernames = true;, MediaWiki reports:

Deprecated: Use of User::isLoggedIn was deprecated in MediaWiki 1.36. [Called from MediaWiki\Extension\Matomo\Hooks::addMatomo in /mediawiki/extensions/Matomo/src/Hooks.php at line 173] in /mediawiki/includes/debug/MWDebug.php on line 375

MediaWiki 1.36's Release notes mention this:

The confusingly-named User->isLoggedIn() method has been deprecated in favour of the method it wraps, User->isRegistered().

I confirmed that renaming the functions fixes the issue

@Seb35
Copy link
Collaborator

Seb35 commented Oct 26, 2023

Fixed by #40. Thanks @felipeforte!

@Seb35 Seb35 closed this as completed Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants