WordPress.org

Support

Support » How-To and Troubleshooting » Warning: Cannot modify header information

Warning: Cannot modify header information

  • I am getting the following warning message when updating a page. This seems to have started when I added google analytics. Anyone have the same issue or a solution?

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/p/k/e/pke/html/sitename/wordpress/wp-content/themes/dfblog/functions.php:1) in /home/content/p/k/e/pke/html/sitename/wordpress/wp-includes/classes.php on line 1586

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    @macmanx

    You have unexpected white space (either a space or an entire line) on line 1 of the functions.php file at /wordpress/wp-content/themes/dfblog/ . See this for more info:

    http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F

    I tried getting rid of the whitespace as mentioned in the above solutions but that did not work.

    What finally worked was to delete the theme I was using. Install/activate another one. Then re-install the theme I really wanted.

    I had to do this several times. Until I realized that having my ftp client open might be the issue. So I closed the ftp client. Delete the theme and then reinstalled and activated the theme.

    Let’s see if this remains stable. (yes, I’m tinkering with some of the php files to customize the theme so problems are popping up)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: Cannot modify header information’ is closed to new replies.
Skip to toolbar