Title: Post.php Warning
Last modified: August 18, 2016

---

# Post.php Warning

 *  Resolved [broomy](https://wordpress.org/support/users/broomy/)
 * (@broomy)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/postphp-warning/)
 * 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](https://wordpress.org/support/users/broomy/)
 * (@broomy)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/postphp-warning/#post-435871)
 * 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;
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/postphp-warning/#post-435882)
 * Lots of info on headers already sent problems, both on codex and the forum…. 
   just do a search.
 *  Thread Starter [broomy](https://wordpress.org/support/users/broomy/)
 * (@broomy)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/postphp-warning/#post-436171)
 * Thanks, i will do.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Post.php Warning’ is closed to new replies.

## Tags

 * [headers](https://wordpress.org/support/topic-tag/headers/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [broomy](https://wordpress.org/support/users/broomy/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/postphp-warning/#post-436171)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
