Open main menu

Extension talk:Replace Text

About this board

ReplaceText just re-loads original replaceText page when I click continue

Tenbergen (talkcontribs)

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.

Reply to "ReplaceText just re-loads original replaceText page when I click continue"
Krusher (talkcontribs)

Seems to use a deprecated method which no longer exists in the master:

[4ae2af512a8f9ae1b6b9e529] /wiki/Especial:ReplaceText Error from line 78 of /home/krusher/ Call to undefined method SearchEngine::searchableNamespaces()


#0 /home/krusher/ SpecialReplaceText->getSelectedNamespaces()

#1 /home/krusher/ SpecialReplaceText->doSpecialReplaceText()

#2 /home/krusher/ SpecialReplaceText->execute(NULL)

#3 /home/krusher/ SpecialPage->run(NULL)

#4 /home/krusher/ MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#5 /home/krusher/ MediaWiki->performRequest()

#6 /home/krusher/ MediaWiki->main()

#7 /home/krusher/ MediaWiki->run()

#8 {main}

Any workarounds? Regards.

Yaron Koren (talkcontribs)

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.

Krusher (talkcontribs)

It's me who shouldn't be playing with master branch anyway :D thanks!

Bmrberlin (talkcontribs)

Is there a trick to replace a double empty string with text?

MvGulik (talkcontribs)

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)

MvGulik (talkcontribs)


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)

Reply to "Replace double empty String"

Is it possible to replace in page titles with the Command-line script ?

Nicolas NALLET (talkcontribs)


MvGulik (talkcontribs)

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.)

Reply to "Is it possible to replace in page titles with the Command-line script ?"
There are no older topics
Return to "Replace Text" page.