The following Fatal error appears when modules Field and Language are not installed:
Class 'Drupal\language\Entity\ConfigurableLanguage' not found in /.../languagefield/src/Plugin/Field/FieldFormatter/LanguageFormatter.php on line 106
Steps to reproduce:
1. Install & enable Language field module
2. Add a language field to a content type
3. Make sure the language field is visible in the display settings
4. Save a node with a language field
The error goes away if you disable the language field from the display in content type OR if you enable the `language` field in core.
Should this module maybe be dependent on the core language module?
Comments
Comment #2
gerzenstl commented@matsbla to solve this error, enable the "Language" module that is available on Drupal core.
I submitted a patch to prevent this issue by adding that module as a dependency.
Comment #3
matsbla commented@gerzenstl
Yes I know as that is what I also wrote :)
Thanks for patch!
Comment #4
johnvComment #6
johnvCommitted. Thanks!
Comment #7
gerzenstl commentedYou're welcome!
Let me know if I can help with another issue.
Comment #8
johnvJust check the issue queue! :-)