Page MenuHomePhabricator

attempt to view log for specific timestamp generates internal error
Closed, DuplicatePublicPRODUCTION ERROR


Error Details

MWException: Expected title, got null 
from line 650 of /srv/mediawiki/php-1.32.0-wmf.13/includes/logging/LogFormatter.php

2018-07-28 00:26:35 [W1u4OwpAAEUAAIFd6UIAAAAI] mw1274 enwiki 1.32.0-wmf.13 exception ERROR: [W1u4OwpAAEUAAIFd6UIAAAAI] /w/index.php?title=Special:Log&offset=20070819174422&limit=1&type=move&user=Physchim62&page=&tagfilter=&subtype=   MWException from line 650 of /srv/mediawiki/php-1.32.0-wmf.13/includes/logging/LogFormatter.php: Expected title, got null {"exception_id":"W1u4OwpAAEUAAIFd6UIAAAAI","exception_url":"/w/index.php?title=Special:Log&offset=20070819174422&limit=1&type=move&user=Physchim62&page=&tagfilter=&subtype=","caught_by":"mwe_handler"} 
[Exception MWException] (/srv/mediawiki/php-1.32.0-wmf.13/includes/logging/LogFormatter.php:650) Expected title, got null
  #0 /srv/mediawiki/php-1.32.0-wmf.13/includes/logging/MoveLogFormatter.php(52): LogFormatter->makePageLink(NULL)
  #1 /srv/mediawiki/php-1.32.0-wmf.13/includes/logging/LogFormatter.php(467): MoveLogFormatter->getMessageParameters()
  #2 /srv/mediawiki/php-1.32.0-wmf.13/includes/logging/LogFormatter.php(442): LogFormatter->getActionMessage()
  #3 /srv/mediawiki/php-1.32.0-wmf.13/includes/logging/LogEventsList.php(394): LogFormatter->getActionText()
  #4 /srv/mediawiki/php-1.32.0-wmf.13/includes/logging/LogPager.php(384): LogEventsList->logLine(stdClass)
  #5 /srv/mediawiki/php-1.32.0-wmf.13/includes/pager/IndexPager.php(445): LogPager->formatRow(stdClass)
  #6 /srv/mediawiki/php-1.32.0-wmf.13/includes/specials/SpecialLog.php(258): IndexPager->getBody()
  #7 /srv/mediawiki/php-1.32.0-wmf.13/includes/specials/SpecialLog.php(147): SpecialLog->show(FormOptions, array)
  #8 /srv/mediawiki/php-1.32.0-wmf.13/includes/specialpage/SpecialPage.php(566): SpecialLog->execute(NULL)

I get the following error message when I attempt to view a log entry:

Internal error
[W0ScCgpAIC0AADwyetQAAAAA] 2018-07-10 11:44:10: Fatal exception of type "MWException"

Here is the most specific URL I can get to generate this error:

Any attempt to view this offending log entry as part of a set of 50, for example, also coughs up an error (which is how I found this bug):

The offending log entry can be accessed through special:contributions as follows:

Also notice that clicking on the link "Talk:Allegations of French apartheid/Archive 01" throws an internal error as well, presumably because it's trying to access the logs.

If the doubled namespace in the target title is the problem, there are probably a lot of similar situations out there.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 10 2018, 11:30 AM
Graham87 updated the task description. (Show Details)Jul 10 2018, 11:42 AM

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

Graham87 updated the task description. (Show Details)Jul 10 2018, 11:48 AM

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

Thanks, added to description.

Stryn added a subscriber: Stryn.Jul 10 2018, 12:22 PM

Sounds like it's related to T199216

The log entry can be viewed using the API ( - the talk page moved to a title that is now invalid and the prefix of "Special:Badtitle/" in the log entry is similar to T190477. The move from the invalid title doesn't have that prefix and can be viewed in Special:Log ( and but it could also be the difference between an invalid title in "title" and one in "params".

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:08 PM