Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: Error: Setting unknown property: craft\ckeditor\Field::configFile #199

Closed
mattcdavis1 opened this issue Mar 28, 2024 · 2 comments
Closed
Labels

Comments

@mattcdavis1
Copy link

What happened?

Description

After running php craft ckeditor/convert/redactor I get a message "Error: Setting unknown property: craft\ckeditor\Field::configFile" This error breaks the site in both CLI context and web. It's a database error so I'm not able to git reset --hard to revert this.

Steps to reproduce

  1. Run php craft ckeditor/convert/redactor without a Default Redactor config
  2. Select "no" for "Do you already have a CKEditor config that should be used..."

redactor-error

Expected behavior

Success

Actual behavior

Fail with error

Craft CMS version

Craft Pro 4.8.6

PHP version

8.3.3

Operating system and version

Darwin 23.4.0

Database type and version

MySQL 5.7.23

Image driver and version

No response

Installed plugins and versions

S3
Neo
Redactor

@brandonkelly brandonkelly transferred this issue from craftcms/cms Mar 28, 2024
@brandonkelly
Copy link
Member

brandonkelly commented Mar 28, 2024

Thanks for reporting that! CKEditor 3.8.3 (Craft 4) and 4.0.3 (Craft 5) are out with a fix.

Unfortunately it’s not possible to fix retroactively, so you will either need to either:

  • Restore a database backup, update CKEditor, and run ckeditor/convert again; or
  • Search for configFile within all your now-CKEditor field configs within config/project/ and remove those lines, then run craft project-config/apply.

@mattcdavis1
Copy link
Author

Great - thanks! Fortunately I ran this locally first so yeah a quick sync from prod got me back up and running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants