What is the problem?
Trying to access or submit Special:WatchlistLabels/edit&wll_id=<id> for a watchlist label <id> that is for another user, you get an exception:
[f7549075a6567b73f97af80f] /w/index.php?title=Special:WatchlistLabels/edit&wll_id=4 Error: Call to a member function getName() on null
Backtrace:
from /var/www/html/w/includes/Specials/SpecialWatchlistLabels.php(81)
#0 /var/www/html/w/includes/Specials/SpecialWatchlistLabels.php(58): MediaWiki\Specials\SpecialWatchlistLabels->showForm()
#1 /var/www/html/w/includes/SpecialPage/SpecialPage.php(711): MediaWiki\Specials\SpecialWatchlistLabels->execute()
#2 /var/www/html/w/includes/SpecialPage/SpecialPageFactory.php(1743): MediaWiki\SpecialPage\SpecialPage->run()
#3 /var/www/html/w/includes/Actions/ActionEntryPoint.php(499): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#4 /var/www/html/w/includes/Actions/ActionEntryPoint.php(143): MediaWiki\Actions\ActionEntryPoint->performRequest()
#5 /var/www/html/w/includes/MediaWikiEntryPoint.php(184): MediaWiki\Actions\ActionEntryPoint->execute()
#6 /var/www/html/w/index.php(44): MediaWiki\MediaWikiEntryPoint->run()
#7 {main}Steps to reproduce problem
- On any local test environment, add this to LocalSettings.php: $wgEnableWatchlistLabels = true;
- Login as one user and create a watchlist label (i.e. go to Special:WatchlistLabels/edit)
- Go to Special:WatchlistLabels, hover over the edit icon for the label you just created and copy the URL
- Login as another user, and go to the URL you copied in step 3
Expected behaviour: Given some message saying you don't have access.
Observed behaviour: Above exception.
Environment
Wiki(s): local docker MediaWiki 1.46.0-alpha (661d9f0) 07:37, 18 November 2025.