Title: Posting problem with my-hacks.php
Last modified: January 20, 2017

---

# Posting problem with my-hacks.php

 *  [southerngal](https://wordpress.org/support/users/southerngal/)
 * (@southerngal)
 * [21 years, 12 months ago](https://wordpress.org/support/topic/posting-problem-with-my-hacks-php/)
 * I received this error when I went to post in the upgraded 1.2 WP blog in draft
   mode:
    Warning: Cannot modify header information – headers already sent by (output
   started at /home/public_html/my-hacks.php:81) in /home/public_html/wp-admin/post.
   php on line 340 Line 340 is: header (‘Location: ‘ . $location); // Send user 
   on their way while we keep working I like using the draft mode when I have one
   post for a day. Any help would be great. I also cannot post in the publish mode.
   I receive this error: Warning: Cannot modify header information – headers already
   sent by (output started at /home/public_html/my-hacks.php:81) in /home/public_html/
   wp-admin/post.php on line 146 Line 146 is: header(“Location: $location”); // 
   Send user on their way while we keep working Obviously there is a problem with
   that part of the code. I like using the my-hacks.php and want to keep using it.
   Please help… It does keep it in the draft mode, there is just an error. Thanks,
   Sara 🙂

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

 *  [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [21 years, 12 months ago](https://wordpress.org/support/topic/posting-problem-with-my-hacks-php/#post-55942)
 * @southergal: look at my-hacks.php:81
 *  Thread Starter [southerngal](https://wordpress.org/support/users/southerngal/)
 * (@southerngal)
 * [21 years, 12 months ago](https://wordpress.org/support/topic/posting-problem-with-my-hacks-php/#post-55943)
 * I feel blonde. It was white space. :p Thanks for the help! Too early.

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

The topic ‘Posting problem with my-hacks.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [southerngal](https://wordpress.org/support/users/southerngal/)
 * Last activity: [21 years, 12 months ago](https://wordpress.org/support/topic/posting-problem-with-my-hacks-php/#post-55943)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
