Extension talk:NamespaceRelations
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Thank you!
Thank you! This seems to have worked! If you want any additional testing done, I am using your extension! Cdaringe (talk) 05:26, 6 June 2013 (UTC) 17:20, 30 June 2013 (UTC)
Call to undefined function "wfProfileIn"
After upgrading MediaWiki to version 1.31.1 you will get error messages about calls to the undefined functions "wfProfileIn" and "wfProfileOut". These are calls to a custom profiler that is no longer used in MediaWiki. The extension will work again if you remove the calls or comment them out. Henryfunk (talk) 07:51, 4 October 2018 (UTC)
Custom Tab Text
I have created multiple tabs with the same namespace but a custom target, the problem now is, that they all have the same text. Is it possible to customize that? DesignerThan (talk) 22:22, 9 December 2020 (UTC)
Error
I get the following error:
Notice: Undefined variable: namespaceInfo in public_html/extensions/NamespaceRelations/src/NamespaceRelations.php on line 189 Notice: Undefined variable: namespaceInfo in public_html/extensions/NamespaceRelations/src/NamespaceRelations.php on line 189 MediaWiki internal error. Original exception: [25ba14d4dd4845ccb325183c] /index.php?title=whatever)&action=edit&redlink=1 Error: Call to a member function getTalk() on null
I have defined the required namespace and its talk namespace as follows:
// Define additional namespaces. define("NS_ID", 20002); define("NS_ID_TALK", 20003); $wgExtraNamespaces[NS_ID] = "id"; $wgExtraNamespaces[NS_ID_TALK] = "id_talk";
Mshastchi (talk) 13:18, 18 December 2022 (UTC)
- There is a solution for that. The $namespaceInfo variable is initialized in the first if block, but not in the second.
- In NamespaceRelations.php file, move the line 118 ($namespaceInfo = MediaWikiServices::getInstance()->getNamespaceInfo();) to line 103, just above the if..else block.
- Alternatively, you can copy line 118 in the second block. Phil.o (talk) 12:34, 7 March 2023 (UTC)
- I can confirm this works. Tznkai (talk) 18:20, 11 December 2023 (UTC)
Talk tabs
I've managed to get an additional tab, "Rules" to show up next to the article and talk tabs. But if I add the Rules_talk tab next to it, it also shows up as "Rules" Tznkai (talk) 17:21, 11 December 2023 (UTC)