$smwg­Enabled­Compatibility­Mode

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgEnabledCompatibilityMode
Description Sets whether Semantic MediaWiki will be enabled together with extensions that may have an impact on performance when used together on the same wiki
Default setting
false
This means that Semantic MediaWiki will not be invoked
(Other) available settings
true

This means that Semantic MediaWiki will be invoked

Software Semantic MediaWiki
Since version
Until version
Configuration Installation · Basic settings
Keyword installation


$smwgEnabledCompatibilityMode is a configuration parameter that sets whether Semantic MediaWiki will be enabled together with extensions that may have an impact on performance when used together on the same wiki.1 The extensions affected by this configuration parameter were extension "Cargo" (MediaWiki.org) and/or extension "Wikibase" (MediaWiki.org). The configuration parameter was introduced in Semantic MediaWiki 2.4.0Released on 9 July 2016 and compatible with MW 1.19.0 - 1.27.x. and removed in Semantic MediaWiki 3.2.0Released on 7 September 2020 and compatible with MW 1.31.0 - 1.35.x..

The rationale for this configuration parameter was to force Semantic MediaWiki to work together with other extensions that may impact performance in an unanticipated way. At that time where was no other possibility available to prevent Semantic MediaWiki from being invoked on a wiki. Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. which brought support for MediaWiki's extension registration mechanism obsoleted the need for this configuration parameter consequently resulting in its removal.2

Default setting[edit]

$smwgEnabledCompatibilityMode = false;

This means that Semantic MediaWiki will not be used when you also have extension "Cargo" (MediaWiki.org) and/or extension "Wikibase" (MediaWiki.org) installed and invoked.

Changing the default setting[edit]

To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Force the usage of Semantic MediaWiki
$smwgEnabledCompatibilityMode = true;

This means that Semantic MediaWiki will be used when you also have extension "Cargo" (MediaWiki.org) and/or extension "Wikibase" (MediaWiki.org) installed and invoked.

See also[edit]


References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:1398
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:4340