0

Cannot modify header information - headers already sent by (output started at /home/abc/public_html/wp-content/themes/roots/templates/head.php:2) in /home/abc/public_html/wp-includes/pluggable.php on line 1179

here is my code of head.php

<!doctype html>
<html class="no-js"<?php  language_attributes();   ?>>

No space after/before php tag no echo or something else but still getting error

any help ?????

axiac
  • 68,258
  • 9
  • 99
  • 134
Naeem Shah
  • 15
  • 5
  • See this: http://stackoverflow.com/questions/19925262/warning-cannot-modify-header-information-headers-already-sent-by-php-error – liquidflo Mar 13 '15 at 12:25
  • Just found the code in the question. It was not formatted as code and the Markdown parser interpreted it as HTML code. @user1870288 take a look at the [help page](http://stackoverflow.com/editing-help) of the editor component. – axiac Mar 13 '15 at 12:26
  • Nothing can be outputted before setting a header... *absolutely nothing*. The error says that something is outputted in `head.php` on line 2. If you cannot find anything then try to remove that line and rewrite it (an invisible character may have gotten into your code somehow). – Sverri M. Olsen Mar 13 '15 at 12:27
  • And yes, your `head.php` produces output. Everything that's outside the `PHP` tags (``) is output and is sent directly to the browser. – axiac Mar 13 '15 at 12:29
  • "No space after/before php tag" — No space, just ` – Quentin Mar 13 '15 at 12:29

0 Answers0