Cannot create new pages since Update
-
Hello,
I had a 5 year old page that was on wordpress 3.* when I remember correctly, I updated to wordpress 5.1 locally and it seemed like everything was fine, but now I have the following problem:
when creating a new post or page I got a white page with the Warning “Creating default object from empty value in …..includes/post.php on line 708”.
So I commented out the code parts that were responsible for this $post->post_content = (string) apply_filters( ‘default_content’, $post_content, $post );
$post->post_title = (string) apply_filters( ‘default_title’, $post_title, $post );
and
$post->post_excerpt = (string) apply_filters( ‘default_excerpt’, $post_excerpt, $post );Now I am able to create a new page, but when I try to save it, I get the message: Unfortunately, you are not allowed to edit this post.
But I am able to edit pages and posts and save those changes. I am logged in as admin.
What I tried:
Deactivating all plugins, using another theme, reinstalling wordpress 5.1, reinstalling core files, using healthcheck and activate the debug mode.
I am using php 7.2
Healtchcheck and debug mode only warned about minor issues like not using https, Transients etc.
Thank you for your help, it seems like there is no solution to this problem.
- The topic ‘Cannot create new pages since Update’ is closed to new replies.