List of steps to reproduce:
- add $wgEchoWatchlistNotifications = true; to the LocalSettings.php to get watchlist notifications
- enable web notifications for "Edit to watched page" in your notification preferences
- add a page to your watchlist
- have another user (or you on another account) delete the page
- visit Special:Notifications
What happens?:
an Internal error is displayed
What should have happened instead?:
the Special:Notifications page should be displayed
Software version, other information, etc:
MediaWiki Version: 1.35.1 (889d124)
Echo Version: – (rECHOfd6a33e7b8f2)
error on page Special:Notifications
EventPresentationModel.php: Argument 1 passed to EchoEventPresentationModel::getTruncatedTitleText() must be an instance of Title, null given
/Special:Notifications TypeError from line 564 of <server>/extensions/Echo/includes/formatters/EventPresentationModel.php: Argument 1 passed to EchoEventPresentationModel::getTruncatedTitleText() must be an instance of Title, null given, called in <server>/extensions/Echo/includes/formatters/WatchlistChangePresentationModel.php on line 31
Backtrace:
#0 <server>/extensions/Echo/includes/formatters/WatchlistChangePresentationModel.php(31): EchoEventPresentationModel->getTruncatedTitleText()
#1 <server>/extensions/Echo/includes/formatters/SpecialNotificationsFormatter.php(45): EchoWatchlistChangePresentationModel->getHeaderMessage()
#2 <server>/extensions/Echo/includes/formatters/EchoEventFormatter.php(72): SpecialNotificationsFormatter->formatModel()
#3 <server>/extensions/Echo/includes/DataOutputFormatter.php(189): EchoEventFormatter->format()
#4 <server>/extensions/Echo/includes/DataOutputFormatter.php(149): EchoDataOutputFormatter::formatNotification()
#5 <server>/extensions/Echo/includes/special/SpecialNotifications.php(61): EchoDataOutputFormatter::formatOutput()
#6 <server>/includes/specialpage/SpecialPage.php(600): SpecialNotifications->execute()
#7 <server>/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run()
#8 <server>/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#9 <server>/includes/MediaWiki.php(940): MediaWiki->performRequest()
#10 <server>/includes/MediaWiki.php(543): MediaWiki->main()
#11 <server>/index.php(53): MediaWiki->run()
#12 <server>/index.php(46): wfIndexMain()
#13 {main}