Topic on Extension talk:CategoryWatch

Bug in combination with Approved Revs

1
Emmanuel Touvier (talkcontribs)

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)

  1. 0 /app/htdocs/wiki/includes/HookContainer/HookContainer.php(338): CategoryWatch\Hook::onCategoryAfterPageRemoved()
  2. 1 /app/htdocs/wiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
  3. 2 /app/htdocs/wiki/includes/HookContainer/HookRunner.php(1067): MediaWiki\HookContainer\HookContainer->run()
  4. 3 /app/htdocs/wiki/includes/page/WikiPage.php(3099): MediaWiki\HookContainer\HookRunner->onCategoryAfterPageRemoved()
  5. 4 /app/htdocs/wiki/includes/deferred/LinksUpdate/CategoryLinksTable.php(311): WikiPage->updateCategoryCounts()
  6. 5 /app/htdocs/wiki/includes/deferred/LinksUpdate/CategoryLinksTable.php(277): MediaWiki\Deferred\LinksUpdate\CategoryLinksTable->updateCategoryCounts()
  7. 6 /app/htdocs/wiki/includes/deferred/LinksUpdate/LinksTable.php(398): MediaWiki\Deferred\LinksUpdate\CategoryLinksTable->finishUpdate()
  8. 7 /app/htdocs/wiki/includes/deferred/LinksUpdate/LinksUpdate.php(294): MediaWiki\Deferred\LinksUpdate\LinksTable->update()
  9. 8 /app/htdocs/wiki/includes/deferred/LinksUpdate/LinksUpdate.php(254): MediaWiki\Deferred\LinksUpdate\LinksUpdate->doIncrementalUpdate()
  10. 9 /app/htdocs/wiki/extensions/ApprovedRevs/includes/ApprovedRevs.php(593): MediaWiki\Deferred\LinksUpdate\LinksUpdate->doUpdate()
  11. 10 /app/htdocs/wiki/extensions/ApprovedRevs/includes/ARUnapproveAction.php(31): ApprovedRevs::unsetApproval()
  12. 11 /app/htdocs/wiki/includes/MediaWiki.php(542): ARUnapproveAction->show()
  13. 12 /app/htdocs/wiki/includes/MediaWiki.php(322): MediaWiki->performAction()
  14. 13 /app/htdocs/wiki/includes/MediaWiki.php(904): MediaWiki->performRequest()
  15. 14 /app/htdocs/wiki/includes/MediaWiki.php(562): MediaWiki->main()
  16. 15 /app/htdocs/wiki/index.php(50): MediaWiki->run()
  17. 16 /app/htdocs/wiki/index.php(46): wfIndexMain()
  18. 17 {main}

Mediawiki 1.39.4 with latest version of both extensions.

Reply to "Bug in combination with Approved Revs"