When trying to unapprove a version which seems to be watched through Category Watch, I get this error :
[ZN98yvBbaMvLEWfjFhArygAAAAs] /wiki/index.php?title=RDS_-_Remote_Desktop_Services&action=unapprove Error: Call to undefined method WikiPage::getRevision()
Backtrace:
from /app/htdocs/wiki/extensions/CategoryWatch/src/Hook.php(238)
0 /app/htdocs/wiki/includes/HookContainer/HookContainer.php(338): CategoryWatch\Hook::onCategoryAfterPageRemoved()
1 /app/htdocs/wiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
2 /app/htdocs/wiki/includes/HookContainer/HookRunner.php(1067): MediaWiki\HookContainer\HookContainer->run()
3 /app/htdocs/wiki/includes/page/WikiPage.php(3099): MediaWiki\HookContainer\HookRunner->onCategoryAfterPageRemoved()
4 /app/htdocs/wiki/includes/deferred/LinksUpdate/CategoryLinksTable.php(311): WikiPage->updateCategoryCounts()
5 /app/htdocs/wiki/includes/deferred/LinksUpdate/CategoryLinksTable.php(277): MediaWiki\Deferred\LinksUpdate\CategoryLinksTable->updateCategoryCounts()
6 /app/htdocs/wiki/includes/deferred/LinksUpdate/LinksTable.php(398): MediaWiki\Deferred\LinksUpdate\CategoryLinksTable->finishUpdate()
7 /app/htdocs/wiki/includes/deferred/LinksUpdate/LinksUpdate.php(294): MediaWiki\Deferred\LinksUpdate\LinksTable->update()
8 /app/htdocs/wiki/includes/deferred/LinksUpdate/LinksUpdate.php(254): MediaWiki\Deferred\LinksUpdate\LinksUpdate->doIncrementalUpdate()
9 /app/htdocs/wiki/extensions/ApprovedRevs/includes/ApprovedRevs.php(593): MediaWiki\Deferred\LinksUpdate\LinksUpdate->doUpdate()
10 /app/htdocs/wiki/extensions/ApprovedRevs/includes/ARUnapproveAction.php(31): ApprovedRevs::unsetApproval()
11 /app/htdocs/wiki/includes/MediaWiki.php(542): ARUnapproveAction->show()
12 /app/htdocs/wiki/includes/MediaWiki.php(322): MediaWiki->performAction()
13 /app/htdocs/wiki/includes/MediaWiki.php(904): MediaWiki->performRequest()
14 /app/htdocs/wiki/includes/MediaWiki.php(562): MediaWiki->main()
15 /app/htdocs/wiki/index.php(50): MediaWiki->run()
16 /app/htdocs/wiki/index.php(46): wfIndexMain()
17 {main}
Mediawiki 1.39.4 with latest version of both extensions.