WordPress.org

Ready to get started?Download WordPress

Forums

my-hacks.php problem (7 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    i have a problem with the file my-hacks.php, when i uploaded the file it would say this:
    Warning: Cannot modify header information - headers already sent by (output started at /home/scythe/public_html/chaos/my-hacks.php:4) in /home/scythe/public_html/chaos/wp-admin/templates.php on line 55
    whenever i try to log in, log out, or finish editing a template

  2. Nick Momrik
    Member
    Posted 10 years ago #

    Check for blank lines at the top of the file (before <?php) and at the end of the file (after ?>) and if you have them, remove them.

  3. KAShirow
    Member
    Posted 10 years ago #

    There's also another catch.
    Some editors (for example, Ultraedit and, I believe, Windows Notepad in 2000+) will denote a file in Unicode or UTF-8 by starting it with two bytes, 'FFFE'. While this is a semi-popular (and very much broken) standard, it will cause the behavior as described above. What's the most maddening about it, you can't see it, cause the editor thinks these two bytes are just a marker and ignores them, you don't see them in the editor and can't remove them!
    To fix, make sure your editor is not in Unicode mode when editing the file or remove these two bytes from the beginning of the file with some other tool.

  4. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Or go get Crimson - a free php (and more) editor
    http://www.crimsoneditor.com/
    Very nice program :)

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    thanks for the help!

  6. faewench
    Member
    Posted 10 years ago #

    thanks for the link podz!!!!

  7. TechGnome
    Moderator
    Posted 10 years ago #

    Another free editor can be found at http://www.maguma.com/download.php it's what I use for all my php editing needs.
    TG

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.