Topic on Extension talk:Replace Text

Error: Class'MediaWikiServices' not found

5
Summary by Kghbln

This issue was fixed. One just needs to move to the latest revision of REL1_35. See also this topic.

82.171.46.61 (talkcontribs)

I get the following error when I run the runJobs.php script after using the replace text special page. It does this for all pages I want to change:

replaceText XXX user_id=3 target_str=<pdf>bestand replacement_str=<pdf>Bestand use_regex= edit_summary=Tekst vervangen - "<pdf>bestand" door "<pdf>Bestand" create_redirect= watch_page= doAnnounce=1 namespace=0 title=XXX requestId=a38b9b25af72df633695da18 (id=137,timestamp=20211004114733) t=4 error=Error: Class'MediaWikiServices' not found


I have replaced the page names with XXX.


Anyone know what the problem is?

Mecl67 (talkcontribs)

same here: i try to run replaceAll from the command line and get:


Error from line 46 of /extensions/ReplaceText/src/ReplaceTextJob.php: Class 'MediaWikiServices' not found

Backtrace:

#0 /extensions/ReplaceText/maintenance/replaceAll.php(303): ReplaceTextJob->run()

#1 /extensions/ReplaceText/maintenance/replaceAll.php(424): ReplaceAll->replaceTitles(TitleArrayFromResult, string, string, NULL, boolean)

#2 /maintenance/doMaintenance.php(107): ReplaceAll->execute()

#3 /extensions/ReplaceText/maintenance/replaceAll.php(431): require_once(string)

#4 /extensions/ReplaceText/replaceAll.php(32): require_once(string)

#5 {main}


if i use the special page the form exits ok, but changes have not been implemented. running mediawiki 1.35.4 with replaceText 1.4.1 latest release

Ciencia Al Poder (talkcontribs)
Mecl67 (talkcontribs)
Kghbln (talkcontribs)

Indeed. One just needs to move to the latest revision of REL1_35. See also this topic.