Attempt to assign property post_content on null – Critical WordPress Error
By Dillon Smart · · · 0 Comments
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.
Learn how to set up MySQL database connections in PHPStorm.
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.
Follow this tutorial to set up an SSH connection to a remote database in DBeaver.
0 Comment