Background
We added links to Special:GlobalContributions from other contributions pages in T384010. When clicking this link on some wikis, a database error is encountered:
Error 1146: Table 'loginwiki.ores_classification' doesn't exist Function: MediaWiki\CheckUser\GlobalContributions\GlobalContributionsPager::reallyDoQuery
Example: https://test.wikipedia.org/wiki/Special:GlobalContributions/~2025-14155
- This doesn't occur when accessing GlobalContributions for a user account on metawiki
- This doesn't occur when accessing GlobalContributions for an IP address on testwiki
Technical notes
The problem seems to come from ORES handling ContribsPager__getQueryInfoHook: code
All contributions special pages run that hook (to allow extensions like Flow to add their contributions). Since that handler is documented only to apply to Special:Contributions, the handler should be updated to return early if the pager is not an instance of ContribsPager.
Note that a few other extensions also handle this hook, and should also be audited and updated. E.g. FlaggedRevs (see T385092#10507707).
Acceptance criteria
- Visiting Special:GlobalContributions/<some user> from affected wikis (e.g. testwiki) should successfully redirect to Special:GlobalContributions/<some user> on metawiki