Page MenuHomePhabricator

CommentIgnoreList warning about extension message alias
Closed, ResolvedPublic

Description

On a relatively clean install of 1.26, I'm getting this error with only Extension:Comments enabled:

Notice: Did not find alias for special page 'CommentIgnoreList'. Perhaps no aliases are defined for it?
[Called from SpecialPageFactory::getLocalNameFor in /var/lib/mediawiki/includes/specialpage/SpecialPageFactory.php at line 645]
in /var/lib/mediawiki/includes/debug/MWDebug.php on line 300

Error occurs on pages with comments and Special:SpecialPages

Tried both require_once and wfLoadExtension(). Related: https://www.mediawiki.org/wiki/Manual:Notices_and_error_messages

Event Timeline

Restricted Application added subscribers: Zppix, Aklapper. · View Herald Transcript

Oh, right, I have $wgShowDevelopmentWarnings = true;, but doesn't everyone? 🤓

Change 287196 had a related patch set uploaded (by Jack Phoenix):
Add special page aliases file to shut up some stupid notices

https://gerrit.wikimedia.org/r/287196

Change 287196 merged by Jack Phoenix:
Add special page aliases file to shut up some stupid notices

https://gerrit.wikimedia.org/r/287196

ashley claimed this task.
ashley triaged this task as Low priority.
ashley subscribed.

Notice: Did not find alias for special page 'CommentIgnoreList'. Perhaps no aliases are defined for it?

This was indeed caused by the fact that there was no special page aliases file. Fixed in Change-Id: I5322ac28b0f2ba15baafe3b03a379fc36e7d24dc / gerrit changeset #287196.

Error occurs on pages with comments and Special:SpecialPages

It's not actually an error, just a notice. It doesn't break anything, it just floods the error log(s) a bit.

Tried both require_once and wfLoadExtension()

For any and all social tools where both are available, only wfLoadExtension is recommended. The old PHP entry points are gradually being deprecated & removed, but outright deleting the files at this point would break several sites, hence why they still are available.

OK. If wfLoadExtension is recommended, then there was a docs bug on https://www.mediawiki.org/wiki/Extension:Comments I went ahead and added registration=1 to the install template.

Thanks for fixing the issue.