Open main menu

Extension talk:Replace Text

About this board

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

1
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/www.apocrypha.ovh/extensions/ReplaceText/src/SpecialReplaceText.php: Call to undefined method SearchEngine::searchableNamespaces()

Backtrace:

#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()

#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 ?

2
Nicolas NALLET (talkcontribs)

Thanks,

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.