Page MenuHomePhabricator

Unable to view edit page or log for certain pages ("MWException: Expected title, got null" from LogFormatter.php)
Closed, DuplicatePublic

Description

On English Wikipedia, the redlinked page Talk:C Real is unreachable and displays an error. This might have to do with c: being a shortcut to Commons (not to be confused with the C:\ drive on the computer).

https://en.wikipedia.org/w/index.php?title=Talk:C_Real&action=edit&redlink=1

2018-07-19 07:27:58 [W1A9fQpAICwAAJKjYHUAAABR] mw1323 enwiki 1.32.0-wmf.12 exception ERROR: [W1A9fQpAICwAAJKjYHUAAABR] /w/index.php?title=Talk:C_Real&action=edit&redlink=1   MWException from line 650 of /srv/mediawiki/php-1.32.0-wmf.12/includes/logging/LogFormatter.php: Expected title, got null {"exception_id":"W1A9fQpAICwAAJKjYHUAAABR","exception_url":"/w/index.php?title=Talk:C_Real&action=edit&redlink=1","caught_by":"mwe_handler"} 
[Exception MWException] (/srv/mediawiki/php-1.32.0-wmf.12/includes/logging/LogFormatter.php:650) Expected title, got null
  #0 /srv/mediawiki/php-1.32.0-wmf.12/includes/logging/MoveLogFormatter.php(52): LogFormatter->makePageLink(NULL)
  #1 /srv/mediawiki/php-1.32.0-wmf.12/includes/logging/LogFormatter.php(467): MoveLogFormatter->getMessageParameters()
  #2 /srv/mediawiki/php-1.32.0-wmf.12/includes/logging/LogFormatter.php(442): LogFormatter->getActionMessage()
  #3 /srv/mediawiki/php-1.32.0-wmf.12/includes/logging/LogEventsList.php(389): LogFormatter->getActionText()
  #4 /srv/mediawiki/php-1.32.0-wmf.12/includes/logging/LogPager.php(378): LogEventsList->logLine(stdClass)
  #5 /srv/mediawiki/php-1.32.0-wmf.12/includes/pager/IndexPager.php(445): LogPager->formatRow(stdClass)
  #6 /srv/mediawiki/php-1.32.0-wmf.12/includes/logging/LogEventsList.php(657): IndexPager->getBody()
  #7 /srv/mediawiki/php-1.32.0-wmf.12/includes/EditPage.php(2603): LogEventsList::showLogExtract(OutputPage, array, Title, string, array)
  #8 /srv/mediawiki/php-1.32.0-wmf.12/includes/EditPage.php(652): EditPage->showIntro()

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 22 2018, 11:33 PM
gh87 updated the task description. (Show Details)Mar 23 2018, 2:30 AM
Aklapper renamed this task from Talk:C Real unreachable on Wikipedia to [[Talk:C Real]] unreachable on English Wikipedia.Mar 23 2018, 11:13 AM

Please always include the actual error in bug reports. Thanks!

WrThOApAICEAACKfA44AAACO

exception.file	       	/srv/mediawiki/php-1.31.0-wmf.26/includes/logging/LogFormatter.php:644
exception.message	       	Expected title, got null
exception.trace
#0 /srv/mediawiki/php-1.31.0-wmf.26/includes/logging/MoveLogFormatter.php(52): LogFormatter->makePageLink(NULL)
#1 /srv/mediawiki/php-1.31.0-wmf.26/includes/logging/LogFormatter.php(461): MoveLogFormatter->getMessageParameters()
#2 /srv/mediawiki/php-1.31.0-wmf.26/includes/logging/LogFormatter.php(436): LogFormatter->getActionMessage()
#3 /srv/mediawiki/php-1.31.0-wmf.26/includes/logging/LogEventsList.php(389): LogFormatter->getActionText()
#4 /srv/mediawiki/php-1.31.0-wmf.26/includes/logging/LogPager.php(365): LogEventsList->logLine(stdClass)
#5 /srv/mediawiki/php-1.31.0-wmf.26/includes/pager/IndexPager.php(445): LogPager->formatRow(stdClass)
#6 /srv/mediawiki/php-1.31.0-wmf.26/includes/logging/LogEventsList.php(657): IndexPager->getBody()
#7 /srv/mediawiki/php-1.31.0-wmf.26/includes/EditPage.php(2572): LogEventsList::showLogExtract(OutputPage, array, Title, string, array)
#8 /srv/mediawiki/php-1.31.0-wmf.26/includes/EditPage.php(642): EditPage->showIntro()
#9 /srv/mediawiki/php-1.31.0-wmf.26/includes/actions/EditAction.php(60): EditPage->edit()
#10 /srv/mediawiki/php-1.31.0-wmf.26/includes/MediaWiki.php(500): EditAction->show()
#11 /srv/mediawiki/php-1.31.0-wmf.26/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
#12 /srv/mediawiki/php-1.31.0-wmf.26/includes/MediaWiki.php(861): MediaWiki->performRequest()
#13 /srv/mediawiki/php-1.31.0-wmf.26/includes/MediaWiki.php(524): MediaWiki->main()
#14 /srv/mediawiki/php-1.31.0-wmf.26/index.php(42): MediaWiki->run()
#15 /srv/mediawiki/w/index.php(3): include(string)
#16 {main}
Aklapper renamed this task from [[Talk:C Real]] unreachable on English Wikipedia to [[Talk:C Real]] unreachable on English Wikipedia: Error: "Expected title, got null".Mar 23 2018, 11:16 AM
Aklapper updated the task description. (Show Details)
gh87 renamed this task from [[Talk:C Real]] unreachable on English Wikipedia: Error: "Expected title, got null" to "Talk:C Real" unreachable on English Wikipedia: Error: "Expected title, got null".Mar 23 2018, 8:52 PM
Pppery added a subscriber: Pppery.Mar 24 2018, 2:38 PM

Note: https://en.wikipedia.org/w/index.php?title=Talk:C_Real loads just fine when logged out and only errors when logged in, whereas explicitly trying to edit the page by going to https://en.wikipedia.org/w/index.php?title=Talk:C_Real&action=edit errors regardless of whether you are logged in or not.

Krinkle triaged this task as High priority.Jul 19 2018, 7:25 AM
Krinkle raised the priority of this task from High to Unbreak Now!.
Krinkle updated the task description. (Show Details)
Krinkle added a subscriber: Krinkle.

It shows a fatal error both when logged-in and when logged-out for me. No apparent work-around.

Restricted Application added subscribers: Liuxinyu970226, TerraCodes. · View Herald TranscriptJul 19 2018, 7:27 AM
Krinkle renamed this task from "Talk:C Real" unreachable on English Wikipedia: Error: "Expected title, got null" to Page "Talk:C Real" unreachable on English Wikipedia: Error: "Expected title, got null".Jul 19 2018, 7:28 AM
Krinkle renamed this task from Page "Talk:C Real" unreachable on English Wikipedia: Error: "Expected title, got null" to Unable to view redlink "Talk:C Real" on English Wikipedia (MWException: "Expected title, got null").
Krinkle updated the task description. (Show Details)
Krinkle added a project: Editing-team.
Krinkle added a project: Editing-team.

In this case, and in T185049 and T199210, the error occurs when attempting to view a log entry which the API shows as having "target_title": "Special:Badtitle" (or equivalent) followed by "Talk:" and a title with an interwiki or namespace prefix. (https://en.wikipedia.org/w/api.php?action=query&list=logevents&letitle=Talk:C_Real&lestart=20130307183225)

Krinkle renamed this task from Unable to view redlink "Talk:C Real" on English Wikipedia (MWException: "Expected title, got null") to Unable to view edit page for certain pages ("MWException: Expected title, got null" from LogFormatter.php).Jul 28 2018, 12:24 AM
Pppery renamed this task from Unable to view edit page for certain pages ("MWException: Expected title, got null" from LogFormatter.php) to Unable to view edit page or move log for certain pages ("MWException: Expected title, got null" from LogFormatter.php).Jul 28 2018, 12:31 AM
Krinkle renamed this task from Unable to view edit page or move log for certain pages ("MWException: Expected title, got null" from LogFormatter.php) to Unable to view edit page or log for certain pages ("MWException: Expected title, got null" from LogFormatter.php).Jul 28 2018, 8:27 PM
Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptJul 28 2018, 8:28 PM