Forums

Cannot modify header information (5 posts)

  1. baszer
    Member
    Posted 6 months ago #

    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?

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 6 months ago #

    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

  3. baszer
    Member
    Posted 6 months ago #

    thanks for your answer!

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

  4. baszer
    Member
    Posted 6 months ago #

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

    Thanks for helping!

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 6 months ago #

    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

Reply

You must log in to post.

About this Topic

Tags

No tags yet.