Post editor blank for certain pages after restoring database
-
I am having a baffling problem that I can’t figure out.
Last week, I discovered that if I restore a site database from backup (using UpdraftPlus), following the restore, certain pages appear to be blank in the Classic Editor window, both in the Visual and Text tabs, showing a word count of 0. (I do not use Gutenberg.) If I examine the posts table via phpMyAdmin, the HTML content is still there in the applicable post_content fields, and if I load an affected page on the front end, it appears to load okay. However, I lose the ability to edit it unless I recreate it from scratch.
Not all content is affected in this way. For some reason, the effect appears to be limited to pages, not posts, and only certain pages. The pages affected appear to be consistent from incident to incident, but I can’t see any pattern in terms of size/length, age, or recency of update.
Since the post_content appears to be being backed up and restored correctly (if I download and review the backup file, the posts table contains all the content as it should, and there are no significant errors in either the backup or restore logs), the problem doesn’t appear to be with UpdraftPlus. The plugin appears to be functioning as it should, and a test loading its database backup into a fresh WordPress database on the same server worked as it should.
I HAVE previously been able to restore without issue, and had done so as recently as late October. This happens on multiple sites using different themes, so it’s not a theme issue. It occurs even if I disable all plugins other than UpdraftPlus prior to restoring.
Doing some web searches suggests that a number of other people have had a similar issue, but found no solution that seems to help.
I’m completely baffled. Does anyone have any thoughts? I’m running out of ideas. This is a big problem — I can’t restore from backup without rendering some of my most important page content (e.g., the privacy policy!) uneditable, and I can’t figure out why.
- The topic ‘Post editor blank for certain pages after restoring database’ is closed to new replies.