When installing on the latest version of D8 or D9 the formatter entity is not loading any of the fields into the entity object and now crashes when trying to edit the formatter.

To replicate this issue install and try to edit an included formatter.

CommentFileSizeAuthor
#2 3188668-2.patch852 bytesgordon
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gordon created an issue. See original summary.

gordon’s picture

StatusFileSize
new852 bytes

I think it is to do with the config_export not being fully populated.

znak’s picture

Status: Active » Needs review

mortona2k made their first commit to this issue’s fork.

mortona2k’s picture

Version: 8.x-3.x-dev » 4.0.x-dev
Status: Needs review » Reviewed & tested by the community

The optional config has 3 example formatters, which were causing errors on missing properties.

With this patch, after uninstalling and reinstalling the module (to clear the config) I didn't get the errors.

Looks like this fixes it by defining the config_export for the missing properties. This should also also fix exporting custom formatter config.

nigelcunningham’s picture

The patch did the trick for me too.

deciphered’s picture

Status: Reviewed & tested by the community » Fixed

Thanks gordon. Committed to 4.1.x

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.