Translation page not accessible when a block breaks

Created on 7 July 2020, about 4 years ago
Updated 3 March 2024, 7 months ago

Hi,

I sadly can't provide instructions to reproduce the bug, but I got this error :

Call to a member function isTranslatable() on null in Drupal\layout_builder_st\Element\LayoutBuilder->createContextualLinkElement() (line 159 of modules/contrib/layout_builder_st/src/Element/LayoutBuilder.php).

I saw that this module assume that Drupal found a block, but I got in a situation where our block doesn't exists (may be linked to another issue).

But when this happens, the layout builder pages for the translation breaks.

Adding some defense around that would at least help to not get lock in a scenario where we have to delete a whole page for one broken block.

EDIT : We found out that manually accessing the "Discard changes" page allowed us to remove the problematic block from our page. We suspect that this block was removed from the parent page while the translated page was still being worked on.

🐛 Bug report
Status

RTBC

Component

Code

Created by

🇨🇦Canada arakwar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024