• Resolved nikolsou

    (@nikolsou)


    Hello, i have this error E_WARNING: Cannot modify header information – headers already sent in /var/www/vhosts/**/httpdocs/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php on line 1441 in debug.log.

    This error appears when i complete a purchase as a guest im my eshop.

    I open the file but there is no whitespace in row 1441. The row 1441 is the: ‘httponly’ => $httponly as the he whoe function appears here:

    function mailchimp_set_cookie($name, $value, $expire, $path, $domain = ”, $secure = true, $httponly = false, $samesite = ‘Strict’) {
    if (PHP_VERSION_ID < 70300) { @setcookie($name, $value, $expire, $path . ‘; samesite=’ . $samesite, $domain, $secure, $httponly); return; } @setcookie($name, $value, [ ‘expires’ => $expire,
    ‘path’ => $path,
    ‘domain’ => $domain,
    ‘samesite’ => $samesite,
    ‘secure’ => $secure,
    ‘httponly’ => $httponly,
    ]);

    Can you help?

    (PHP version 8.0.28)

    Regards,

    Nikol

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support khungate

    (@khungate)

    Hi @nikolsou, thanks for reaching out. As a first step for troubleshooting. Let’s try to work through the following:

    • Verify the latest plugin version is being used (v2.8.3 at the time of this post)
    • Switch themes to the default WooCommerce one, deactivate all plugins except WooCommerce and Mailchimp for WooCommerce, and test the scenario again – ideally in a staging enviornment.
    • Test for conflicts by following this guide, WooCommerce: Fixing Theme and Plugin Conflicts:?https://docs.woocommerce.com/document/how-to-test-for-conflicts/
    • Check for possible caching issues caused by the hosting provider.
    • Try uninstalling and reinstalling the plugin from scratch.

    Let us know if any of those help you resolving this issue.

    Thanks!

    Plugin Support khungate

    (@khungate)

    Hi there, we’re going to close out this ticket for now since it’s been a few weeks since we’ve been in touch.

    Please let us know if you still need any help and we’ll be glad to reopen and troubleshoot further. Please note, that the best way to reach us is over at the GitHub plugin page: https://github.com/mailchimp/mc-woocommerce/. From there, you can receive direct responses from the development team, log new issues, download the latest version, and track existing support tickets.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘E_WARNING: Cannot modify header information’ is closed to new replies.