Hello,
when you try to create Post and IF your post is created successfully with this Warnings , then you should just make debug FALSE like below in wp-config.php root file , so with this warnings will be OFF.
define( 'WP_DEBUG', false );
Thank you. The new post is not created. When I click New>Post or Add New, the page reloads blank with those two warnings printed.
Hello @grecoair
Try to disable plugins , may be some plugins conflicting and then check if post is working or not .
Try clearing the site’s cookies from your browser (you’ll have to log in again) and clearing the browser cache.
Hello. I’ve disabled all my plugins, deleted the browser cache and the site’s cookies. Now when I try to log back in to wordpress, there is a blank page with the text “Sorry, you are not allowed to access this page.”. It appears some of the steps I have taken has locked me out of my wordpress account.
edit: I was able to find a way to log back into my account. The original condition persists.
The error code points to these lines of code in the associated files:
wp-admin/includes/post.php Line 787: $post->post_content = (string) apply_filters( ‘default_content’, $post_content, $post );
wp-admin/admin-header.php Line 9: header( ‘Content-Type: ‘ . get_option( ‘html_type’ ) . ‘; charset=’ . get_option( ‘blog_charset’ ) );
-
This reply was modified 11 months, 2 weeks ago by
grecoair.
-
This reply was modified 11 months, 2 weeks ago by
grecoair.
@mayuripatel I was able to solve this. I was not able to locate the error within line 787, but I reverted to an earlier backup, the problem remained with the earlier backup, and when I restored the current version, the condition no longer existed.
The cause is unknown, which is frustrating, but it was not caused by editing any of the files. If anyone can shed light on this recurring issue, it would be greatly appreciated.
We have the same error on a site, we don’t know how to solve it, we have tried absolutely everything.