#46066 closed enhancement (invalid)
Only pause plugins/themes for persistent errors
| Reported by: | schlessera | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Site Health | Version: | 5.1 |
| Severity: | normal | Keywords: | has-patch servehappy |
| Cc: | Focuses: |
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.
8 years ago
This ticket was mentioned in Slack in #core-php by schlessera. View the logs.
8 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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_THRESHOLDthat 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: