Trace actions in WordPress action scheduler
I'm trying to track down the origin of the following warning in my error log: Cannot modify header information - headers already sent in /.../class-wp-session.php on line 145 Indeed, on that line in class-wp-session.php, a cookie is set with setcookie(...). So I added a stack trace as follows: error_log( "====== Setting cookie ==== " . print_r( debug_backtrace( 0, 24 ), true ) ); setcookie( WP_SESSION_COOKIE, $cookieval, $carg ); error_log( "====== Cookie was set ===================" ); and found that it is wp-cron that initiates the call chain. When reloading a page on the site using the brow
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.