Page MenuHomePhabricator

Lockdown fails on 1.30 with note about deprecation
Closed, ResolvedPublic

Description

From the support desk:

I'm trying to force users to login to view special pages and recent changes. I added the Lockdown extension directory to /w/extensions/Lockdown. I then added these lines to my LocalSettings.php file.

require_once "$IP/extensions/Lockdown/Lockdown.php";
$wgSpecialPageLockdown['Export'] = array('user');
$wgSpecialPageLockdown['Recentchanges'] = array('user');
$wgSpecialPageLockdown['Specialpages'] = array('user');
$wgSpecialPageLockdown['Recentchangeslinked'] = array('user');

When I go to my wiki and click special pages I get a "500 - Internal server error". When I log in I'm able to go to special pages. I checked my error log and it says

"[error] [dddf1fc1ccccd7df34f2ec09] /index.php?title=Special:SpecialPages ErrorException from line 309 of C:\inetpub\wwwroot\TestWiki\w\includes\debug\MWDebug.php: PHP Deprecated: Use of User::makeGroupLinkWiki was deprecated in MediaWiki 1.29. [Called from array_map in (internal function)]"

This did work in MediaWiki 1.26.

I'm now using 1.30 that was a fresh install not an upgrade. I'm also using PHP 7 and MySQL 5.7.

See also:

Event Timeline

Change 404779 had a related patch set uploaded (by MarkAHershberger; owner: MarkAHershberger):
[mediawiki/extensions/Lockdown@master] Fix Lockdown deprecation notice

https://gerrit.wikimedia.org/r/404779

Change 404779 merged by jenkins-bot:
[mediawiki/extensions/Lockdown@master] Fix Lockdown deprecation notice

https://gerrit.wikimedia.org/r/404779

Krinkle added a subscriber: Krinkle.

Un-tagging given this is not an issue in core or a bundled extension.