cms icon indicating copy to clipboard operation
cms copied to clipboard

[5.x]: Left behind redactor references

Open jpwdesigns opened this issue 5 months ago • 5 comments

What happened?

Description

We've fully migrated a craft 4 to 5 site. Redactor fields have all been converted to CKEditor. There are no redactor fields anywhere in the site. Searching the yaml files I still see references to craft/redactor/field

No problems exist that I can see. There are no errors, and all of the fields seem to work correctly so this issue has no symptoms other than the weird Yaml references. Why are they still there? Redactor has been uninstalled.

Steps to reproduce

  1. Migrate to craft 5 from 4.
  2. Migrate Redactor to CK
  3. Remove all redactor fields
  4. Uninstall Redactor
  5. Search Yaml files for "craft\redactor\Field"

Expected behavior

No references to redactor in Yaml config

Actual behavior

Lots of references in Yaml config.

Craft CMS version

5.8.16

PHP version

No response

Operating system and version

Servd

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Image

jpwdesigns avatar Sep 26 '25 16:09 jpwdesigns

Hi, thanks for getting in touch! I can also see you still have references to the matrixBlockTypes folder in your config/project/ directory. I assume the screenshot is from after you updated to v5? If that’s the case, that folder should be gone too (matrix block types are entry types in v5). Have you, by any chance, disabled automatic writes to yaml files?

i-just avatar Sep 30 '25 14:09 i-just

@i-just no we haven't disabled automatic writes to yaml files.

jpwdesigns avatar Oct 10 '25 21:10 jpwdesigns

@jpwdesigns Did you get any errors when updating? As @i-just said, that folder should go away during the update:

https://github.com/craftcms/cms/blob/ff394ccb9e70c83f16f47ea159ab2331b5e05084/src/migrations/m230617_070415_entrify_matrix_blocks.php#L292

Or maybe it was initially deleted, but came back due to a Git merge conflict or something? Maybe check your Git history for the Craft 5 upgrade commit and see if it was removed at that point.

brandonkelly avatar Oct 15 '25 16:10 brandonkelly

@jpwdesigns Did you get any errors when updating? As @i-just said, that folder should go away during the update:

cms/src/migrations/m230617_070415_entrify_matrix_blocks.php

Line 292 in ff394cc

$projectConfig->remove('matrixBlockTypes'); Or maybe it was initially deleted, but came back due to a Git merge conflict or something? Maybe check your Git history for the Craft 5 upgrade commit and see if it was removed at that point.

Thanks @brandonkelly we will investigate.

jpwdesigns avatar Oct 15 '25 16:10 jpwdesigns