Title: Fatal error when creating post (Help Please)
Last modified: December 8, 2024

---

# Fatal error when creating post (Help Please)

 *  [siapa](https://wordpress.org/support/users/siapa/)
 * (@siapa)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/fatal-error-when-creating-post/)
 * Help me this is the first time this happened, when I tried to make a post and
   a log appeared like this : 
   **Fatal error**: Uncaught Error: Attempt to assign
   property “post_content” on null in /var/www/html/censored.com/wp-admin/includes/
   post.php:808 Stack trace: #0 /var/www/html/ censored.com/wp-admin/post-new.php(
   66): get_default_post_to_edit(‘post’, true) #1 {main} thrown in /var/www/html/
   censored.com/wp-admin/includes/post.php on line 808
 * what do I have to do? I’m confused, I’ve done everything including: turning off
   all plugins, uninstalling themes, everything doesn’t work
 * ![](https://i0.wp.com/i.postimg.cc/NM4L1wvq/2024-12-08-10-55.png?ssl=1)
    -  This topic was modified 1 year, 6 months ago by [siapa](https://wordpress.org/support/users/siapa/).
    -  This topic was modified 1 year, 6 months ago by [siapa](https://wordpress.org/support/users/siapa/).
    -  This topic was modified 1 year, 6 months ago by [siapa](https://wordpress.org/support/users/siapa/).

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

 *  [Ahmod Musa](https://wordpress.org/support/users/musabin/)
 * (@musabin)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/fatal-error-when-creating-post/#post-18185324)
 * Hi,
 * Back up your site first.
   Download the latest WordPress version from [wordpress.org](https://wordpress.org).
   Replace the `/wp-admin/` and `/wp-includes/` folders on your server with fresh
   copies.
 * This should resolve core file issues.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/fatal-error-when-creating-post/#post-18185436)
 * I suspect that this is a side effect of another error that unfortunately does
   not appear in the list. This could cause WordPress to be unable to create a post
   object, which in turn leads to this error.
 * My recommendation would be to deactivate all plugins and see if that solves it.
   If so, one of the plugins was to blame.

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

The topic ‘Fatal error when creating post (Help Please)’ is closed to new replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/fatal-error-when-creating-post/#post-18185436)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
