craftcms / craftcms/cms

[4.x]: Some missing / hidden drafts after updates

Open
#16,397 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug craft4
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

What happened?
Description

I recently updated from:

Craft CMS: 4.13.7 -> 4.13.9
Craft SEOmatic: 4.1.7 -> 4.1.8
Craft Freeform: 5.7.2 -> 5.8.5

Afterwords, I noticed that 2 draft entries I was working on had 2 CKEditor fields' data not displaying—one just showed an "&nbsp" the other appeared empty.

I tried reverting the entry to the prior version and that made the fields' content reappear at first, but upon save it disappeared again. I tried doing the same thing, clicking into the fields, but not making additional changes, resaved and it kept the content shown that time.

I then exported the database and imported it into my local environment. Those 2 draft entries are not displayed in the CMS. I added:
'disabledPlugins' => '*',
…and both draft entries appear, but are missing again when the disabledPlugins config is removed.

Steps to reproduce
  1. Create a draft entry. Might need a CKEditor field with content.
  2. Update Craft CMS and Freeform—reference versions in description.
  3. See if the Draft CKEditor field content is still shown properly.
  4. Export database and import locally to see if the draft entry is visible.
Expected behavior

When updating Craft CMS and Freeform the CKEditor field content should remain and shown properly. Then exporting and importing the database with drafts should still be visible.

Actual behavior

When updating Craft CMS and Freeform the CKEditor field content was not shown properly. Then exporting and importing the database with drafts was not visible.

Craft CMS version

Pro 4.13.9

PHP version

8.2

Operating system and version

macOS 15.2

Database type and version

MySQL 8.3.9

Image driver and version

Imagick 3.7.0

Installed plugins and versions
  • CKEditor 3.10.0
  • Freeform 5.8.5
  • SEOmatic 4.1.8

(*not all included)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Reproduce the issue with Craft CMS 4.13.9, Freeform 5.8.5, CKEditor 3.10.0, and the listed PHP/MySQL versions, comparing normal and disabledPlugins configurations; it is done when draft entries and CKEditor content remain visible after updates and database export/import.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.