Topic on Extension talk:CirrusSearch

CirrusSearch breaks with PHP 8.0

6
Jcwren (talkcontribs)

I've updated my MediaWiki install to 1.36.0 with PHP 8.0.4, updated all the extensions to the 1.36 versions, and I'm getting the error below. Any thoughts as to what's going on?

I apologize for replying to my own post, but when I tried to post the version information I was getting Abusefilter-warning-linkspam errors. Breaking it up was the only way I found to get around it.

[05fe5f82e1a0b673c67b307a] /mediawiki/index.php?title=Special%3ASearch&search=test&fulltext=Search ParseError: syntax error, unexpected token "match", expecting ":"
       Backtrace:
       from /var/www/localhost/htdocs/mediawiki/extensions/CirrusSearch/includes/Query/SubPageOfFeature.php(124)
       #0 /var/www/localhost/htdocs/mediawiki/extensions/CirrusSearch/includes/Parser/FullTextKeywordRegistry.php(89): AutoLoader::autoload()
       #1 /var/www/localhost/htdocs/mediawiki/extensions/CirrusSearch/includes/Parser/QueryParserFactory.php(34): CirrusSearch\Parser\FullTextKeywordRegistry->__construct()
       #2 /var/www/localhost/htdocs/mediawiki/extensions/CirrusSearch/includes/Search/SearchQueryBuilder.php(129): CirrusSearch\Parser\QueryParserFactory::newFullTextQueryParser()
       #3 /var/www/localhost/htdocs/mediawiki/extensions/CirrusSearch/includes/CirrusSearch.php(240): CirrusSearch\Search\SearchQueryBuilder::newFTSearchQueryBuilder()
       #4 /var/www/localhost/htdocs/mediawiki/includes/search/SearchEngine.php(95): CirrusSearch\CirrusSearch->doSearchText()
       #5 /var/www/localhost/htdocs/mediawiki/includes/search/SearchEngine.php(187): SearchEngine->{closure}()
       #6 /var/www/localhost/htdocs/mediawiki/includes/search/SearchEngine.php(96): SearchEngine->maybePaginate()
       #7 /var/www/localhost/htdocs/mediawiki/includes/specials/SpecialSearch.php(446): SearchEngine->searchText()
       #8 /var/www/localhost/htdocs/mediawiki/includes/specials/SpecialSearch.php(228): SpecialSearch->showResults()
       #9 /var/www/localhost/htdocs/mediawiki/includes/specialpage/SpecialPage.php(646): SpecialSearch->execute()
       #10 /var/www/localhost/htdocs/mediawiki/includes/specialpage/SpecialPageFactory.php(1386): SpecialPage->run()
       #11 /var/www/localhost/htdocs/mediawiki/includes/MediaWiki.php(309): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
       #12 /var/www/localhost/htdocs/mediawiki/includes/MediaWiki.php(913): MediaWiki->performRequest()
       #13 /var/www/localhost/htdocs/mediawiki/includes/MediaWiki.php(546): MediaWiki->main()
       #14 /var/www/localhost/htdocs/mediawiki/index.php(53): MediaWiki->run()
       #15 /var/www/localhost/htdocs/mediawiki/index.php(46): wfIndexMain()
       #16 {main}
Jcwren (talkcontribs)
Jcwren (talkcontribs)
Other
Extension Version License Description Authors
CirrusSearch 6.5.4 (264629b) 20:53, 26 May 2021 GPL-2.0-or-later Elasticsearch-powered search for MediaWiki Nik Everett, Chad Horohoe, Erik Bernhardson and others
EditSubpages 3.5.0 (3fbabba) 23:34, 26 May 2021 GPL-2.0-only Allows sysops to unlock a page and all subpages of that page for anonymous editing via MediaWiki:Unlockedpages Ryan Schmidt and Prod
Elastica 6.1.3 (9f6e66a) 23:34, 26 May 2021 GPL-2.0-or-later Base Elasticsearch functionality for other extensions by providing Elastica library Nik Everett and Chad Horohoe
Lockdown ā€“ (2409546) 03:05, 27 May 2021 GPL-2.0-or-later Per namespace group permissions Daniel Kinzler, Platonides, Mark A. Hershberger and others
DCausse (WMF) (talkcontribs)
Jdforrester (WMF) (talkcontribs)

David is right. Note that almost all work on wider PHP 8.0 compatibility testing is stalled on the CirrusSearch update to ElasticSearch 6.7+ to allow us to make progress.

Jcwren (talkcontribs)

Thank you. The system got updated to PHP 8.0 (although I'm not sure at what point), and MW was running except for the search box. I finally figured out how to get it running under PHP 7.4 after enabling some missing modules (mbstring and a few others). I have to mess with MW/PHP/Apache so infrequently that it's basically a relearning experience every time I get into it. And, of course, some of the distro tools change, I have to figure out if any of the PHP config options are relevant, blah blah blah. I generally try to leave it alone, but recent security updates forced me to lay hands on it.

Reply to "CirrusSearch breaks with PHP 8.0"