I moved the call to maintenance/resetUserEmail.php at the end of the loop for the first time wikibase is loaded.
Otherwise, if maintenance scripts (resetUserEmail and createAndPromote) are called before running update.php, bootstrap is not detected and this triggers an error with the Skin chameleon:
Fatal error: Uncaught ExtensionDependencyError: chameleon requires Bootstrap to be installed.
in /var/www/html/includes/registration/ExtensionRegistry.php:460
Stack trace:
0 /var/www/html/includes/registration/ExtensionRegistry.php(314): ExtensionRegistry->readFromQueue(Array)
1 /var/www/html/includes/Setup.php(285): ExtensionRegistry->loadFromQueue()
2 /var/www/html/maintenance/doMaintenance.php(83): require_once('/var/www/html/i...')
3 /var/www/html/maintenance/resetUserEmail.php(98): require_once('/var/www/html/m...')
4 {main}
thrown in /var/www/html/includes/registration/ExtensionRegistry.php on line 460
MaRDI Pull Request
Changes:
Fatal error: Uncaught ExtensionDependencyError: chameleon requires Bootstrap to be installed. in /var/www/html/includes/registration/ExtensionRegistry.php:460 Stack trace: 0 /var/www/html/includes/registration/ExtensionRegistry.php(314): ExtensionRegistry->readFromQueue(Array) 1 /var/www/html/includes/Setup.php(285): ExtensionRegistry->loadFromQueue() 2 /var/www/html/maintenance/doMaintenance.php(83): require_once('/var/www/html/i...') 3 /var/www/html/maintenance/resetUserEmail.php(98): require_once('/var/www/html/m...') 4 {main} thrown in /var/www/html/includes/registration/ExtensionRegistry.php on line 460
Instructions for PR review:
Checklist for this PR: