WordPress.org

Make WordPress Core

Opened 9 months ago

Last modified 5 months ago

#52011 new defect (bug)

'The REST API encountered an unexpected result' should be a critical error

Reported by: oglekler Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Site Health Keywords:
Focuses: performance Cc:

Description

I deliberately made an error by replacing one of the core files with file from a previous version (such things are happening when an update went wrong for example), which results in a PHP warning, which can be hidden if debug mode is disabled but lead to critical error from REST API and it can easily be missed in recommendations because it isn't labelled as critical.

Usually, users don't see errors which are causing through REST API, because they need to open a console firstly and they don't understand what is wrong with their site.

Attachments (1)

2020-12-10_13-08-39.png (48.3 KB) - added by oglekler 9 months ago.
The REST API encountered an unexpected result counts like recommended improvement

Download all attachments as: .zip

Change History (2)

@oglekler
9 months ago

The REST API encountered an unexpected result counts like recommended improvement

This ticket was mentioned in Slack in #core by oglekler. View the logs.


5 months ago

Note: See TracTickets for help on using tickets.