Warning: Cannot modify header information class.wp-styles.php:125 WordPress [duplicate]

This question already has an answer here:

I tried to setcookie in my Woo commerce plugin. After setting cookie

setcookie('test', 'test', time() + 3600);

Now i get this error
Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocswordpresswp-includesclass.wp-styles.php:125). I looked into google for solutions but none of the solutions are working.


Source: wordpress

Leave a Reply