• I just activated a new theme and I got the following warning:

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/vhosts/despekbraander.nl/httpdocs/test/wp-content/themes/ruinerwold/functions/theme-options.php:317) in /var/www/vhosts/despekbraander.nl/httpdocs/test/wp-includes/functions.php on line 862

    what is going wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • you have some sort of issue on line 317 of
    themes/ruinerwold/functions/theme-options.php

    Often, the cause is white space between, before or after php tags

    Thread Starter baszer

    (@baszer)

    thanks for your answer!

    Can you look at my code because there is no line 317 :S

    Thread Starter baszer

    (@baszer)

    YEAH! Rev. Voodoo, I just deleted the last rows after the php tag and the error is gone!

    Thanks for helping!

    THere actually is in the paste, and that is the problem!

    lines 306-317 are white space after the closing php tag

    there should be absolutely nothing after

    <?php } ?>

    no blank lines, not even one empty space after that >

    And in all honesty, that last line could read

    <?php }

    eliminating the unnecessary closing php tag, and getting rid of the whitespace issue in the first place

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot modify header information’ is closed to new replies.