Topic on Extension talk:LinkedWiki

Unexpected non-MediaWiki exception while saving a page

3
89.233.55.64 (talkcontribs)

Hello!
I get the follwing exception when I try to save a page to my wiki (MediaWiki 1.17,SMW 1.5.6, LinkedWiki 0.1.0, PHP 5.3.2). My sparql endpoint is local and works fine.

Unexpected non-MediaWiki exception encountered, of type "Exception"
exception 'Exception' with message '0--
1--Error unknown.
' in /var/www/vhosts/..../extensions/LinkedWiki/lib/4store/SparqlTools.php:111
Stack trace:
#0 /var/www/vhosts/..../extensions/LinkedWiki/class/SMW_LinkedWikiStore.php(113): SparqlTools::insert('<http://example...', 'http://sci-clas...', 'http://sci-clas...', NULL)
#1 /var/www/vhosts/..../extensions/LinkedWiki/class/SMW_LinkedWikiStore.php(75): SMW_LinkedWikiStore->_update(Object(SMWSemanticData))
#2 /var/www/vhosts/..../extensions/SemanticMediaWiki/includes/SMW_ParseData.php(252): SMW_LinkedWikiStore->updateData(Object(SMWSemanticData))
#3 /var/www/vhosts/...../extensions/SemanticMediaWiki/includes/SMW_ParseData.php(406): SMWParseData::storeData(Object(ParserOutput), Object(Title), true)
#4 [internal function]: SMWParseData::onLinksUpdateConstructed(Object(LinksUpdate))
#5 /var/www/vhosts/..../includes/Hooks.php(158): call_user_func_array(Array, Array)
#6 /var/www/vhosts/..../includes/LinksUpdate.php(83): wfRunHooks('LinksUpdateCons...', Array)
#7 /var/www/vhosts/..../includes/Article.php(3646): LinksUpdate->__construct(Object(Title), Object(ParserOutput))
#8 /var/www/vhosts/..../includes/Article.php(2225): Article->editUpdates('{{#sparql:selec...', '', false, '20110708102128', 14, true)
#9 /var/www/vhosts/..../includes/Article.php(1976): Article->doEdit('{{#sparql:selec...', '', 98)
#10 /var/www/vhosts/.../includes/EditPage.php(1076): Article->updateArticle('{{#sparql:selec...', '', false, false, false, '')
#11 /var/www/vhosts/.../includes/EditPage.php(2656): EditPage->internalAttemptSave(false, false)
#12 /var/www/vhosts/.../includes/EditPage.php(415): EditPage->attemptSave()
#13 /var/www/vhosts/.../includes/EditPage.php(296): EditPage->edit()
#14 /var/www/vhosts/.../includes/Wiki.php(522): EditPage->submit()
#15 /var/www/vhosts/.../includes/Wiki.php(69): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#16 /var/www/vhosts/.../index.php(114): MediaWiki->performRequestForTitle(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
#17 {main}

But, even though I get this exeption, if I go back to my page, the queries are ok and the expected results are presented.
What'swrong?
Thank you in advance!

141.26.94.83 (talkcontribs)

Well, it works if you put in comment the following line:
//$smwgDefaultStore = "SMW_LinkedWikiStore";

Karima Rafes (talkcontribs)