WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Post.php Warning (4 posts)

  1. Broomy
    Member
    Posted 7 years ago #

    Hi, I'm hoping someone can help. When I publish a page or a post i get these errors. The post or page is still published though. Can anyone point out how I can fix this?

    The message:

    Warning: Cannot modify header information - headers already sent by (output started at /home/broomy/public_html/MYSITE/wp-includes/wp-db.php:102) in /home/broomy/public_html/MYSITE/wp-admin/post.php on line 60

    Line 57-62 of my post.php:

    if ( isset($_POST['save']) )
    $location = "post.php?action=edit&post=$post_ID";

    header("Location: $location");
    exit();
    break;

    Thanks in advance

  2. Broomy
    Member
    Posted 7 years ago #

    Similarily, when i edit a post or page I receive this error:

    Warning: Cannot modify header information - headers already sent by (output started at /home/broomy/public_html/MYSITE/wp-includes/wp-db.php:102) in /home/broomy/public_html/MYSITE/wp-admin/post.php on line 128

    And Line 125-131 looks like this:

    } else {
    $location = 'post.php';
    }
    header ('Location: ' . $location); // Send user on their way while we keep working

    exit();
    break;

  3. vkaryl
    Member
    Posted 7 years ago #

    Lots of info on headers already sent problems, both on codex and the forum.... just do a search.

  4. Broomy
    Member
    Posted 7 years ago #

    Thanks, i will do.

Topic Closed

This topic has been closed to new replies.

About this Topic