Fatal error: Call to undefined function enableSemantics()

From semantic-mediawiki.org
< Installation‎ | Troubleshooting
Administrator manualInstallationInstallation/TroubleshootingFatal error: Call to undefined function enableSemantics()
Fatal error: Call to undefined function enableSemantics() in ... LocalSettings.php
Something went wrong with the registration or installation. Please re-read the installation instructions, especially those concerning running Composer. To make global functions such as enableSemantics() available, SMW relies on MediaWiki's autoloader, but if Composer did not create an autoloader in vendor/autoload.php, this function may not available.
Fatal error: Call to undefined function enableSemantics()
This kind of message appears if the Extension "Validator" extension is still explicitly invoked. To resolve this the following line has to be removed:
require_once "$IP/extensions/Validator/Validator.php";
Fatal: Call to undefined function enableSemantics() …
This kind of message appears for MW ≤ 1.21.x if the Extension Installer extension is included after the call to enableSemantics() (see above). Make sure that the call to include Extension Installer comes first.