$ php fixDoubleRedirects.php
PHP Fatal error: Call to a member function getNamespace() on a non-object in .../extensions/UserFunctions/UserFunctions.php on line 81
PHP Stack trace:
PHP 1. {main}() .../maintenance/fixDoubleRedirects.php:0
PHP 2. require_once() .../maintenance/fixDoubleRedirects.php:120
PHP 3. FixDoubleRedirects->execute() .../maintenance/doMaintenance.php:105
PHP 4. DoubleRedirectJob->run() .../maintenance/fixDoubleRedirects.php:89
PHP 5. WikiPage->doEdit() .../includes/job/DoubleRedirectJob.php:131
PHP 6. WikiPage->prepareTextForEdit() .../includes/WikiPage.php:1290
PHP 7. Parser->preSaveTransform() .../includes/WikiPage.php:1520
PHP 8. Parser->startParse() .../includes/parser/Parser.php:4305
PHP 9. Parser->clearState() .../includes/parser/Parser.php:4552
PHP 10. Parser->firstCallInit() .../includes/parser/Parser.php:249
PHP 11. wfRunHooks() .../includes/parser/Parser.php:237
PHP 12. Hooks::run() .../includes/GlobalFunctions.php:3859
PHP 13. call_user_func_array() .../includes/Hooks.php:216
PHP 14. UserFunctions_HookStub->registerParser() .../includes/Hooks.php:0
Seen on a 1.19 installation, but I think others are suceptible.
Patch and backport coming.
Version: unspecified
Severity: normal