Page MenuHomePhabricator

[betalabs] BadMethodCallException for non-existing page
Closed, ResolvedPublic

Description

  1. Paste this url: https://en.wikipedia.beta.wmflabs.org/wiki/Talk:ET61
  2. The anon user will see (the page does not exist and cannot be found via search):

Screen Shot 2018-03-14 at 3.11.45 PM.png (418×1 px, 103 KB)

  1. Log in and the error page will be displayed:

Screen Shot 2018-03-14 at 3.17.31 PM.png (648×1 px, 291 KB)

WqgNoApEE4AAAC4VH6wAAAAO] /wiki/Talk:ET61 BadMethodCallException from line 48 of /srv/mediawiki/php-master/extensions/Thanks/includes/ThanksHooks.php: Call to a member function getUser() on a non-object (null)

Backtrace:

#0 /srv/mediawiki/php-master/extensions/Thanks/includes/ThanksHooks.php(397): ThanksHooks::insertThankLink(NULL, NULL, NULL, User)
#1 /srv/mediawiki/php-master/includes/Hooks.php(177): ThanksHooks::onLogEventsListLineEnding(LogEventsList, string, DatabaseLogEntry, array, array)
#2 /srv/mediawiki/php-master/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL)
#3 /srv/mediawiki/php-master/includes/logging/LogEventsList.php(422): Hooks::run(string, array)
#4 /srv/mediawiki/php-master/includes/logging/LogPager.php(365): LogEventsList->logLine(stdClass)
#5 /srv/mediawiki/php-master/includes/pager/IndexPager.php(445): LogPager->formatRow(stdClass)
#6 /srv/mediawiki/php-master/includes/logging/LogEventsList.php(657): IndexPager->getBody()
#7 /srv/mediawiki/php-master/includes/page/Article.php(1215): LogEventsList::showLogExtract(OutputPage, array, Title, string, array)
#8 /srv/mediawiki/php-master/includes/page/Article.php(530): Article->showMissingArticle()
#9 /srv/mediawiki/php-master/includes/actions/ViewAction.php(68): Article->view()
#10 /srv/mediawiki/php-master/includes/MediaWiki.php(500): ViewAction->show()
#11 /srv/mediawiki/php-master/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
#12 /srv/mediawiki/php-master/includes/MediaWiki.php(861): MediaWiki->performRequest()
#13 /srv/mediawiki/php-master/includes/MediaWiki.php(524): MediaWiki->main()
#14 /srv/mediawiki/php-master/index.php(42): MediaWiki->run()
#15 /srv/mediawiki/w/index.php(3): include(string)
#16 {main}