Hiya,
First, please undo the edits you made in wp-includes/post.php, that’s a core file and should never be edited 🙂
If you got a white screen when making changes it indicates a fatal error, this is very likely caused by a plugin or theme conflict. You mentioned looking at the Health Check plugin and it not reporting any noteworthy issues, but did you try Troubleshooting Mode with a default theme and no plugins active?
Hey, I am aware that after an update the changes will be undone, I just wanted to makes sure what is responsible for the whitescreen.
And I was wondering why I still cant create a new page when I can edit them at all times.
When I change the theme and deactivate all plugins except for health check I still get the same warnings about https and transients. No matter which Theme I use.
Nothing seems to help.
What I noticed though, is that creating a new page does look like it usually does but when I edit a page it kinda looks like a plugin is working where I can add blocks and all pages have only the “classical” block.
But there is no Plugin installed handling this. advanced custom fields, platinum seo, redirecting and user role editor. And healthcheck which I installed when the issues occured.
In case someone runs into a similar issue:
apparently something just didnt work in the database. I optimized and repaired and it didnt work.
What I did was install WP 5.1 on a blank page, which created a new database, there I could do everything even with the same theme and plugins. I then Imported the old wordpress page. Now everything works perfectly fine.
Do not import the old database in phpmyadmin though, you will end up with the same problems. Using the wordpress import will do just fine.
You can find this under Tools -> Export data on your old installation and in your new installation you go to Tools -> Import data and click on wordpress.
I was having the same problem. It seems like I tried everything under the sun.
I narrowed it down to the database… it was hidden somewhere in there. This was happening on my local machine, whereas the remote version on my VPS worked just fine.
Even reverting back to WordPress 4.x didn’t fix the issue. Using the Classic Editor plugin at least got a new post to semi-load (instead of a white screen), but there were the same errors at the top, and it acted as if I was a contributor instead of an admin (“Submit for Review”), and if I tried to create something, it threw the error that says I don’t have permission to edit this post.
Meanwhile everything else about the site worked. I could edit existing posts, add themes and plugins, change settings, etc.
I have been a WordPress developer for many years and fixed many client sites, but this one really eluding me because I couldn’t narrow it down beyond the DB, and none of the standard fixes worked (change theme, disable plugins, clear cache/cookies, switch browsers, revert version, etc). I looked in the DB for some standard problems and everything looked good. I even tried installing a database backup of my local site from a month before to no avail. Very strange.
I finally “fixed” my site by replacing my local database with my remote version and am using that instead. I have no fixes for someone that wants to address the root issue of this without throwing away their DB, aside from saying that you can eliminate any potential solution that doesn’t change the database.