Page MenuHomePhabricator

Lexeme search on Wikidata result in fatal exceptions
Closed, DuplicatePublicBUG REPORT

Description

Steps to Reproduce:

https://www.wikidata.org/w/index.php?search=&search=L%3Ani&title=Special%3ASearch&go=G%C3%A5+til

Actual Results:

[XXvNjwpAMFAAABEsrycAAADE] 2019-09-13 17:10:39: Fatal undtagelse af typen "Error"

Expected Results:

Search results displayed


Search with L:ti also results in an error: https://www.wikidata.org/w/index.php?search=&search=L%3Ati&title=Special%3ASearch&go=G%C3%A5+til

[XXvODQpAMFsAADRCaE4AAACR] 2019-09-13 17:12:45: Fatal undtagelse af typen "Error"

While search with L:to gives a proper result with no errors: https://www.wikidata.org/w/index.php?search=&search=L%3Ato&title=Special%3ASearch&go=G%C3%A5+til&ns0=1

Event Timeline

Fnielsen created this task.Sep 13 2019, 5:13 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 13 2019, 5:13 PM
Fnielsen updated the task description. (Show Details)Sep 13 2019, 5:13 PM
message
[XXvNjwpAMFAAABEsrycAAADE] /w/index.php?search=&search=L%3Ani&title=Special%3ASearch&go=G%C3%A5+til   Error from line 57 of /srv/mediawiki/php-1.34.0-wmf.22/extensions/WikibaseLexemeCirrusSearch/src/LexemeResult.php: Call to a member function setFragment() on null
trace
#0 /srv/mediawiki/php-1.34.0-wmf.22/extensions/WikibaseLexemeCirrusSearch/src/LexemeResultSet.php(72): Wikibase\Lexeme\Search\Elastic\LexemeResult->__construct(Language, Wikibase\Lexeme\DataAccess\LexemeDescription, array)
#1 /srv/mediawiki/php-1.34.0-wmf.22/extensions/CirrusSearch/includes/Search/BaseCirrusSearchResultSet.php(162): Wikibase\Lexeme\Search\Elastic\LexemeResultSet->transformOneResult(Elastica\Result)
#2 /srv/mediawiki/php-1.34.0-wmf.22/includes/search/SearchResultSetTrait.php(58): CirrusSearch\Search\BaseCirrusSearchResultSet->extractResults()
#3 /srv/mediawiki/php-1.34.0-wmf.22/extensions/CirrusSearch/includes/RequestLogger.php(374): CirrusSearch\Search\BaseCirrusSearchResultSet->getIterator()
#4 /srv/mediawiki/php-1.34.0-wmf.22/extensions/CirrusSearch/includes/RequestLogger.php(181): CirrusSearch\RequestLogger->extractTitleStrings(Wikibase\Lexeme\Search\Elastic\LexemeResultSet)
#5 /srv/mediawiki/php-1.34.0-wmf.22/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php(118): CirrusSearch\RequestLogger->setResultPages(array)
#6 /srv/mediawiki/php-1.34.0-wmf.22/extensions/CirrusSearch/includes/CirrusSearch.php(205): CirrusSearch\ElasticsearchIntermediary::setResultPages(array)
#7 /srv/mediawiki/php-1.34.0-wmf.22/includes/search/SearchEngine.php(86): CirrusSearch\CirrusSearch->doSearchText(string)
#8 /srv/mediawiki/php-1.34.0-wmf.22/includes/search/SearchEngine.php(172): SearchEngine->{closure}()
#9 /srv/mediawiki/php-1.34.0-wmf.22/includes/search/SearchEngine.php(87): SearchEngine->maybePaginate(Closure)
#10 /srv/mediawiki/php-1.34.0-wmf.22/includes/specials/SpecialSearch.php(356): SearchEngine->searchText(string)
#11 /srv/mediawiki/php-1.34.0-wmf.22/includes/specials/SpecialSearch.php(179): SpecialSearch->showResults(string)
#12 /srv/mediawiki/php-1.34.0-wmf.22/includes/specialpage/SpecialPage.php(573): SpecialSearch->execute(NULL)
#13 /srv/mediawiki/php-1.34.0-wmf.22/includes/specialpage/SpecialPageFactory.php(601): SpecialPage->run(NULL)
#14 /srv/mediawiki/php-1.34.0-wmf.22/includes/MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#15 /srv/mediawiki/php-1.34.0-wmf.22/includes/MediaWiki.php(892): MediaWiki->performRequest()
#16 /srv/mediawiki/php-1.34.0-wmf.22/includes/MediaWiki.php(523): MediaWiki->main()
#17 /srv/mediawiki/php-1.34.0-wmf.22/index.php(44): MediaWiki->run()
#18 /srv/mediawiki/w/index.php(3): require(string)
#19 {main}
Lydia_Pintscher triaged this task as High priority.Sep 14 2019, 10:13 AM

Also occurs when selecting Lexeme namespace in advanced search.

(T233763 was already resolved, so I think it makes more sense to mark this one as the duplicate even though it’s the older task.)