Not sure if this is a bug with Language module or upstream or that but the issue occurs when attempting to save languages.
Steps to recreate
* Miminal install
* Enable comment module and don't set up any comment types
* Enable language and set up new language say en-us
* Enable content translation
* Goto http://localhost/en-us/admin/config/regional/content-language
* Hit save
The following error is shown
LogicException: Missing bundle entity, entity type comment_type, entity id comment. in Drupal\language\Entity\ContentLanguageSettings->calculateDependencies() (line 203 of core\modules\language\src\Entity\ContentLanguageSettings.php).
This is because bundle_of is not set for the comment entity and as such a none existent bundle type loaded and the depedency check fails.
Comment | File | Size | Author |
---|---|---|---|
#9 | 2444507-9.patch | 2.29 KB | hchonov |
Comments
Comment #1
larowlanThanks
Comment #2
marcingy CreditAttribution: marcingy commentedHere is a test that fails for the issue
Comment #4
Sutharsan CreditAttribution: Sutharsan commentedComment #5
andypostComment #6
hchonovFix + test.
Comment #7
hchonovComment #8
penyaskitoAFAIK getProvider() does return the module name, and a module can provide entities with a different name than the module itself. Should we compare to entity_type_id instead?
Comment #9
hchonov@penyaskito++:
Thanks! You are right of course. I missed that one....
Comment #10
hchonovComment #11
penyaskitoNitpick: !==
Can we at least assert the message shown when it is successfully saved?
Comment #12
plachI think this is a duplicate of #1919468: EntityManager::getAllBundleInfo() adds default entity_type_id bundle for entity types with bundles, please reopen if this is not fixed in 8.0.0 and following.
Comment #13
Gábor Hojtsy