Page MenuHomePhabricator

Unexpected non-MediaWiki exception encountered, of type "Solarium_Exception" exception
Closed, ResolvedPublic

Description

Unexpected non-MediaWiki exception encountered, of type "Solarium_Exception"
exception 'Solarium_Exception' with message 'Solr JSON response could not be decoded' in /usr/local/apache/common-local/php-1.21wmf7/extensions/Solarium/lib/Result.php:139
Stack trace:
#0 /usr/local/apache/common-local/php-1.21wmf7/extensions/Solarium/lib/Client/ResponseParser/Select.php(56): Solarium_Result->getData()
#1 /usr/local/apache/common-local/php-1.21wmf7/extensions/Solarium/lib/Result/QueryType.php(73): Solarium_Client_ResponseParser_Select->parse(Object(Solarium_Result_Select))
#2 /usr/local/apache/common-local/php-1.21wmf7/extensions/Solarium/lib/Result/Select.php(167): Solarium_Result_QueryType->_parseResponse()
#3 /usr/local/apache/common-local/php-1.21wmf7/extensions/Translate/ttmserver/SolrTTMServer.php(90): Solarium_Result_Select->getIterator()
#4 /usr/local/apache/common-local/php-1.21wmf7/extensions/Translate/utils/TranslationHelpers.php(243): SolrTTMServer->query('en', 'fi', ''''Label''' (or...')
#5 /usr/local/apache/common-local/php-1.21wmf7/extensions/Translate/utils/TranslationHelpers.php(423): TranslationHelpers->getTTMServerBox('TTMServer', Array)
#6 [internal function]: TranslationHelpers->getSuggestionBox()
#7 /usr/local/apache/common-local/php-1.21wmf7/extensions/Translate/utils/TranslationHelpers.php(206): call_user_func_array(Array, Array)
#8 /usr/local/apache/common-local/php-1.21wmf7/extensions/Translate/utils/TranslationHelpers.php(185): TranslationHelpers->callBox('translation-mem...', Array)
#9 /usr/local/apache/common-local/php-1.21wmf7/extensions/Translate/TranslateEditAddons.php(268): TranslationHelpers->getBoxes()
#10 /usr/local/apache/common-local/php-1.21wmf7/extensions/Translate/TranslateEditAddons.php(187): TranslateEditAddons::editBoxes(Object(EditPage))
#11 [internal function]: TranslateEditAddons::addTools(Object(EditPage), Object(OutputPage))
#12 /usr/local/apache/common-local/php-1.21wmf7/includes/Hooks.php(255): call_user_func_array('TranslateEditAd...', Array)
#13 /usr/local/apache/common-local/php-1.21wmf7/includes/GlobalFunctions.php(3856): Hooks::run('EditPage::showE...', Array)
#14 /usr/local/apache/common-local/php-1.21wmf7/includes/EditPage.php(2016): wfRunHooks('EditPage::showE...', Array)
#15 /usr/local/apache/common-local/php-1.21wmf7/includes/EditPage.php(421): EditPage->showEditForm()
#16 /usr/local/apache/common-local/php-1.21wmf7/includes/actions/EditAction.php(51): EditPage->edit()
#17 /usr/local/apache/common-local/php-1.21wmf7/includes/Wiki.php(429): EditAction->show()
#18 /usr/local/apache/common-local/php-1.21wmf7/includes/Wiki.php(305): MediaWiki->performAction(Object(Article), Object(Title))
#19 /usr/local/apache/common-local/php-1.21wmf7/includes/Wiki.php(555): MediaWiki->performRequest()
#20 /usr/local/apache/common-local/php-1.21wmf7/includes/Wiki.php(448): MediaWiki->main()
#21 /usr/local/apache/common-local/php-1.21wmf7/index.php(59): MediaWiki->run()
#22 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...')
#23 {main}

seen on:

http://www.wikidata.org/w/index.php?title=Translations:Wikidata:Glossary/25/fi&action=edit&loadgroup=page-Wikidata%3AGlossary&loadtask=view

and reported here:

http://www.wikidata.org/wiki/Wikidata:Project_chat#Can.27t_translate


Version: master
Severity: critical

Details

Reference
bz43778

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:30 AM
bzimport set Reference to bz43778.

Temp fix deployed. Will be making more changes to fix it better.

I haven't made the changes I said I would do.

Input from Niklas:

  1. add try catch in proper place
  2. add maximum length limit

Est time: 1h.