Warning: Creating default object from empty value
-
Hello – I logged into my website this morning to add a new property to our real estate listings, and when I went to go into the new property post, I was met with the error message Warning: Creating default object from empty value in /wp-admin/includes/post.php.
I am baffled as to what could have caused this, as I just added another property a couple of days ago and there was no issue.
In addition to the error message, my publish button has been replaced with a “submit for review.” button.
I’ve tried;
– Deactivating all plugins
– Deleting all plugins
– Installing Health Check (though it’s almost like it won’t show me new changes to the site, including new plugins added)
– I even pulled the post.php file to see if I could see something obviously wrong with the line in question… though I’m not a programmer at all so it was fairly Greek to me. lines 642 – 652 are included below though:$post->post_content = apply_filters( ‘default_content’, $post_content, $post );
/**
* Filters the default post title initially used in the “Write Post” form.
*
* @since 1.5.0
*
* @param string $post_title Default post title.
* @param WP_Post $post Post object.
*/
$post->post_title = apply_filters( ‘default_title’, $post_title, $post );None of the above things have worked at all and I’m starting to panic a little bit. Has anyone experienced a resolution on this? I’ve found a few threads on various websites, but it didn’t sound like they got resolved.
THANK YOU for any help you can provide!
The page I need help with: [log in to see the link]
- The topic ‘Warning: Creating default object from empty value’ is closed to new replies.