Topic on Extension talk:Replace Text

[YGtSuWMNYePXzcPgZGpHZAAAAJg] 2021-04-05 18:11:06: Fatal exception of type "Error"

4
Summary by Yaron Koren

Bug that had been fixed previously.

149.32.192.39 (talkcontribs)

can't seem to get Replace Text to work... tried a couple different versions, all error out. I have very few extensions (pretty much just SemanticMW) on a fresh 1.35.1 MW install

Product Version
Media Wiki 1.35.1
PHP 7.4.15 (fpm-fcgi)
MySQL 5.7.31-percona-sure1-log
ICU 57.1
Lua 5.1.5
Replace Text 1.4.1 (be197b8) 16:02, 2 January 2021

Am I missing something obvious? Thx

Yaron Koren (talkcontribs)

If you can, please add "$wgShowExceptionDetails = true;" to LocalSettings.php, to give a more useful error message.

149.32.192.39 (talkcontribs)

[YGxyUDk@zoxUO9bOSgrRLgAAASw] /Special:ReplaceText Error from line 78 of /home/hbbb/www/www/extensions/ReplaceText/src/SpecialReplaceText.php: Call to undefined method SearchEngine::searchableNamespaces()

Backtrace:

#0 /home/hbbb/www/www/extensions/ReplaceText/src/SpecialReplaceText.php(103): SpecialReplaceText->getSelectedNamespaces()

#1 /home/hbbb/www/www/extensions/ReplaceText/src/SpecialReplaceText.php(71): SpecialReplaceText->doSpecialReplaceText()

#2 /home/hbbb/www/www/includes/specialpage/SpecialPage.php(600): SpecialReplaceText->execute(NULL)

#3 /home/hbbb/www/www/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL)

#4 /home/hbbb/www/www/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)

#5 /home/hbbb/www/www/includes/MediaWiki.php(940): MediaWiki->performRequest()

#6 /home/hbbb/www/www/includes/MediaWiki.php(543): MediaWiki->main()

#7 /home/hbbb/www/www/index.php(53): MediaWiki->run()

#8 /home/hbbb/www/www/index.php(46): wfIndexMain()

#9 {main}

Yaron Koren (talkcontribs)

Sorry about that problem. It was actually fixed a few months ago, so if you get the latest Replace Text code, the problem should go away. That reminds me that this extension is well overdue for a new version - version 1.4.1 came out almost exactly three years ago!