Problem/Motivation

  1. Install Drupal with Standard profile
  2. Enable Configuration translation module
  3. Go create a custom block, it will be created, but you get a 500 error response page (with the green message and nothing else)
  4. 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.

CommentFileSizeAuthor
custom-block-broken.patch804 bytesGábor Hojtsy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Gábor Hojtsy’s picture

Title: WSON on custom block creation / listing if config translation enabled » WSOD on custom block creation / listing if config translation enabled

That is WSOD not WSON.

olli’s picture

vijaycs85’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#2253735: WSOD on custom block creation / listing if config translation enabled

Ok, it looks like a duplicate and #2253735: WSOD on custom block creation / listing if config translation enabled has the same fix with test coverage.

Gábor Hojtsy’s picture

Issue tags: -sprint

Removing from sprint then.