WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 9 months ago

Last modified 8 months ago

#16609 closed defect (bug) (invalid)

Misleading "Error establishing a database connection"

Reported by: roberto.carvajal Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.0
Component: Multisite Keywords:
Focuses: Cc:

Description

Multisite install shows:

"Error establishing a database connection"

Even if credentials are OK when it doesn't find the domain entry in wp_blogs table, this is very misleading, would be helpful to have the same meaningful error message that /wp-admin shows.

I posted this problem originally at http://wordpress.org/support/topic/misleading-error-establishing-a-database-connection

Change History (2)

comment:1 c3mdigital9 months ago

  • Keywords close added; 2nd-opinion needs-patch ux-feedback removed
  • Resolution set to invalid
  • Status changed from new to closed
  • Version changed from 3.0.5 to 3.0

I think the extra security step of not showing the failure message to non logged in admins is what was intended here.

comment:2 ocean908 months ago

  • Keywords close removed
  • Milestone Awaiting Review deleted

You should get a detailed message when you are in wp-admin/. See ms_not_installed().

Note: See TracTickets for help on using tickets.