Problem/Motivation
- Install Drupal with Standard profile
- Enable Configuration translation module
- Go create a custom block, it will be created, but you get a 500 error response page (with the green message and nothing else)
- Reload the (list) page that you are on and it will still whitescreen
Error in error log:
Uncaught PHP Exception Drupal\\Core\\Entity\\Exception\\UndefinedLinkTemplateException: "No link template "drupal:config-translation-overview" found for the "custom_block" entity type" at ...../drupal/core/lib/Drupal/Core/Entity/Entity.php line 178
The problem is the custom block listing uses a list builder originally designed for config entities and the config_translation code assumes it will have a config translation link template. So breaks.
Proposed resolution
Only alter the entity operations if the entity has a link template for config translation.
Remaining tasks
Add tests.
User interface changes
None.
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
custom-block-broken.patch | 804 bytes | Gábor Hojtsy | |
Comments
Comment #1
Gábor HojtsyThat is WSOD not WSON.
Comment #2
olli CreditAttribution: olli commented#2253735: WSOD on custom block creation / listing if config translation enabled has a test.
Comment #3
vijaycs85Ok, it looks like a duplicate and #2253735: WSOD on custom block creation / listing if config translation enabled has the same fix with test coverage.
Comment #4
Gábor HojtsyRemoving from sprint then.