Last modified: 2013-09-04 11:51:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31589, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29589 - Command line installer warning output broken
Command line installer warning output broken
Status: NEW
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.17.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-26 00:55 UTC by Edward Z. Yang
Modified: 2013-09-04 11:51 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Edward Z. Yang 2011-06-26 00:55:42 UTC
Command line install doesn't work. Seems to be a bad invocation of call_user_func_array. Did you even test this path?

ezyang@javelin:~/Dev/mediawiki-1.17.0$ php maintenance/install.php --dbname wizard_test_mediawiki_install_head --dbpass ****** --dbserver localhost --dbuser root --email ezyang@mit.edu --pass wizard TestApp admin
PHP 5.3.3-1ubuntu9.5 is installed.
Warning: Could not find eAccelerator <http://eaccelerator.sourceforge.net>, APC <http://www.php.net/apc>, XCache <http://trac.lighttpd.net/xcache/> or WinCache <http://www.iis.net/download/WinCacheForPhp>.
Object caching is not enabled.
Found ImageMagick: /usr/bin/convert.
Image thumbnailing will be enabled if you enable uploads.
Warning: The intl PECL extension <http://pecl.php.net/intl> is not available to handle Unicode normalization, falling back to slow pure-PHP implementation.
If you run a high-traffic site, you should read a little on Unicode normalization <http://www.mediawiki.org/wiki/Unicode_normalization_considerations>.
The environment has been checked.
You can install MediaWiki.
Setting up database
done
Creating tables
PHP Warning:  call_user_func_array() expects parameter 2 to be array, string given in /home/ezyang/Dev/mediawiki-1.17.0/includes/installer/CliInstaller.php on line 162
PHP Stack trace:
PHP   1. {main}() /home/ezyang/Dev/mediawiki-1.17.0/maintenance/install.php:0
PHP   2. require_once() /home/ezyang/Dev/mediawiki-1.17.0/maintenance/install.php:95
PHP   3. CommandLineInstaller->execute() /home/ezyang/Dev/mediawiki-1.17.0/maintenance/doMaintenance.php:108
PHP   4. CliInstaller->execute() /home/ezyang/Dev/mediawiki-1.17.0/maintenance/install.php:81
PHP   5. Installer->performInstallation() /home/ezyang/Dev/mediawiki-1.17.0/includes/installer/CliInstaller.php:106
PHP   6. call_user_func() /home/ezyang/Dev/mediawiki-1.17.0/includes/installer/Installer.php:1317
PHP   7. CliInstaller->endStage() /home/ezyang/Dev/mediawiki-1.17.0/includes/installer/Installer.php:0
PHP   8. CliInstaller->showStatusMessage() /home/ezyang/Dev/mediawiki-1.17.0/includes/installer/CliInstaller.php:124
PHP   9. call_user_func_array() /home/ezyang/Dev/mediawiki-1.17.0/includes/installer/CliInstaller.php:162
done
Populating default interwiki table
A database query syntax error has occurred.
The last attempted database query was:
"SELECT  *  FROM `interwiki`   LIMIT 1  "
from within function "DatabaseInstaller::populateInterwikiTable".
Database returned error "1146: Table 'wizard_test_mediawiki_install_head.interwiki' doesn't exist (localhost)"
Backtrace:
#0 /home/ezyang/Dev/wizard/tests/testdir_mediawiki_install_head/includes/db/Database.php(751): DatabaseBase->reportQueryError('Table 'wizard_t...', 1146, 'SELECT  *  FROM...', 'DatabaseInstall...', false)
#1 /home/ezyang/Dev/wizard/tests/testdir_mediawiki_install_head/includes/db/Database.php(1050): DatabaseBase->query('SELECT  *  FROM...', 'DatabaseInstall...')
#2 /home/ezyang/Dev/wizard/tests/testdir_mediawiki_install_head/includes/db/Database.php(1134): DatabaseBase->select('interwiki', '*', Array, 'DatabaseInstall...', Array, Array)
#3 /home/ezyang/Dev/wizard/tests/testdir_mediawiki_install_head/includes/installer/DatabaseInstaller.php(551): DatabaseBase->selectRow('interwiki', '*', Array, 'DatabaseInstall...')
#4 [internal function]: DatabaseInstaller->populateInterwikiTable(Object(MysqlInstaller))
#5 /home/ezyang/Dev/wizard/tests/testdir_mediawiki_install_head/includes/installer/Installer.php(1314): call_user_func(Array, Object(MysqlInstaller))
#6 /home/ezyang/Dev/wizard/tests/testdir_mediawiki_install_head/includes/installer/CliInstaller.php(106): Installer->performInstallation(Array, Array)
#7 /home/ezyang/Dev/wizard/tests/testdir_mediawiki_install_head/maintenance/install.php(81): CliInstaller->execute()
#8 /home/ezyang/Dev/wizard/tests/testdir_mediawiki_install_head/maintenance/doMaintenance.php(108): CommandLineInstaller->execute()
#9 /home/ezyang/Dev/wizard/tests/testdir_mediawiki_install_head/maintenance/install.php(95): require_once('/home/ezyang/De...')
#10 {main}
Comment 1 Edward Z. Yang 2011-06-26 01:10:17 UTC
Warnings may not be arrays, which is why the callback is broken. Here is an example:

array(1) {
  [0]=>
  string(27) "config-install-tables-exist"
}

I'm not really sure how you would fix this, since the output function does expect an array.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links