Page MenuHomePhabricator

Exception "Language::sprintfDate: The timestamp should have 14 characters" attempting to view enwiki logs for User:ThisIsaTest
Open, Needs TriagePublicPRODUCTION ERROR

Description

Error
message
2024-01-09 15:26:43.862973 [a42be3e4-8170-41eb-85b7-c5c7239843e9] mw2268 enwiki 1.42.0-wmf.12 exception ERROR: [a42be3e4-8170-41eb-85b7-c5c7239843e9] /wiki/Special:Log?page=User:ThisIsaTest   MWException: Language::sprintfDate: The timestamp  should have 14 characters {"exception_url":"/wiki/Special:Log?page=User:ThisIsaTest","reqId":"a42be3e4-8170-41eb-85b7-c5c7239843e9","caught_by":"entrypoint"} 
[Exception MWException] (/srv/mediawiki/php-1.42.0-wmf.12/includes/language/Language.php:912) Language::sprintfDate: The timestamp  should have 14 characters
  #0 /srv/mediawiki/php-1.42.0-wmf.12/includes/language/Language.php(2224): Language->sprintfDate(string, boolean)
  #1 /srv/mediawiki/php-1.42.0-wmf.12/includes/language/Language.php(2293): Language->internalUserTimeAndDate(string, boolean, MediaWiki\User\User, array)
  #2 /srv/mediawiki/php-1.42.0-wmf.12/includes/language/Language.php(3951): Language->userTimeAndDate(integer, MediaWiki\User\User)
  #3 /srv/mediawiki/php-1.42.0-wmf.12/includes/logging/BlockLogFormatter.php(70): Language->translateBlockExpiry(string, MediaWiki\User\User, integer)
  #4 /srv/mediawiki/php-1.42.0-wmf.12/includes/logging/LogFormatter.php(495): BlockLogFormatter->getMessageParameters()
  #5 /srv/mediawiki/php-1.42.0-wmf.12/includes/logging/LogFormatter.php(470): LogFormatter->getActionMessage()
  #6 /srv/mediawiki/php-1.42.0-wmf.12/includes/logging/LogEventsList.php(315): LogFormatter->getActionText()
  #7 /srv/mediawiki/php-1.42.0-wmf.12/includes/logging/LogPager.php(452): LogEventsList->logLine(stdClass)
  #8 /srv/mediawiki/php-1.42.0-wmf.12/includes/pager/ReverseChronologicalPager.php(134): MediaWiki\Pager\LogPager->formatRow(stdClass)
  #9 /srv/mediawiki/php-1.42.0-wmf.12/includes/pager/IndexPager.php(594): MediaWiki\Pager\ReverseChronologicalPager->getRow(stdClass)
  #10 /srv/mediawiki/php-1.42.0-wmf.12/includes/specials/SpecialLog.php(313): MediaWiki\Pager\IndexPager->getBody()
  #11 /srv/mediawiki/php-1.42.0-wmf.12/includes/specials/SpecialLog.php(192): MediaWiki\Specials\SpecialLog->show(MediaWiki\Html\FormOptions, array)
  #12 /srv/mediawiki/php-1.42.0-wmf.12/includes/specialpage/SpecialPage.php(727): MediaWiki\Specials\SpecialLog->execute(NULL)
  #13 /srv/mediawiki/php-1.42.0-wmf.12/includes/specialpage/SpecialPageFactory.php(1652): MediaWiki\SpecialPage\SpecialPage->run(NULL)
  #14 /srv/mediawiki/php-1.42.0-wmf.12/includes/MediaWiki.php(359): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
  #15 /srv/mediawiki/php-1.42.0-wmf.12/includes/MediaWiki.php(954): MediaWiki->performRequest()
  #16 /srv/mediawiki/php-1.42.0-wmf.12/includes/MediaWiki.php(607): MediaWiki->main()
  #17 /srv/mediawiki/php-1.42.0-wmf.12/index.php(50): MediaWiki->run()
  #18 /srv/mediawiki/php-1.42.0-wmf.12/index.php(46): wfIndexMain()
  #19 /srv/mediawiki/w/index.php(3): require(string)
  #20 {main}
Impact

Cannot view public logs for this user as a non-admin. Depending on what caused this error, this may or may not have the potential to also affect other users’ logs.

Notes

While I cannot be personally sure, it is possible that this error only started occurring after a log-deletion for this (test) user by a sysop earlier on today. I’ve confirmed onwiki that I’m not the only one experiencing this error.

Details

Request URL
https://en.wikipedia.org/wiki/Special:Log?page=User:ThisIsaTest

Event Timeline

Aklapper renamed this task from MWException when attempting to view enwiki logs for User:ThisIsaTest to Exception "Language::sprintfDate: The timestamp should have 14 characters" attempting to view enwiki logs for User:ThisIsaTest.Jan 9 2024, 4:06 PM
Aklapper updated the task description. (Show Details)
Aklapper updated the task description. (Show Details)
Umherirrender subscribed.

When searching for another log type or with lower limits it works,

only https://en.wikipedia.org/w/index.php?title=Special:Log&logid=108404599 is affected

API says someone has tested with a negative (float) duration and that cause now trouble to show as expiry time

{
    "logid": 108404599,
    "pageid": 13223711,
    "logpage": 13223711,
    "params": {
        "duration": "-0.000000000000000001 seconds",
        "flags": [
            "nocreate",
            "noautoblock"
        ],
        "sitewide": ""
    }
},
brennen subscribed.

Noting this still shows up in 1.43.0-wmf.9.