Attempt to assign property post_content on null – Critical WordPress Error
Are you seeing an error when creating new posts or pages in WordPress?
Attempt to assign property post_content on null
A bad database migration likely causes the error.
I have experienced this error when exporting a WordPress database using the database export tool built into PHPStorm through an SSH tunnel to set up a WordPress database in my local development environment.
Solved “Attempt to assign property post_content on null”
For myself, the solution was to use another tool, such as DBeaver, to take a backup dump of the remote database and restore the local database with the new MySQL dump.