I noticed this on my local test wiki and then reproduced it in production at https://test.wikipedia.org/wiki/Special:Log . Steps to reproduce:
- A user edits
- Block that user
- Go to Special:BlockList
- Unblock the autoblock
- Go to Special:Log
It probably affects everything that shows log entries.
[4377a5c9-59b7-4697-a66b-d813f1b8c1c3] /wiki/Special:Log Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $dbKey: must be a valid title: #20411
Backtrace:
from /srv/mediawiki/php-1.37.0-wmf.4/vendor/wikimedia/assert/src/Assert.php(72)
#0 /srv/mediawiki/php-1.37.0-wmf.4/includes/page/PageReferenceValue.php(75): Wikimedia\Assert\Assert::parameter(boolean, string, string)
#1 /srv/mediawiki/php-1.37.0-wmf.4/includes/page/PageIdentityValue.php(56): MediaWiki\Page\PageReferenceValue->__construct(integer, string, boolean)
#2 /srv/mediawiki/php-1.37.0-wmf.4/includes/cache/LinkBatch.php(275): MediaWiki\Page\PageIdentityValue->__construct(integer, integer, string, boolean)
#3 /srv/mediawiki/php-1.37.0-wmf.4/includes/cache/LinkBatch.php(214): LinkBatch->addResultToCache(LinkCache, Wikimedia\Rdbms\ResultWrapper)
#4 /srv/mediawiki/php-1.37.0-wmf.4/includes/cache/LinkBatch.php(186): LinkBatch->executeInto(LinkCache)
#5 /srv/mediawiki/php-1.37.0-wmf.4/includes/logging/LogPager.php(433): LinkBatch->execute()
#6 /srv/mediawiki/php-1.37.0-wmf.4/includes/pager/IndexPager.php(599): LogPager->getStartBody()
#7 /srv/mediawiki/php-1.37.0-wmf.4/includes/specials/SpecialLog.php(274): IndexPager->getBody()
#8 /srv/mediawiki/php-1.37.0-wmf.4/includes/specials/SpecialLog.php(156): SpecialLog->show(FormOptions, array)
#9 /srv/mediawiki/php-1.37.0-wmf.4/includes/specialpage/SpecialPage.php(646): SpecialLog->execute(NULL)
#10 /srv/mediawiki/php-1.37.0-wmf.4/includes/specialpage/SpecialPageFactory.php(1396): SpecialPage->run(NULL)
#11 /srv/mediawiki/php-1.37.0-wmf.4/includes/MediaWiki.php(313): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#12 /srv/mediawiki/php-1.37.0-wmf.4/includes/MediaWiki.php(916): MediaWiki->performRequest()
#13 /srv/mediawiki/php-1.37.0-wmf.4/includes/MediaWiki.php(550): MediaWiki->main()
#14 /srv/mediawiki/php-1.37.0-wmf.4/index.php(53): MediaWiki->run()
#15 /srv/mediawiki/php-1.37.0-wmf.4/index.php(46): wfIndexMain()
#16 /srv/mediawiki/w/index.php(3): require(string)
#17 {main}The invalid title is in log_namespace/log_title so is added to LinkBatch at LogPager.php:425.