Page MenuHomePhabricator

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

Description

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)
Notes

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:
https://en.wikipedia.org/w/index.php?title=Special:Log&offset=20070819174422&limit=1&type=move&user=Physchim62&page=&tagfilter=&subtype=

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):
https://en.wikipedia.org/w/index.php?title=Special:Log&offset=20070822145846&type=move&user=Physchim62&page=&tagfilter=&subtype=

The offending log entry can be accessed through special:contributions as follows:
https://en.wikipedia.org/w/index.php?title=Talk:Social_situation_in_the_French_suburbs/Archive_1&diff=prev&oldid=152281672

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 (https://en.wikipedia.org/w/api.php?action=query&list=logevents&lestart=20070819174310&letitle=Talk:Allegations%20of%20French%20apartheid/Archive%2001) - 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 (https://en.wikipedia.org/w/api.php?action=query&list=logevents&lestart=20070819174422&leuser=Physchim62&lelimit=1 and https://en.wikipedia.org/w/index.php?title=Special:Log/Physchim62&offset=20070819174436&limit=1&type=&user=Physchim62) but it could also be the difference between an invalid title in "title" and one in "params".