Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#34186 closed enhancement (invalid)

Misleading error message

Reported by: bjerke-johannessen's profile bjerke-johannessen Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4
Component: Database Keywords:
Focuses: Cc:


The error message "Error establishing a database connection" is extremely misleading, as it's at least also returned when the _connection_ to the database is working just fine but WordPress doesn't find the correct schema. I'm attaching a patch with a more descriptive error message, so the maybe others will avoid having to trace down non-existent connections problem when the real issue is with the schema.

Attachments (1)

wordpress.patch (2.0 KB) - added by bjerke-johannessen 8 years ago.
Better error message

Download all attachments as: .zip

Change History (4)

8 years ago

Better error message

#1 @mark-k
8 years ago

There is no reason to be snarky. Probably most error messages can be improved and productive suggestions are always welcome.

The thing is that if you can not find the schema in the DB, how do you know that you are connected to the right DB? After all, the installation process had validated the DB and set the correct values in wp-config.php.

Maybe the error should try to give a reason like "no timely response" and "data not found".

#3 @afercia
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

I don't see any reason to keep this ticket open, also for the good argument pointed out in #16609.

Note: See TracTickets for help on using tickets.