• Resolved Verdanas

    (@verdanas)


    I knew it was too good to be true. Finally got the platform issue worked out, now it’s back to the header error message. I decided to use adventure journal and all seemed fine until I tried to delete the Hello World fluff post…then get this here

    Warning: Cannot modify header information – headers already sent by (output started at /home/bycon/public_html/bcblog/wp-content/themes/adventure-journal/functions.php:1) in /home/bycon/public_html/bcblog/wp-includes/pluggable.php on line 897

    WTF does that mean and how do I fix this?

    This is why people shoot up post offices. I’m tellin ya.

Viewing 1 replies (of 1 total)
  • Thread Starter Verdanas

    (@verdanas)

    Please stop intercepting and editing/deleting my posts, thanks. I post here requesting assistance. If you have some issue then step up.

    ===========

    Now, to assist people since the ones who mmeddle in other peoples’ posts can’t be bothered to actually help with answers…..

    RESOLVED

    I couldn’t wait on someone to come find that, kept digging and found this – it should come in handy for others:

    ———

    Sometimes programmers want to change some of the header values. For example, if the PHP if generating XML output, the Content-Type should be changed to reflect this. Another common example is in redirecting the user’s browser to a different web page using the Location header element as described in this Tech-Recipe.

    The header must come first in the response from a web server and is separated from the body by one blank line. The reason this error occurs is that some part of the body of the web page has been sent to the user already when a request is made to set a header value. Because PHP simplifies many things for you, the problem may be hiding in plain site. Here are some guidelines for finding the problem:

    1) Find the header() statement that is causing the problem. The error must be at or before this line.
    2) Look for any statements that could send output to the user before this header statement. If you find one or more, find some way to move the header statement before them. Complex conditional statements may complicate the issue, but they may also help solve the problem. Consider a conditional expression at the top of the PHP script that determines the header value as early as possible and sets it there.

    3) Make sure there is no white space outside of the php start and end tags. While a blank line before the <?php start tag may look innocent, when processed by PHP, it will turn into an echo statement printing out a blank line. This is a common culprit.

    ———————-

    I did edit the functions.php file to add my own logo and copyright so to remedy that, I copied the original functions.php and replaced it in the WP editor, saved, and reloaded/F5 a couple times and it seemed to do the trick.

    NOW I can go find all the plugins that don’t work with either 3.1 or the theme, yay! ;-p

Viewing 1 replies (of 1 total)
  • The topic ‘Spoke Too Soon Now I'm Bald’ is closed to new replies.