Steps to Reproduce:
- Install MediaWiki using the Docker development environment.
- Install CheckUser and enable Special:Investigate
- Create another user and make an edit with that user
- Perform an Investigation with that user and go to the "Compare" tab
Actual Results:
[4e91b5b5deed23329228d302] /index.php?title=Special:Investigate/Compare&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1OTA1NDUyMDgsImRhdGEiOiIzcTk1Qjg1ZGdrMHBYT3VSN3pkVGhFN012N0JwdDFSODEwMytFWGZwMENpNFdycmtubkZPdzg4PSJ9.W-FojMyeggG-7Kb56l-axzWav784qZNWodccoFWlpxY TypeError from line 34 of /var/www/html/extensions/CheckUser/src/CompareService.php: Argument 1 passed to MediaWiki\CheckUser\CompareService::getTotalEditsFromIp() must be of the type string, null given, called in /var/www/html/extensions/CheckUser/src/ComparePager.php on line 171 Backtrace: #0 /var/www/html/extensions/CheckUser/src/ComparePager.php(171): MediaWiki\CheckUser\CompareService->getTotalEditsFromIp(NULL) #1 /var/www/html/includes/pager/TablePager.php(195): MediaWiki\CheckUser\ComparePager->formatValue(string, NULL) #2 /var/www/html/includes/pager/IndexPager.php(585): TablePager->formatRow(stdClass) #3 /var/www/html/includes/pager/TablePager.php(106): IndexPager->getBody() #4 /var/www/html/extensions/CheckUser/src/SpecialInvestigate.php(265): TablePager->getFullOutput() #5 /var/www/html/extensions/CheckUser/src/SpecialInvestigate.php(94): MediaWiki\CheckUser\SpecialInvestigate->addTabContent(string) #6 /var/www/html/includes/specialpage/SpecialPage.php(582): MediaWiki\CheckUser\SpecialInvestigate->execute(string) #7 /var/www/html/includes/specialpage/SpecialPageFactory.php(623): SpecialPage->run(string) #8 /var/www/html/includes/MediaWiki.php(299): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext) #9 /var/www/html/includes/MediaWiki.php(978): MediaWiki->performRequest() #10 /var/www/html/includes/MediaWiki.php(535): MediaWiki->main() #11 /var/www/html/index.php(47): MediaWiki->run() #12 {main}
Expected Results:
The "Compare" results.
Technical Details