WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Header Already Sent (7 posts)

  1. Nasir Zia
    Member
    Posted 2 years ago #

    Hi,
    I know this issue have been discussed a number of times in this forum. also i have googled this for an hour. I have also followed instructions from WordPress Codex for Header Already Sent Warning.
    But still i am unable to figure out the issue.
    In my case error is in the line 1 of functions.php
    output started at /home/wordpress/public_html/food/wp-content/themes/newtheme/functions.php:1

    Can anyone here help me to figure out the issue.
    Thanks

  2. jnhghy
    Member
    Posted 2 years ago #

    Hi,
    Make sure you have no empty space at the beginning of the file or empty rows.
    If you don't please paste the first rows of the functions.php file
    Regards

  3. Nasir Zia
    Member
    Posted 2 years ago #

    The first row is <?php and i have make sure that there is not blank space between the tag :(

  4. jnhghy
    Member
    Posted 2 years ago #

    Can you paste a screen shot?

  5. Nasir Zia
    Member
    Posted 2 years ago #

    Found the solution...

    The character was a Byte Order Mark "a Microsoft invention to tell, in a Unicode file, in which order multi-byte characters are stored.

    To get rid of it, tell your editor to save the file either as ANSI/ISO-8859 or as Unicode without BOM".

    To do this in Notepad++ go Format > Convert to UTF-8 without BOM then Format > Encode in UTF-8 without BOM.

    Source: WordPress Forum :)

  6. jnhghy
    Member
    Posted 2 years ago #

    Nice .... happy to see you fond the solution :)
    Have a nice one

  7. Nasir Zia
    Member
    Posted 2 years ago #

    Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic