On one of several wikis I run RT 1.4.1 is misbehaving: if I enter some text I want to replace, it just re-loads the initial replace text page. When I enable debugging there are no entries in the log that seem related. PHP logs are not showing anything either. MW is 1.32.1 and 7.2.11 like the others where it works so probably unrelated.
Extension talk:Replace Text
Return to "Replace Text" page.
Reply to "ReplaceText just re-loads original replaceText page when I click continue"
Reply to "Replace double empty String"
Reply to "Is it possible to replace in page titles with the Command-line script ?"
ReplaceText just re-loads original replaceText page when I click continue
Broken with master branch
Seems to use a deprecated method which no longer exists in the master:
[4ae2af512a8f9ae1b6b9e529] /wiki/Especial:ReplaceText Error from line 78 of /home/krusher/www.apocrypha.ovh/extensions/ReplaceText/src/SpecialReplaceText.php: Call to undefined method SearchEngine::searchableNamespaces()
#0 /home/krusher/www.apocrypha.ovh/extensions/ReplaceText/src/SpecialReplaceText.php(103): SpecialReplaceText->getSelectedNamespaces()
#1 /home/krusher/www.apocrypha.ovh/extensions/ReplaceText/src/SpecialReplaceText.php(71): SpecialReplaceText->doSpecialReplaceText()
#2 /home/krusher/www.apocrypha.ovh/includes/specialpage/SpecialPage.php(570): SpecialReplaceText->execute(NULL)
#3 /home/krusher/www.apocrypha.ovh/includes/specialpage/SpecialPageFactory.php(575): SpecialPage->run(NULL)
#4 /home/krusher/www.apocrypha.ovh/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#5 /home/krusher/www.apocrypha.ovh/includes/MediaWiki.php(865): MediaWiki->performRequest()
#6 /home/krusher/www.apocrypha.ovh/includes/MediaWiki.php(515): MediaWiki->main()
#7 /home/krusher/www.apocrypha.ovh/index.php(42): MediaWiki->run()
Any workarounds? Regards.
Sorry about that. There was a change that was just merged in to fix this problem - if you get the latest code, everything should work again.
It's me who shouldn't be playing with master branch anyway :D thanks!
Replace double empty String
Is there a trick to replace a double empty string with text?
What do you mean with "empty string" ?
(technically there is no such thing as a "double empty string". Its similar to zero in counting, ie: zero + zero == zero)
If its "double-spaces", just use 2 spaces. Or enclose two spaces inside a RE capture group (when using RE mode)
If it "double-empty-lines", just add/type them as such in your search field (ie: [ENTER] key). (works in both Normal and RE mode)
Is it possible to replace in page titles with the Command-line script ?
Try "php replaceAll.php --help" (documented in "Command-line script: replaceAll.php" section) to see if your version contains the "--rename" option.
(Because that option is currently not listed on the extension page itself, I would make sure to test it first to see if its working correctly. Just to be save.)
There are no older topics