Wikimedia Developer Support

Extension Replace Text limited to 992 replacements

I’m using the extension ReplaceText to do a large edit across the wiki. The search tells me my edit will affect 13,000+ pages. When I click ‘Replace’ it then tells me that it’s going to replace the text in 992 pages. I’ve looked at the source and I don’t see the limit, nor a reason for the disconnect. Is the job queue limited?

It turns out the the limit comes from PHP’s [max_input_vars](https://www.php.net/manual/en/info.configuration.php)

Although I haven’t tested raising this limit, it’s probably best to run several batches of replacement jobs instead of trying to make 13,000 edits at once.

1 Like