If I add a menu link (Main menu) on a multilanguage site I got the following error (admin/structure/menu/manage/main/add):
Drupal\Core\Entity\Exception\UndefinedLinkTemplateException: No link template "content-translation-overview" found for the "menu_link_content" entity type in Drupal\Core\Entity\Entity->urlInfo() (line 189 of core/lib/Drupal/Core/Entity/Entity.php).
And I got the same error when I try to edit this menu (admin/structure/menu/manage/main)
Step to reproduce:
1- Install d8.
2- Go to extend (admin/modules) and install (Content Translation, Interface Translation and Language).
3- Go to Languages (admin/config/regional/language), add a language.
4- Go to Content language (admin/config/regional/content-language) check "Custom menu link" and "Save configuration".
5- Add a menu link to Main navigation menu (admin/structure/menu/manage/main/add) and bump!
Comment | File | Size | Author |
---|---|---|---|
#8 | interdiff.txt | 1.25 KB | dawehner |
#8 | 2414047-6.patch | 1.85 KB | dawehner |
Comments
Comment #1
rpayanmComment #2
larowlanSounds like same issue as #2253735: WSOD on custom block creation / listing if config translation enabled
Comment #3
larowlantaking a captain cook
Comment #4
larowlanHere's the fix, need a test though
Comment #5
larowlanComment #6
larowlanstart on a test, can't get $entity->isTranslatable() to return TRUE though, so the translate link doesn't show and the Exception isn't thrown
Comment #7
larowlanComment #8
dawehnerAdded a test in the right place.
Comment #10
tstoecklerAwesome, thanks!
Comment #11
larowlanThanks
Comment #12
catchCommitted/pushed to 8.0.x, thanks!
Comment #14
rpayanmI found another occurrence of this (in code) on core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php:
This is ok? or would be fixed?
Comment #15
rpayanmohh sorry for the last comment I forgot to do a "git pull" :( that is exactly the code that was changed in the committed patch :)