#16640 closed defect (bug) (fixed)
Blank page when db pass is incorrect
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.1.1 | Priority: | normal |
Severity: | critical | Version: | 3.1 |
Component: | Warnings/Notices | Keywords: | has-patch |
Focuses: | Cc: |
Description
Hello
While installing a clean copy of wp-3.1 am trying to produce the error when the password at wp-config.php is incorrect.
For some reason it gives me a blank page.
I tried to make the same process with older version (3.0.5) and it worked fine.
At first i thought it could be related to my server configuration but another try at a different server gave me the same result (blank page).
is it a 3.1 bug or something else ? Can anyone try it from his end ?
Thanks
Attachments (3)
Change History (28)
#2
follow-up:
↓ 4
@
14 years ago
- Keywords reporter-feedback added
- Severity changed from normal to critical
He's using setup-config.php I think.
You need to comment out error_reporting(0) or change it to -1 or E_ALL to see errors.
Bumping severity as this is bad, but I'm hesitant to blame core. Can be HTTP though.
#4
in reply to:
↑ 2
@
14 years ago
Replying to nacin:
He's using setup-config.php I think.
wp-config.php
is already created, so it's actually wp-admin/install.php
.
#5
@
14 years ago
The patch restores 3.0.x behaviour. The error message is displayed by wp_die()
later.
#7
@
14 years ago
When WP_DEBUG is true i got this error:
=====
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'rashedes_31final'@'localhost' (using password: YES) in /home/rashedes/public_html/wordpress/3-1-final/wp-includes/wp-db.php on line 1036
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.
- Are you sure you have the correct username and password?
- Are you sure that you have typed the correct hostname?
- Are you sure that the database server is running?
If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
=====
#8
@
14 years ago
- Keywords reporter-feedback removed
- Owner set to rasheed
- Status changed from new to reviewing
#14
@
14 years ago
I think the correct fix here is to expand this check:
if ( defined( 'WP_SETUP_CONFIG' ) )
to include WP_INSTALLING
As install.php
will then handle as setup-config.php
does.
#19
@
14 years ago
There are other issues. dead_db() is no longer called, meaning we get the detailed message instead of the terse message for front page loads and do not look for the custom db-error.php file.
#20
@
14 years ago
db_connect() could call dead_db(), but dead_db() is an external function. wpdb cannot rely on it. That gets us into some refactoring, which I'd rather not do for 3.1.1. I'm thinking we should revert the die.
#22
follow-up:
↓ 25
@
14 years ago
Wouldn't $this->set_charset()
and $this->select()
be inappropriate if $this->dbh
is false? I guess it's safe to return, as in 16640.patch.
#25
in reply to:
↑ 22
@
14 years ago
Replying to SergeyBiryukov:
Wouldn't
$this->set_charset()
and$this->select()
be inappropriate if$this->dbh
is false? I guess it's safe to return, as in 16640.patch.
I added the return, retested, and committed.
Is there an error message when WP_DEBUG is true in your wp-config.php?