Topic on Extension talk:LinkTitles/Archive 2

Error Fix for 'Did not find alias for special page'

2
LoranIpsum (talkcontribs)

There's an issue where if you enable bug reports for MediaWiki 1.42.1 on SpecialPages it shows Notice: Did not find alias for special page 'LinkTitles'. Perhaps no aliases are defined for it? [Called from MediaWiki\SpecialPage\SpecialPageFactory::getLocalNameFor in /home/jesussav/christur.com/w/includes/specialpage/SpecialPageFactory.php at line 1797] in /home/jesussav/christur.com/w/includes/debug/MWDebug.php on line 492


We resolved this by adding in LinkTitles/extension.json the following code: "ExtensionMessagesFiles": {

         "LinkTitlesMagic": "includes/Magic.php",

        "LinkTitlesAlias": "LinkTitles.alias.php"


And then I created a file titled LinkTitles.alias.php with the following code:

<?php

/**

* Aliases for special pages in the LinkTitles extension.

*/

// @codingStandardsIgnoreFile

$specialPageAliases = array();

/** English (English) */

$specialPageAliases['en'] = array(

'LinkTitles' => array( 'LinkTitles' ),

);

Bovender (talkcontribs)
Reply to "Error Fix for 'Did not find alias for special page'"