Last modified: 2010-05-15 15:51:58 UTC
Hi, During the installation process, in the configuration form 'http://[myWiki]/config/index.php', if we put the same value for the login and the password of the administrator account (eg: Login : 'Admin' and password : 'Admin'), the installation fails without showing the message 'Your password is invalid or too short. It must have at least 0 characters and be different from your username.' In fact MediaWiki throw an Exception which is apparently not catched and displayed. I think this message should be displayed in order to found out what was wrong with the values that I put in the config form. In the script 'config/index.php' I catched and displayed the Exception in order to find out what was the issue: if( $conf->SysopName ) { $u = User::newFromName( $conf->getSysopName() ); if ( !$u ) { print "<li><strong class=\"error\">Warning:</strong> Skipped sysop account creation - invalid username!</li>\n"; } else if ( 0 == $u->idForName() ) { try{ $u->addToDatabase(); $u->setPassword( $conf->getSysopPass() ); $u->saveSettings(); $u->addGroup( "sysop" ); $u->addGroup( "bureaucrat" ); print "<li>Created sysop account <tt>" .htmlspecialchars( $conf->SysopName ) . "</tt>.</li>\n"; }catch(Exception $oException){ die('Exception: '.$oException->getMessage()); } } else { print "<li>Could not create user - already exists!</li>\n"; } } else { print "<li>Skipped sysop account creation, no name given.</li>\n"; } ... Thank you. Alex
Clarifying summary text.
It is well clearly. I also had the same problem. It is not possible to install wiki with user: admin, pass: admin, and DOES NOT SHOW ERROR. I only understood the problem in one debug manual. This is a Blocker error.
Does not block development, or in fact anything. Confusing, but there's a simple fix. Adjusting severity/priority. See also bug 9993.
block use of mediawiki hehe.. =) yes, is a simple fix, but I think that it has reason in severity. However I think this is priority :P
This was fixed in r22759; the administrator's username and password are now validated before the installer starts making changes.
*** Bug 10556 has been marked as a duplicate of this bug. ***