• How can I get rid of this from showing when my 404.php is displayed?

    Everything else is okay on the Error page, except this also shows up at the top of the page…

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/m/a/s/masolo/html/404.php:1) in /home/content/m/a/s/masolo/html/404.php on line 1

Viewing 1 replies (of 1 total)
  • Just my guess but line 1 of the file 404.php may be blank. A blank line or a line with any stray character is passed straight to the browser and is interpretted as though it is HTML. Therefore, a header (an HTML header) has already been sent.

    The PHP header() instruction — <?php header(“HTTP/1.1 404 Not Found”); ?> — must be the absolute first thing on the 404.php page.

Viewing 1 replies (of 1 total)
  • The topic ‘404 Issues’ is closed to new replies.