"Use of undefined constant SMW_NS_PROPERTY - assumed 'SMW_NS_PROPERTY' in ...LocalSettings.php"
From semantic-mediawiki.org
After installing and adding the following lines to the "LocalSettings.php" file
wfLoadExtension( 'SemanticMediaWiki' );
$smwgNamespacesWithSemanticLinks[SMW_NS_PROPERTY] = true;
the following message occurs:
"Use of undefined constant SMW_NS_PROPERTY - assumed 'SMW_NS_PROPERTY' in ...LocalSettings.php"
This error appears if your add extension loading instead of enabling semantics.1 To resolve this add the following to the LocalSettings.php file:
enableSemantics( 'example.org' );
$smwgNamespacesWithSemanticLinks[SMW_NS_PROPERTY] = true;
References
- ^ Semantic MediaWiki: GitHub issue comment gh:smw:1732:377683737