#46066 closed enhancement (invalid)
Only pause plugins/themes for persistent errors
Reported by: | schlessera | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.1 |
Component: | Site Health | Keywords: | has-patch servehappy |
Focuses: | Cc: |
Description
To avoid pausing plugins/themes through the fatal error protection because of random one-off errors, we should do a redirect first and see whether the error persists. If not, there's no need to pause the plugin/theme, it was just a temporary issue.
This ties into #45940, as it will further reduce the amount of pausing that we do.
Attachments (1)
Change History (10)
This ticket was mentioned in Slack in #core-php by schlessera. View the logs.
6 years ago
This ticket was mentioned in Slack in #core-php by schlessera. View the logs.
6 years ago
Note: See
TracTickets for help on using
tickets.
This first patch changes the
'error'
array that we store into a'record'
array that contains both the'error'
and a'count'
.There's a define
WP_FATAL_ERROR_PROTECTION_REDIRECT_THRESHOLD
that defaults to 2.A plugin/theme is only paused if the consecutive count of the same error happening after redirects reaches said threshold.
To discuss: