[wp-trac] [WordPress Trac] #55610: HTTP response should not be 200 when returning error-page
WordPress Trac
noreply at wordpress.org
Fri Aug 22 14:38:34 UTC 2025
#55610: HTTP response should not be 200 when returning error-page
--------------------------+------------------------------
Reporter: april213 | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Database | Version:
Severity: major | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by sabernhardt):
* status: closed => reopened
* resolution: invalid =>
Comment:
I was able to reproduce this on both a live site and a local installation.
I set the `DB_HOST` to an invalid value:
`define( 'DB_HOST', 'faulty' );`
To get the `200` response, I needed `WP_DEBUG` to be `true`, and then it
gave `mysqli_real_connect` warnings. (With `WP_DEBUG` as false, it
correctly returned a `500` error code.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55610#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list