Assist Global Replace
From Calidus HUB
It is possible to globally replace text in pages with other text.
See https://www.mediawiki.org/wiki/Extension:Replace_Text
Essentially:
- Go to Special:ReplaceText
- Enter text to find
- Note: You can use regex here, but be VERY careful.
- Enter text to replace
- Enter a prefix - this serves as a filter of the pages you want to replace.
- Click Continue
- You will be shown a list of pages affected (up to 250 at a time)
- You can select those to be replaced with checkboxes.
- Click Replace
The replacements will go to a job queue and will be processed one per view of a page.
This can be forced from the command line.
- Log onto the Assist box.
- Open a command window.
- CD into the appropriate Assist\maintenance folder
- Run the following:
D:\xampp\htdocs\calidus-assist\OBS\maintenance>D:\xampp\php\php.exe runJobs.php
If there is an error, you can clear the jobs from the appropriate assist table using SQL e.g. obs_job.
Some more problem-solving commands:
D:\xampp\htdocs\calidus-assist\OBS\maintenance>D:\xampp\php\php.exe showJobs.php D:\xampp\htdocs\calidus-assist\OBS\maintenance>D:\xampp\php\php.exe showJobs.php --list