Manual talk:FixDoubleRedirects.php

I have read this manual, and I'm not really helped. Is there a way for users, admins, or anyone who doesn't have direct access to the server to use this script to fix double redirects?Joeytje50 (talk) 09:31, 31 May 2012 (UTC)
 * Extension:MaintenanceShell --wargo (talk) 15:06, 31 May 2012 (UTC)

Database error when using this script
Hi, I have lots of double redirections on my wiki, and I'm trying to use this script via maintenance shell extension, but I get databse errors. For example, when launching the script on the page "Blanquisme", I get this output.

[WiWExuI7zJQcDMbmg4Q7ZwAAAU4] /Sp%C3%A9cial:MaintenanceShell Wikimedia\Rdbms\DBQueryError from line 1075 of /var/www/vhosts/wikirouge.net/public_html/wiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? Query: SELECT page_latest FROM `page` WHERE page_id = '2490' AND page_namespace = '0' AND page_title = 'Blanquiste' LIMIT 1 FOR UPDATE Function: WikiPage::lockAndGetLatest Error: 1205 Lock wait timeout exceeded; try restarting transaction (sql-10.proxgroup.fr:3306)

Backtrace:
 * 1) 0 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/libs/rdbms/database/Database.php(933): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
 * 2) 1 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/libs/rdbms/database/Database.php(1269): Wikimedia\Rdbms\Database->query(string, string)
 * 3) 2 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/libs/rdbms/database/Database.php(1095): Wikimedia\Rdbms\Database->select(string, string, array, string, array)
 * 4) 3 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/page/WikiPage.php(2930): Wikimedia\Rdbms\Database->selectField(string, string, array, string, array)
 * 5) 4 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/page/WikiPage.php(1701): WikiPage->lockAndGetLatest
 * 6) 5 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/page/WikiPage.php(1619): WikiPage->doModify(WikitextContent, integer, User, string, array)
 * 7) 6 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/jobqueue/jobs/DoubleRedirectJob.php(171): WikiPage->doEditContent(WikitextContent, string, integer, boolean, User)
 * 8) 7 /var/www/vhosts/wikirouge.net/public_html/wiki/maintenance/fixDoubleRedirects.php(108): DoubleRedirectJob->run
 * 9) 8 /var/www/vhosts/wikirouge.net/public_html/wiki/extensions/MaintenanceShell/includes/SpecialMaintenanceShell.php(159): FixDoubleRedirects->execute
 * 10) 9 /var/www/vhosts/wikirouge.net/public_html/wiki/extensions/MaintenanceShell/includes/SpecialMaintenanceShell.php(94): SpecialMaintenanceShell->mainshellExec(string, string)
 * 11) 10 [internal function]: SpecialMaintenanceShell->onSubmit(array, HTMLForm)
 * 12) 11 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/htmlform/HTMLForm.php(663): call_user_func(array, array, HTMLForm)
 * 13) 12 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/htmlform/HTMLForm.php(555): HTMLForm->trySubmit
 * 14) 13 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/htmlform/HTMLForm.php(570): HTMLForm->tryAuthorizedSubmit
 * 15) 14 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/specialpage/FormSpecialPage.php(155): HTMLForm->show
 * 16) 15 /var/www/vhosts/wikirouge.net/public_html/wiki/extensions/MaintenanceShell/includes/SpecialMaintenanceShell.php(19): FormSpecialPage->execute(NULL)
 * 17) 16 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/specialpage/SpecialPage.php(522): SpecialMaintenanceShell->execute(NULL)
 * 18) 17 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/specialpage/SpecialPageFactory.php(578): SpecialPage->run(NULL)
 * 19) 18 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/MediaWiki.php(287): SpecialPageFactory::executePath(Title, RequestContext)
 * 20) 19 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/MediaWiki.php(862): MediaWiki->performRequest
 * 21) 20 /var/www/vhosts/wikirouge.net/public_html/wiki/includes/MediaWiki.php(523): MediaWiki->main
 * 22) 21 /var/www/vhosts/wikirouge.net/public_html/wiki/index.php(43): MediaWiki->run
 * 23) 22 {main}

Any idea ? I already tried to launch update.php, but it did not help. --Varlin (talk) 18:29, 4 December 2017 (UTC)