Page MenuHomePhabricator

Class 'Revision' not found on TimeMachine (MW 1.37)
Closed, ResolvedPublic

Description

Steps to reproduce:

  1. Go to Special:TimeMachine and set any date in the past
  2. Going to any other page gives an Internal error page
[17c968f31f8b071060cacbcb] /wiki/Main_Page Error: Class 'Revision' not found
from /srv/mediawiki/w/extensions/TimeMachine/SpecialTimeMachine.php(79)
#0 /srv/mediawiki/w/includes/HookContainer/HookContainer.php(338): SpecialTimeMachine::onBeforeInitialize(Title, NULL, OutputPage, User, WebRequest, MediaWiki)
#1 /srv/mediawiki/w/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#2 /srv/mediawiki/w/includes/HookContainer/HookRunner.php(939): MediaWiki\HookContainer\HookContainer->run(string, array)
#3 /srv/mediawiki/w/includes/MediaWiki.php(206): MediaWiki\HookContainer\HookRunner->onBeforeInitialize(Title, NULL, OutputPage, User, WebRequest, MediaWiki)
#4 /srv/mediawiki/w/includes/MediaWiki.php(925): MediaWiki->performRequest()
#5 /srv/mediawiki/w/includes/MediaWiki.php(559): MediaWiki->main()
#6 /srv/mediawiki/w/index.php(53): MediaWiki->run()
#7 /srv/mediawiki/w/index.php(46): wfIndexMain()
#8 {main}

MediaWiki: 1.37.0 (1612a85)
PHP: 7.4.25 (fpm-fcgi)
MariaDB: 10.4.21-MariaDB-1:10.4.21+maria~buster-log

Event Timeline

Change 742741 had a related patch set uploaded (by Jayprakash12345; author: Jayprakash12345):

[mediawiki/extensions/TimeMachine@master] Refactor the SpecialPage and Hook

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

Change 742741 merged by jenkins-bot:

[mediawiki/extensions/TimeMachine@master] Refactor the SpecialPage and Hook

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

Change 743171 had a related patch set uploaded (by Universal Omega; author: Jayprakash12345):

[mediawiki/extensions/TimeMachine@REL1_37] Refactor the SpecialPage and Hook

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

Change 743171 merged by jenkins-bot:

[mediawiki/extensions/TimeMachine@REL1_37] Refactor the SpecialPage and Hook

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