[wp-trac] [WordPress Trac] #46417: ErrorException with start_session on wp_cron
WordPress Trac
noreply at wordpress.org
Wed Mar 6 22:37:45 UTC 2019
#46417: ErrorException with start_session on wp_cron
--------------------------+------------------------------
Reporter: herrvigg | Owner: peterwilsoncc
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Cron API | Version: 5.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by peterwilsoncc):
* owner: (none) => peterwilsoncc
* status: new => assigned
Comment:
A similar error will occur for setting cookies and any other code that
attempts to send an HTTP header.
Sending headers on cron tasks is, arguably, best avoided but probably
happens on more than one site. Potential solutions I see are:
* close this as wontfix
* constant or filter defaulting to `false` to prevent unintentional
`fastcgi_finish_request()` calls
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46417#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list