Page MenuHomePhabricator

Critical error when updating mediawiki r32094 (after r33085 commit)
Closed, ResolvedPublic

Description

While updating by using Mediawiki installer (when can't access to ssh on the provider), we see the following message.

Populating category table, printing progress markers. For large databases, you
may want to hit Ctrl-C and do this manually with maintenance/
populateCategory.php.
Mod�le_g�ographique

Fatal error: Call to undefined function wfWaitForSlaves() in /var/www/vhosts/vikidia.org/subdomains/fr/httpdocs/maintenance/populateCategory.inc on line 66

This wfWaitForSlaves() function exists in commandLine.inc but updater can't call it.

I've adding this function in the end of commandLine.inc on r32096 and all is running perfectly.


Version: 1.13.x
Severity: major

Details

Reference
bz13412

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:04 PM
bzimport set Reference to bz13412.
bzimport added a subscriber: Unknown Object (MLST).

zach+bugs wrote:

All is running perfectly, except for update.php now.

Fatal error: Cannot redeclare wfwaitforslaves() (previously declared in /var/www/.wikis/code/maintenance/commandLine.inc:244) in /var/www/.wikis/code/maintenance/populateCategory.inc on line 100

Fixed in r32106.

commandLine.inc not called when using Mediawiki installer php skin.

updaters.inc calls directly populateCategory.inc but not populateCategory.php. Adding require_once "commandLine.inc"; in populateCategory.inc.

ayg wrote:

Fix adjusted in r32107.