Make WordPress Core

Opened 5 weeks ago

Last modified 5 weeks ago

#61071 new enhancement

Need to display appropriate error messages when the database table is empty or corrupted.

Reported by: vishalvaland's profile vishalvaland Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.4
Component: Database Keywords: needs-patch 2nd-opinion
Focuses: Cc:

Description

A few days ago, I received a new issue from the client regarding the "Error Establishing Database Connection." Upon investigation, I discovered that this error occurred due to an empty or corrupted wp_options table. After repairing the table, the site functioned normally.

Given that the error message may mislead frontend developers into troubleshooting database connection issues unnecessarily, I recommend implementing a specific error message indicating that the connection is intact but the site is experiencing issues due to a corrupted or empty table. This will provide clearer guidance for troubleshooting.

Please review this suggestion and let me know if you have any questions or concerns.

Thank you!

Change History (1)

#1 @jrf
5 weeks ago

  • Component changed from Upgrade/Install to Database
  • Focuses sustainability coding-standards removed
  • Keywords needs-patch 2nd-opinion added; dev-feedback needs-testing reporter-feedback has-unit-tests removed
  • Type changed from defect (bug) to enhancement
Note: See TracTickets for help on using tickets.