WordPress.org

Ready to get started?Download WordPress

Forums

Warning: Cannot modify header information (3 posts)

  1. patrickk
    Member
    Posted 4 years ago #

    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

  2. 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

  3. patrickk
    Member
    Posted 4 years ago #

    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)

Topic Closed

This topic has been closed to new replies.

About this Topic