Installer should check that required constants are defined
|Reported by:||hakre||Owned by:|
Beside the fact, that you can come more or less often to the point to start a flame-war because WordPress is designed to have the static configuration settings in a PHP File, some things can be done to improve the installation-easyness and provide better hints to this error-prone way of setting something up.
For Example: WordPress does not verify that really needed config PHP-Constants _are_ defined. Let's assume a user does not understand the configuration and enters the following in wp-config.php
define('90a83383_dbYZ', 'putyourdbnamehere'); Der Name der Datenbank, die du benutzt.
define('90a83383_unZUF1', 'usernamehere'); Dein MySQL-Datenbank-Benutzername.
define('xxx', 'yourpasswordhere'); Dein MySQL-Passwort.
then the wordpress error message that the connection to the db server failed does not reflect the fact, that the constants DB_NAME, DB_USER or DB_PASSWORD are not defined. Putting out this message clearly, that wp-config.php is not properly configured and the database configuration should be checked would help much instead.
Change History (18)
- Keywords install added
- Milestone changed from 2.7.2 to 2.8
- Summary changed from Missing propper check transparently for needed config constants to Installer should check that required constants are defined
- Component changed from Administration to Upgrade/Install
- Owner anonymous deleted
- Keywords dev-feedback added; developer-feedback removed
- Milestone changed from Future Release to 2.8
- Keywords needs-patch added; has-patch tested commit removed