Page MenuHomePhabricator

Special:Wantedpages doesn't handle invalid titles in result set
Closed, ResolvedPublic

Description

Author: zach+bugs

Description:
The Special:Wantedpages special page is not working on the English Wikinews. It is showing a blank white page with no text.


Version: unspecified
Severity: enhancement
URL: http://en.wikinews.org/wiki/Special:Wantedpages

Details

Reference
bz10117

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:48 PM
bzimport set Reference to bz10117.

Jun 4 19:30:54 srv90 httpd[22389]: PHP Fatal error: Call to a member function exists() on a non-object in /usr/local/apache/common-local/php-1.5/includes/SpecialWantedpages.php on line 74

There's an invalid title in the result set. The Wantedpages formatResult() function calls makeTitleSafe() on its input but doesn't check for validity, hence the fatal error.