Page MenuHomePhabricator

Special:RecentChanges with "Limit to categories" Fails - Mediawiki version 1.25.2
Closed, DuplicatePublic


Affects Mediawiki version 1.25.2.

To reproduce the error:

  • enable categorized recent changes: $wgAllowCategorizedRecentChanges = true;
  • goto Recent Changes special page: /Special:RecentChanges
  • add a category filter
  • click the "Go" button

Fatal error: Call to a member function numRows() on a non-object in /var/www/partner_mediawiki/includes/specialpage/ChangesListSpecialPage.php on line 345

Additional notes:

When submitting a query without a category filter ChangesListSpecialPage->getRows() returns an object of type ResultWrapper.
When submitting a query with a category filter ChangesListSpecialPage->getRows() returns an array (when an array is returned later code fails becase ResultWrapper is expected).


Event Timeline

Johboon created this task.Aug 28 2015, 8:58 PM
Johboon raised the priority of this task from to Needs Triage.
Johboon updated the task description. (Show Details)
Johboon added a project: MediaWiki-Categories.
Johboon added a subscriber: Johboon.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 28 2015, 8:58 PM