Skip to content

ErrorException: Cannot modify header information - headers already sent #232

Description

@samuelpodina

When we call the /wp-cron.php?doing_wp_cron server side in a cron task this Exception is thrown every time. Any ideas why this could happen the init hook should fire before any headers are sent anyway?

ErrorException: Cannot modify header information - headers already sent
#9 wp-content/plugins/dw-question-answer/inc/Posts/Base.php(20): handleError
#8 wp-content/plugins/wp-sentry-integration/vendor/sentry/sentry/lib/Raven/ErrorHandler.php(0): setcookie
#7 wp-content/plugins/dw-question-answer/inc/Posts/Base.php(20): dwqa_anonymous_create_session
#6 wp-includes/class-wp-hook.php(286): apply_filters
#5 wp-includes/class-wp-hook.php(310): do_action
#4 wp-includes/plugin.php(465): do_action
#3 wp-settings.php(505): require_once
#2 wp-config.php(61): require_once
#1 wp-load.php(37): require_once
#0 wp-cron.php(39): null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions