• I am pretty sure the following error message is related to my Woocommerce plugin. When Woocommerce plugin is deactivated, error message does not appear. Please advise what I should do to remove the error message! Here is the code around line 63 of the php file

    Warning: Cannot modify header information – headers already sent by (output started at /home/morima5/public_html/wp-content/themes/mystile/functions.php:11) in /home/morima5/public_html/wp-content/plugins/woocommerce/classes/class-wc-session-handler.php on line 63

    $cookie_value = $this->_customer_id . ‘||’ . $this->_session_expiration . ‘||’ . $this->_session_expiring . ‘||’ . $cookie_hash;

    setcookie( $this->_cookie, $cookie_value, $this->_session_expiration, COOKIEPATH, COOKIE_DOMAIN, false, true );

    // Actions
    add_action( ‘woocommerce_cleanup_sessions’, array( $this, ‘cleanup_sessions’ ), 10 );

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter morimaven

    (@morimaven)

    I also see this error message

    Warning: Cannot modify header information – headers already sent by (output started at /home/morima5/public_html/wp-content/themes/mystile/functions.php:11) in /home/morima5/public_html/wp-includes/pluggable.php on line 876

    I have updated WP and all plugins. The last resort would be reinstalling Woocommerce

    The problem is in your theme. Try reviewing Solving “headers already sent” warnings.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning message about header (Woocommerce plugin?)’ is closed to new replies.