E_WARNING: Cannot modify header information
-
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
- The topic ‘E_WARNING: Cannot modify header information’ is closed to new replies.