Page MenuHomePhabricator

Wikimedia\Timestamp\TimestampException: Wikimedia\Timestamp\ConvertibleTimestamp::setTimestamp: Invalid timestamp - 2021101515310101000000
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
  • service.version: 1.45.0-wmf.15
  • timestamp: 2025-08-21T13:15:31.882Z
  • labels.phpversion: 8.1.33
  • trace.id: d37d87f7-982d-4d19-b765-3bb906cf9015
  • Find trace.id in Logstash
labels.normalized_message
[{reqId}] {exception_url}   Wikimedia\Timestamp\TimestampException: Wikimedia\Timestamp\ConvertibleTimestamp::setTimestamp: Invalid timestamp - 2021101515310101000000
FrameLocationCall
from/srv/mediawiki/php-1.45.0-wmf.15/vendor/wikimedia/timestamp/src/ConvertibleTimestamp.php(349)
#0/srv/mediawiki/php-1.45.0-wmf.15/vendor/wikimedia/timestamp/src/ConvertibleTimestamp.php(261)Wikimedia\Timestamp\ConvertibleTimestamp->setTimestamp(string)
#1/srv/mediawiki/php-1.45.0-wmf.15/includes/utils/MWTimestamp.php(55)Wikimedia\Timestamp\ConvertibleTimestamp->__construct(string)
#2/srv/mediawiki/php-1.45.0-wmf.15/includes/pager/ReverseChronologicalPager.php(295)MediaWiki\Utils\MWTimestamp::getInstance(string)
#3/srv/mediawiki/php-1.45.0-wmf.15/includes/pager/ReverseChronologicalPager.php(209)MediaWiki\Pager\ReverseChronologicalPager::getOffsetDate(int, int, int)
#4/srv/mediawiki/php-1.45.0-wmf.15/includes/actions/pagers/HistoryPager.php(138)MediaWiki\Pager\ReverseChronologicalPager->getDateCond(int, int, int)
#5/srv/mediawiki/php-1.45.0-wmf.15/includes/actions/HistoryAction.php(337)MediaWiki\Pager\HistoryPager->__construct(MediaWiki\Actions\HistoryAction, int, int, int, null, bool, array, MediaWiki\Page\LinkBatchFactory, MediaWiki\Watchlist\WatchlistManager, MediaWiki\CommentFormatter\CommentFormatter, MediaWiki\HookContainer\HookContainer, MediaWiki\ChangeTags\ChangeTagsStore)
#6/srv/mediawiki/php-1.45.0-wmf.15/includes/actions/FormlessAction.php(50)MediaWiki\Actions\HistoryAction->onView()
#7/srv/mediawiki/php-1.45.0-wmf.15/includes/actions/ActionEntryPoint.php(728)MediaWiki\Actions\FormlessAction->show()
#8/srv/mediawiki/php-1.45.0-wmf.15/includes/actions/ActionEntryPoint.php(505)MediaWiki\Actions\ActionEntryPoint->performAction(MediaWiki\Page\Article, MediaWiki\Title\Title)
#9/srv/mediawiki/php-1.45.0-wmf.15/includes/actions/ActionEntryPoint.php(143)MediaWiki\Actions\ActionEntryPoint->performRequest()
#10/srv/mediawiki/php-1.45.0-wmf.15/includes/MediaWikiEntryPoint.php(198)MediaWiki\Actions\ActionEntryPoint->execute()
#11/srv/mediawiki/php-1.45.0-wmf.15/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#12/srv/mediawiki/w/index.php(3)require(string)
#13{main}
Impact
Notes

Another one from Special:Log (Find trace.id in Logstash):

url: https://meta.wikimedia.org/wiki/Special:Log?issubmitted=1&page=%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%3AXXBlackburnXx&subtype=block&tagfilter=%E8%99%90%E5%BE%85%E3%83%95%E3%82%A3%E3%83%AB%E3%82%BF%E3%83%BC-%E6%9D%A1%E4%BB%B6-%E5%88%B6%E9%99%90&type=block&user=%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%3AXXBlackburnXx&wpFormIdentifier=logeventslist&wpdate=9999-12-31
trace:

from /srv/mediawiki/php-1.45.0-wmf.15/vendor/wikimedia/timestamp/src/ConvertibleTimestamp.php(349)
#0 /srv/mediawiki/php-1.45.0-wmf.15/vendor/wikimedia/timestamp/src/ConvertibleTimestamp.php(261): Wikimedia\Timestamp\ConvertibleTimestamp->setTimestamp(string)
#1 /srv/mediawiki/php-1.45.0-wmf.15/includes/utils/MWTimestamp.php(55): Wikimedia\Timestamp\ConvertibleTimestamp->__construct(string)
#2 /srv/mediawiki/php-1.45.0-wmf.15/includes/pager/ReverseChronologicalPager.php(295): MediaWiki\Utils\MWTimestamp::getInstance(string)
#3 /srv/mediawiki/php-1.45.0-wmf.15/includes/pager/ReverseChronologicalPager.php(209): MediaWiki\Pager\ReverseChronologicalPager::getOffsetDate(int, int, int)
#4 /srv/mediawiki/php-1.45.0-wmf.15/includes/logging/LogPager.php(136): MediaWiki\Pager\ReverseChronologicalPager->getDateCond(int, int, int)
#5 /srv/mediawiki/php-1.45.0-wmf.15/includes/specials/SpecialLog.php(371): MediaWiki\Pager\LogPager->__construct(MediaWiki\Logging\LogEventsList, string, string, array, bool, array, int, int, int, string, string, string, MediaWiki\Page\LinkBatchFactory, MediaWiki\User\ActorStore, MediaWiki\Logging\LogFormatterFactory, bool)
#6 /srv/mediawiki/php-1.45.0-wmf.15/includes/specials/SpecialLog.php(220): MediaWiki\Specials\SpecialLog->show(MediaWiki\Html\FormOptions, array)
#7 /srv/mediawiki/php-1.45.0-wmf.15/includes/specialpage/SpecialPage.php(725): MediaWiki\Specials\SpecialLog->execute(null)
#8 /srv/mediawiki/php-1.45.0-wmf.15/includes/specialpage/SpecialPageFactory.php(1732): MediaWiki\SpecialPage\SpecialPage->run(null)
#9 /srv/mediawiki/php-1.45.0-wmf.15/includes/actions/ActionEntryPoint.php(499): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#10 /srv/mediawiki/php-1.45.0-wmf.15/includes/actions/ActionEntryPoint.php(143): MediaWiki\Actions\ActionEntryPoint->performRequest()
#11 /srv/mediawiki/php-1.45.0-wmf.15/includes/MediaWikiEntryPoint.php(198): MediaWiki\Actions\ActionEntryPoint->execute()
#12 /srv/mediawiki/php-1.45.0-wmf.15/index.php(58): MediaWiki\MediaWikiEntryPoint->run()
#13 /srv/mediawiki/w/index.php(3): require(string)
#14 {main}

Details

Request URL
https://en.wikipedia.org/w/index.php?action=history&title=*&year=*
Related Changes in Gerrit:

Event Timeline

Error
  • mwversion: 1.45.0-wmf.21
  • timestamp: 2025-10-08T09:45:42.665Z
  • phpversion: 8.1.33
  • reqId: cdc000df-7f35-4d3e-b25f-64ce0db1a84e
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   Wikimedia\Timestamp\TimestampException: Wikimedia\Timestamp\ConvertibleTimestamp::setTimestamp: Invalid timestamp - 201231201000000
FrameLocationCall
from/srv/mediawiki/php-1.45.0-wmf.21/vendor/wikimedia/timestamp/src/ConvertibleTimestamp.php(321)
#0/srv/mediawiki/php-1.45.0-wmf.21/vendor/wikimedia/timestamp/src/ConvertibleTimestamp.php(231)Wikimedia\Timestamp\ConvertibleTimestamp->setTimestamp(string)
#1/srv/mediawiki/php-1.45.0-wmf.21/includes/utils/MWTimestamp.php(55)Wikimedia\Timestamp\ConvertibleTimestamp->__construct(string)
#2/srv/mediawiki/php-1.45.0-wmf.21/includes/pager/ReverseChronologicalPager.php(295)MediaWiki\Utils\MWTimestamp::getInstance(string)
#3/srv/mediawiki/php-1.45.0-wmf.21/includes/pager/ReverseChronologicalPager.php(209)MediaWiki\Pager\ReverseChronologicalPager::getOffsetDate(int, int, int)
#4/srv/mediawiki/php-1.45.0-wmf.21/includes/actions/pagers/HistoryPager.php(138)MediaWiki\Pager\ReverseChronologicalPager->getDateCond(int, int, int)
#5/srv/mediawiki/php-1.45.0-wmf.21/includes/actions/HistoryAction.php(337)MediaWiki\Pager\HistoryPager->__construct(MediaWiki\Actions\HistoryAction, int, int, int, string, bool, array, MediaWiki\Page\LinkBatchFactory, MediaWiki\Watchlist\WatchlistManager, MediaWiki\CommentFormatter\CommentFormatter, MediaWiki\HookContainer\HookContainer, MediaWiki\ChangeTags\ChangeTagsStore)
#6/srv/mediawiki/php-1.45.0-wmf.21/includes/actions/FormlessAction.php(50)MediaWiki\Actions\HistoryAction->onView()
#7/srv/mediawiki/php-1.45.0-wmf.21/includes/actions/ActionEntryPoint.php(728)MediaWiki\Actions\FormlessAction->show()
#8/srv/mediawiki/php-1.45.0-wmf.21/includes/actions/ActionEntryPoint.php(505)MediaWiki\Actions\ActionEntryPoint->performAction(MediaWiki\Page\Article, MediaWiki\Title\Title)
#9/srv/mediawiki/php-1.45.0-wmf.21/includes/actions/ActionEntryPoint.php(143)MediaWiki\Actions\ActionEntryPoint->performRequest()
#10/srv/mediawiki/php-1.45.0-wmf.21/includes/MediaWikiEntryPoint.php(198)MediaWiki\Actions\ActionEntryPoint->execute()
#11/srv/mediawiki/php-1.45.0-wmf.21/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#12/srv/mediawiki/w/index.php(3)require(string)
#13{main}
Impact
Notes

Change #1206388 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/core@master] pager: Clamp date overflow to avoid invalid offset timestamp

https://gerrit.wikimedia.org/r/1206388

Change #1206388 merged by jenkins-bot:

[mediawiki/core@master] Pager: Clamp date overflow to avoid invalid offset timestamp

https://gerrit.wikimedia.org/r/1206388