[5.x]: Left behind redactor references
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
- Migrate to craft 5 from 4.
- Migrate Redactor to CK
- Remove all redactor fields
- Uninstall Redactor
- 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
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 no we haven't disabled automatic writes to yaml files.
@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.
@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.