• Resolved broomy

    (@broomy)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter broomy

    (@broomy)

    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;

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

    Thread Starter broomy

    (@broomy)

    Thanks, i will do.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Post.php Warning’ is closed to new replies.