Title: Create new post &#8211; error
Last modified: February 19, 2017

---

# Create new post – error

 *  [victormontes](https://wordpress.org/support/users/victormontes/)
 * (@victormontes)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/create-new-post-error/)
 * When I try to create a new post, after the last update, I received this error:
 * > Warning: Creating default object from empty value in {$my_site}/wp-admin/includes/
   > post.php on line 641
 * I tried to create the new post with all plugins deactivated, but the problem 
   is
    still there.
 * Then, I’ve added the following define to my wp-config.php file:
    `define( 'WP_ALLOW_REPAIR',
   true );` Then run the script “repair.php” located at “{$my_site}/wp-admin/maint/
   repair.php” Return no errors in the BD, but the problem persist.

Viewing 1 replies (of 1 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/create-new-post-error/#post-8823454)
 * Try deactivating all plugins (just to be sure, all of them). If that resolves
   the issue, reactivate each one individually until you find the cause.
 * If that does not resolve the issue, try switching to the Twenty Sixteen theme
   to rule-out a theme-specific issue (theme functions can interfere like plugins).
 * If neither of those make any difference, try [downloading WordPress](https://wordpress.org/download/)
   again, access your server via [SFTP or FTP](https://codex.wordpress.org/FTP_Clients),
   or a file manager in your hosting account’s control panel, and delete then replace
   your copies of everything on the server **except** the wp-config.php file and
   the /wp-content/ directory with fresh copies from the download. This will effectively
   replace all of your core files without damaging your content and settings.
 * Some uploaders tend to be unreliable when overwriting files, so don’t forget 
   to delete the original files before replacing them.

Viewing 1 replies (of 1 total)

The topic ‘Create new post – error’ is closed to new replies.

## Tags

 * [new-post](https://wordpress.org/support/topic-tag/new-post/)
 * [update](https://wordpress.org/support/topic-tag/update/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/create-new-post-error/#post-8823454)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
