This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.
If you can install plugins, install “Health Check”: https://ww.wp.xz.cn/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for JUST you, while you’re still logged in, without affecting normal visitors to your site. You can then use its admin bar menu to turn on/off plugins and themes one at a time. See https://make.ww.wp.xz.cn/support/handbook/appendix/troubleshooting-using-the-health-check/ or https://rankmath.com/kb/check-plugin-conflicts/ for more information.
See http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
Hi Steven,
There is no plugin conflict, I checked with Site Health and it showed site is good. Also, I am using Twenty default theme but the problem is still the same.
$post->post_content = (string) apply_filters( ‘default_content’, $post_content, $post );
This line has an issue
Please enable debugging, enabling wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://ww.wp.xz.cn/support/article/debugging-in-wordpress/
Hi,
Did you find any solution about this problem ? I have the same problem, same line, same error :
Warning: Creating default object from empty value in /homepages/6/d310147084/htdocs/wp-admin/includes/post.php on line 732
Warning: Cannot modify header information - headers already sent by (output started at /homepages/6/d310147084/htdocs/wp-admin/includes/post.php:732) in /homepages/6/d310147084/htdocs/wp-admin/admin-header.php on line 9
I was with wordpress 5.5.3. I updated my themes and all other suggested updates disapears (I add plugins and wordpress update which was pending). I disabled all themes and plugins, with no success. I manualy update to wordpress 5.6 and deleted (from wp-content) all recently updated plugins and themes. No more success. Same error remain only when I’m on add articles or pages, no error in other admin pages.
Thank you for any advice !
@verdesroches, If you need support then per the forum guidelines please start your own topic.
A lot more people will see your post, and that way you stand a good chance of getting the assistance you want. Despite any similarity in symptoms, your issue is likely to be completely different because of possible differences in physical servers, accounts, hosts, plugins, theme, configurations, etc. Thus one problem, on one setup is not indicative of the functionality and reliability of an application as a whole: https://ww.wp.xz.cn/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too
and: https://ww.wp.xz.cn/support/guidelines/#post-in-the-best-place
You can do so here: https://ww.wp.xz.cn/support/forum/how-to-and-troubleshooting/#new-post
I’ll be archiving your post and mine to not spam the original poster and detract from their question.
Thanks.