Jump to content

Known Site Issues & Fixes

From The Sovereign Games
Revision as of 21:33, 13 July 2026 by Sovereign (talk | contribs) (Created page with "== SMW Silently Ignores #set on Template: Namespace Pages == '''Symptom:''' Admin Page Status fields display correctly and store correctly in Cargo, but never appear in Special:Browse or SMW queries — specifically and only on pages in the Template: namespace (e.g. Template:Admin Page Status/doc, Template:GameModule/doc). '''Cause:''' SMW's `$smwgNamespacesWithSemanticLinks` configuration excludes the Template namespace by default. `#set` calls are silently no-ops the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SMW Silently Ignores #set on Template: Namespace Pages

Symptom: Admin Page Status fields display correctly and store correctly in Cargo, but never appear in Special:Browse or SMW queries — specifically and only on pages in the Template: namespace (e.g. Template:Admin Page Status/doc, Template:GameModule/doc).

Cause: SMW's `$smwgNamespacesWithSemanticLinks` configuration excludes the Template namespace by default. `#set` calls are silently no-ops there — no error, no warning, just nothing stored.

Fix: Set `$smwgNamespacesWithSemanticLinks[NS_TEMPLATE] = true;` in LocalSettings.php, then purge affected pages.

How it was found: Bisection — confirmed the template itself worked (fresh test page, main namespace, succeeded), then narrowed by testing the identical block across pages in different namespaces until the pattern (Template: fails, everywhere else works) became visible. Content length, field names, and phrasing were all red herrings ruled out along the way.