Topic on Extension talk:LinkedWiki

Exception encountered, of type "ConfigException"

3
2001:638:902:200B:3C29:9F63:C644:4361 (talkcontribs)

We get an error about media wiki not beeing able to find the configuration parameters as expected, when saving a page

Exception encountered, of type "ConfigException"

[31907a3f] /index.php?title=…&action=submit   ConfigException from line 53 of /srv/www/…/includes/config/GlobalVarConfig.php:    GlobalVarConfig::get: undefined option: 'endpointDefault'
Backtrace:
#0 /srv/www/…/extensions/LinkedWiki/parser/SparqlParser.php(29): GlobalVarConfig->get(string)
#1 [internal function]: SparqlParser::render(Parser, string, string)
…

We get a similar error for the Special:LinkedWikiConfig page just with:

…
[90d212b0] /Special:LinkedWikiConfig   ConfigException from line 53 of /srv/www/…/includes/config/GlobalVarConfig.php: GlobalVarConfig::get: undefined option: 'endpoint'
…

We have the extension.json at its original place.

2001:638:902:200B:3C29:9F63:C644:4361 (talkcontribs)

It is MediaWiki 1.25.2 and LinkedWiki Extension 3.0.0 Alpha

Karima Rafes (talkcontribs)

By default the endpointDefault is "http://www.wikidata.org". If you change this value, you need to insert, a new endpoint in the list. For exemple :

"endpointDefault": "http://myendpoint.org",

So in list of endpoints, you have to add your default endpoint (with the good config ) :

"endpoint": {

...

   "http://myendpoint.org": {

    "isReadOnly": true,

...

        "endpoint": "http://myendpoint.org/sparql",

...

        "storageMethodClass": "SimpleStorageMethod"

      },

}

If you have again a problem: send me a copy of you extension.json by email to karima.rafes@gmail.com

Bye

Karima