Using the tool replaceAll.php I consistently get the PHP Warning: Array to string conversion error.
Steps to replicate the issue
I run the tool with the following option:
php replaceAll.php […] --summary "Categories simpification" […]
What happens?:
The following error is shown in each output row:
Replacing on Grimes... done. PHP Warning: Array to string conversion in /var/www/mw/wt/extensions/ReplaceText/maintenance/replaceAll.php on line 187 PHP Warning: Array to string conversion in /var/www/mw/wt/extensions/ReplaceText/maintenance/replaceAll.php on line 187
So apparently the error is in the row
$this->getOption( 'summary' ) );
of the function private function getSummary
The summary is correctly written despite the error.
What should have happened instead?:
No error should be shown.
Software version (skip for WMF-hosted wikis like Wikipedia):
MediaWiki | 1.39.5 |
PHP | 8.1.2-1ubuntu2.14 (apache2handler) |
MariaDB | 10.6.12-MariaDB-0ubuntu0.22.04.1 |
ReplaceText | 1.7 |
Other information
Script is run in BASH shell under Ubuntu 22.04