Title: Error In post.php &#8211; Unable to Post New Posts
Last modified: August 21, 2016

---

# Error In post.php – Unable to Post New Posts

 *  [RealKeithW](https://wordpress.org/support/users/realkeithw/)
 * (@realkeithw)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-in-postphp-unable-to-post-new-posts/)
 * Hey guys,
 * I’m suddenly getting the following error when trying to publish a new post from
   the GUI in the WordPress administrative panel: `Warning: Creating default object
   from empty value in /wp-admin/includes/post.php on line 494`
 * The following error appears on the top of a fresh “new posting” page. Everything
   else on the page behaves successfully, but when I go to post (the “Submit for
   Review” button) it doesn’t post live and continues back to the listing of all
   blog posts like a nothing happened.
 * I checked out line 494 of the post.php file and it’s right after the `else` clause
   of the ‘get_default_post_to_edit’ function found in the standard post.php file
   on line 453.
 * specifically line 494 is:
    `$post->post_content = apply_filters( 'default_content',
   $post_content, $post );`
 * I’m not really using anything customized from the standard install pack other
   than a few plug-ins and a theme. I also trolled the forum a healthy amount and
   completed the following before posting here:
 * 1. re-uploading all files & folders – except the wp-content folder – from a fresh
   download of WordPress. Make sure that you delete the old copies of files & folder
   before uploading the new ones.
 * 2. running the upgrade manually via wp-admin/upgrade.php
 * I’m pretty stumped at this point. I’ve been running this blog for a few years
   and haven’t had an error like this before. The rest of the site behaves fine 
   and can be found [here](http://www.keithweisberg.com/blog).
 * Thank You!

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

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-in-postphp-unable-to-post-new-posts/#post-4438972)
 * Ask 1 and 1 what version of PHP is running on the server – I’ve seen some other
   people with similar problems related to that.
 *  Thread Starter [RealKeithW](https://wordpress.org/support/users/realkeithw/)
 * (@realkeithw)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-in-postphp-unable-to-post-new-posts/#post-4438979)
 * WPyogi thanks for the fast reply – I’m currently running PHP 5.4 with a MySQL5
   database for this blog.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-in-postphp-unable-to-post-new-posts/#post-4438980)
 * Have you tested with ALL plugins deactivated and a default theme active?
 *  Thread Starter [RealKeithW](https://wordpress.org/support/users/realkeithw/)
 * (@realkeithw)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-in-postphp-unable-to-post-new-posts/#post-4438984)
 * Yes – I used the admin panel to change to back to default though (didn’t manually
   add -old to the WP files in FTP). Still have the error mentioned above
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-in-postphp-unable-to-post-new-posts/#post-4438985)
 * Oh sorry, default means a current twenty-something theme that ships with WP. 
   Not sure that’s going to change it though.
 * And when you reinstalled, you deleted all files and folders (except wp-content,
   wp-config and .htaccess) first before uploading the new ones? Might be worth 
   trying that again.
 *  Thread Starter [RealKeithW](https://wordpress.org/support/users/realkeithw/)
 * (@realkeithw)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-in-postphp-unable-to-post-new-posts/#post-4438994)
 * Just replaced everything except wp-content, wp-config, and .htaccess . Getting`
   Warning: Creating default object from empty value in /homepages/31/d########/
   htdocs/..(my main site root)../blog/wp-admin/includes/post.php on line 494`
 * Also decided to go in and check the config file, everything looks all set in 
   that.
 * Thanks for all the help so far! Any ideas of next steps?
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-in-postphp-unable-to-post-new-posts/#post-4439008)
 * I really don’t know – I did find this thread (guessing you did too?)
 * [http://wordpress.org/support/topic/sudden-breakage-with-371?replies=4](http://wordpress.org/support/topic/sudden-breakage-with-371?replies=4)
 *  Thread Starter [RealKeithW](https://wordpress.org/support/users/realkeithw/)
 * (@realkeithw)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-in-postphp-unable-to-post-new-posts/#post-4439031)
 * WPyogi I appreciate the help; I’m thinking I might just have to do a manual re-
   set on the wp-content folder and port everything over…
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-in-postphp-unable-to-post-new-posts/#post-4439032)
 * Yeah, I wish I had something more to offer – can you set up a new site in a sub-
   directory and see if you get the same thing on a brand new install?
 *  Thread Starter [RealKeithW](https://wordpress.org/support/users/realkeithw/)
 * (@realkeithw)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-in-postphp-unable-to-post-new-posts/#post-4439143)
 * It’s more help than I could’ve done alone =).
 * I went ahead and did a brand new install to a new directory with a fresh install
   and everything works fine. As a bandaid I think I’ll just use a new database,
   wordpress install, and theme with a linkback to my old blog. When I have more
   time I’ll probably see if a file in the database or the wp-config folder got 
   corrupted.
 * Thanks again!
 *  [ArSimonMa](https://wordpress.org/support/users/arsimonma/)
 * (@arsimonma)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-in-postphp-unable-to-post-new-posts/#post-4439297)
 * Hi RealKeith,
    don’t know if you have solved the problem, but I’ve found this
   post while I’m searching on internet for the same error and I hope is usefull
   for someone else. After a routine update of the server to the newest version 
   of php my admin page give me that error, so I call the Server’s Assistance and
   they solved the problem modifying some setting that they have changed.
 * So this problem may not be referred to a code problem but, otherwise, to a wrong
   server settings.
 * Hope that it will be useful!
 *  [sniderpac](https://wordpress.org/support/users/sniderpac/)
 * (@sniderpac)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-in-postphp-unable-to-post-new-posts/#post-4439320)
 * RealKeithW,
 * I have the exact same issue.
 * I am seriously NOT tech savvy and need help.
 * Would you be able to help me step by step to rectify this issue?
 * Thanks
 * Howard Snider

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

The topic ‘Error In post.php – Unable to Post New Posts’ is closed to new replies.

## Tags

 * [-posting](https://wordpress.org/support/topic-tag/posting/)
 * [Issues](https://wordpress.org/support/topic-tag/issues/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 4 participants
 * Last reply from: [sniderpac](https://wordpress.org/support/users/sniderpac/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/error-in-postphp-unable-to-post-new-posts/#post-4439320)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
