Thread:Extension talk:SolrStore/ERROR: multiple values encountered for non multiValued field

While testing SolrStore 0.6 Beta (r114795), the system stopped with an fatal dump and since we couldn't find a SolrStore bugzilla component, we post our findings here.

Our hypothesis is that whenever the property Categories is assigned more than one category value [Pages with broken file links, Book] a dump such as below is created where in cases with no assigned value on the property Categories (category) no error dump was created.

The request sent by the client was syntactically incorrect (ERROR: [doc=Porter/1986/Competition in Global Industries] multiple values encountered for non multiValued field category: [Pages with broken file links, Book]). Backtrace:
 * 0 D:\xampp\htdocs\...\extensions\SolrStore\SolrTalker.php(209): SolrTalker->solrSend('http://192.168....', ' solrAdd(' addDoc(Object(SolrDoc))
 * 3 D:\xampp\htdocs\...\extensions\SolrStore\SolrConnectorStore.php(139): SolrTalker->parseSemanticData(Object(SMWSemanticData))
 * 4 D:\xampp\htdocs\...\extensions\SemanticMediaWiki\includes\storage\SMW_Store.php(303): SolrConnectorStore->doDataUpdate(Object(SMWSemanticData))
 * 5 D:\xampp\htdocs\...\extensions\SemanticMediaWiki\includes\SMW_ParseData.php(316): SMWStore->updateData(Object(SMWSemanticData))
 * 6 D:\xampp\htdocs\...\extensions\SemanticMediaWiki\includes\SMW_ParseData.php(445): SMWParseData::storeData(Object(ParserOutput), Object(Title), true)
 * 1) 7 [internal function]: SMWParseData::onLinksUpdateConstructed(Object(LinksUpdate))
 * 8 D:\xampp\htdocs\...\includes\Hooks.php(216): call_user_func_array('SMWParseData::o...', Array)
 * 9 D:\xampp\htdocs\...\includes\GlobalFunctions.php(3631): Hooks::run('LinksUpdateCons...', Array)
 * 1) 10 D:\xampp\htdocs\...\includes\LinksUpdate.php(98): wfRunHooks('LinksUpdateCons...', Array)
 * 2) 11 D:\xampp\htdocs\...\includes\WikiPage.php(2021): LinksUpdate->__construct(Object(Title), Object(ParserOutput))
 * 3) 12 D:\xampp\htdocs\...\includes\WikiPage.php(1200): WikiPage->doEditUpdates(Object(Revision), Object(User), Array)
 * 4) 13 [internal function]: WikiPage->doEdit('{{Book?|title=C...', '', 98)
 * 5) 14 D:\xampp\htdocs\...\includes\Article.php(1934): call_user_func_array(Array, Array)
 * 6) 15 D:\xampp\htdocs\...\includes\EditPage.php(1214): Article->__call('doEdit', Array)
 * 7) 16 D:\xampp\htdocs\...\includes\EditPage.php(1214): Article->doEdit('{{Book?|title=C...', '', 98)
 * 8) 17 D:\xampp\htdocs\...\includes\EditPage.php(2855): EditPage->internalAttemptSave(Array, false)
 * 9) 18 D:\xampp\htdocs\...\includes\EditPage.php(478): EditPage->attemptSave
 * 10) 19 D:\xampp\htdocs\...\includes\EditPage.php(353): EditPage->edit
 * 11) 20 D:\xampp\htdocs\...\includes\Wiki.php(501): EditPage->submit
 * 12) 21 D:\xampp\htdocs\...\includes\Wiki.php(241): MediaWiki->performAction(Object(Article))
 * 13) 22 D:\xampp\htdocs\...\includes\Wiki.php(626): MediaWiki->performRequest
 * 14) 23 D:\xampp\htdocs\...\includes\Wiki.php(533): MediaWiki->main
 * 15) 24 D:\xampp\htdocs\...\index.php(57): MediaWiki->run
 * 16) 25 {main}