Title: &#039;Creating default object from empty value in&#039; while creating new post
Last modified: September 1, 2016

---

# 'Creating default object from empty value in' while creating new post

 *  [themac](https://wordpress.org/support/users/themac/)
 * (@themac)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-in-while-creating-new-post/)
 * Hello,
    I woke up to find the errors below after I tried to edit the functions.
   php file with code to include the image node in my rss feed. After several attempts
   that were unsuccessful, I took out the code, revert to what it was (i made a 
   back up) and even published a number of posts, only to wake up and now I can’t
   make a post, I get the error below whe I get on the ‘new post’ page. I have tried
   everything mentioned in the forum – ABSOLUTELY EVERYTHING OR ALMOST including
   deactiavting all plug-ins to upload new functions.php and even changing tp every
   of ‘twenty’ theme and error still arises, nothing seems to work.
 * Somebody assist, please.
 * Error i get on the ‘new post’ page is:
 * Warning: Creating default object from empty value in /home/cityofsound/public_html/
   wp-admin/includes/post.php on line 639
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/cityofsound/public_html/wp-admin/includes/post.php:639) in /home/cityofsound/
   public_html/wp-includes/option.php on line 823
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/cityofsound/public_html/wp-admin/includes/post.php:639) in /home/cityofsound/
   public_html/wp-includes/option.php on line 824
 * thanks in advance.

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

 *  [latro666](https://wordpress.org/support/users/latro666/)
 * (@latro666)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-in-while-creating-new-post/#post-7614475)
 * You tried DB repair?
    wp config: define(‘WP_ALLOW_REPAIR’, true);
 * Then
    [http://www.yoursite.com/wp-admin/maint/repair.php](http://www.yoursite.com/wp-admin/maint/repair.php)
 * Make sure its all backed up etc.
 *  Thread Starter [themac](https://wordpress.org/support/users/themac/)
 * (@themac)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-in-while-creating-new-post/#post-7614546)
 * Yes i have, several times.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [9 years, 10 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-in-while-creating-new-post/#post-7614548)
 * A DB repair can’t do anything for the headers already sent error.
 * >  I woke up to find the errors below **after I tried to edit the functions.php**
   > file with code to include the image node in my rss feed.
 * Can you get an unmodified version of that `functions.php` file and put it back?
   Odds are your edit is causing this new problem.
 *  Thread Starter [themac](https://wordpress.org/support/users/themac/)
 * (@themac)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-in-while-creating-new-post/#post-7614578)
 * Hello +Jan,
    I have returned the unmodified version. New development, I included
   the code in my wp-config.php file and the errors are gone but the field to type
   my post now displaying and no ‘publish’ buttin, just ‘submit to review’.
 *  [18TommyBoy](https://wordpress.org/support/users/18tommyboy/)
 * (@18tommyboy)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-in-while-creating-new-post/#post-8564114)
 * I have too this problem… And NOTHING helped… I dont know what it make, I think
   olda plugin Hide My WP 5.1 plugin, but its no 100%.
 * I must all page export, then drop tables, and new install WP, then import pages,
   and theme again make from 0

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

The topic ‘'Creating default object from empty value in' while creating new post’
is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 4 participants
 * Last reply from: [18TommyBoy](https://wordpress.org/support/users/18tommyboy/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-in-while-creating-new-post/#post-8564114)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
