Topic on Extension talk:TemplateData

$wgExtraNamespaces breaks the button?

4
Summary by Celyn Kendrick

It seems to be ok if I put the custom namespaces at the bottom of the LocalSettings.php. Maybe an order/race thing.

Celyn Kendrick (talkcontribs)

I've added a custom namespace, and the $wgExtraNamespaces[NS_FOO] = "Foo"; line in LocalSettings.php seems to break it so that the "Manage Template" button and "Information about Template Data" at the top of the editor pages don't show up. I've tried commenting out different additions to the LocalSettings.php to see what breaks it, and it's definitely localized to these two lines (Namespace and Talk Namespace).

Advice?

Thiemo Kreuz (WMDE) (talkcontribs)

I had a look at the code but unfortunately don't have an advice. The button appears exclusively in the Template namespace. Namespaces settings shouldn't affect it. Do you see error messages in the browser's JavaScript console?

Celyn Kendrick (talkcontribs)

[ZAoPZeU7uGrffEJTmVYQEwAAAYI] 2023-03-09 16:55:02: Fatal exception of type "InvalidArgumentException" (anonymous) @ load.php?lang=en&modules=startup&only=scripts&raw=1&skin=monobook:4

Tested it, and it only appears when I've got extra namespaces uncommented.

Celyn Kendrick (talkcontribs)

It seems to be ok if I put the custom namespaces at the bottom of the LocalSettings.php. Maybe an order/race thing.