Thread:Help talk:Installation/Using Composer with MediaWiki 1.25+/enableSemantics()

Hi,

Starting with smw I installed the latest proposed.

Sadly I'm still unable to finish properly the installation. To point °4
 * Add a call to enableSemantics to the end of the "LocalSettings.php" file. enableSemantics takes in the domain name of the wiki

both: include_once("$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php"); enableSemantics('localhost'); or just (as "The calls require_once … must neither be added for Semantic MediaWiki nor for Validator since Composer loads the extensions automatically.") enableSemantics('localhost');

are ineffective. The wiki isn't working with this in LocalSettings.php but work cleared from those lines.

I haven't any $smwgNamespaceIndex

I went to previous installation procedures and did not see any other instruction for this point. I checked other reference such as github or WOW - Wiki Aided Organization DraWing

the command: php maintenance/update.php returns PHP Fatal error: Call to undefined function enableSemantics in /etc/mediawiki/LocalSettings.php on line 147

I found a divergent advice here on sourceforge enableSemantics('http://localhost';); got the error with th ";"; then tried with: enableSemantics('http://localhost'); and got again PHP Fatal error: Call to undefined function enableSemantics in /etc/mediawiki/LocalSettings.php on line 147

Single occurrence of "enable Semantics" in configuration help is at: $smwgNamespace

ls from /mediawiki returns AdminSettings.php catch_it.png   composer.lock  config      images        includes   install-utils.inc  LocalSettings.php  opensearch_desc.php  redirect.php    skins                thumb.php      vendor   api.php            composer.json  composer.phar  extensions  img_auth.php  index.php  languages          maintenance        profileinfo.php      redirect.phtml StartProfiler.php  trackback.php  wiki.phtml and /extensions README SemanticMediaWiki  Validator

So I suppose it is indeed installed but not enabled.

Would you please consider putting a LocalSetting.php article wihtin this wiki or on GitHub to help installation? As done for SefaultSetting of mediawiki on GitHub

Best regards --RP87 (talk) 17:15, 23 June 2015 (CEST)