How to fix “Warning: Cannot modify header information – headers already sent” error? Do have something like this error on your WordPress site?
Warning: Cannot modify header information - headers already sent by (output started at /public_html/wp-content/themes/template/file.php:1) in /public_html/post.php on line 197
To fix this, I simply go to this folder directory “/public_html/wp-content/themes/template/” and find the “file.php”. Open this to your text editor, mine is Dreamweaver. You will see before the php code ”