Adding favicon.ico instruction in header causes “Cannot modify header” error
-
Hi, I know that the no1 reason for this error message:
“Warning: Cannot modify header information – headers already sent by (output started at (…)/public_html/tricolore/index.php:2) in (…)/public_html/tricolore/wp-rss2.php on line 8”is due to the fact of some whitespace being added, I did my homework and searched the matter.
However, in my situation, This is not the problem. My index.php is:
“<?php
echo “<head>”;
echo “<link rel=\”shortcut icon\” href=\”favicon.ico\” type=\”image/x-icon\”>”;
echo “<link rel=\”icon\” href=\”favicon.ico\” type=\”image/x-icon\”>”;
echo “</head>”;
/* Short and sweet */
define(‘WP_USE_THEMES’, true);
require(‘./wp-blog-header.php’);
?>”As you can see, I’ve added the favico.ico instruction in order to get the little icon to appear in the web Browser. By doing so, I get the error message.
I don’t see how I could avoid this problem…
The topic ‘Adding favicon.ico instruction in header causes “Cannot modify header” error’ is closed to new replies.