Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I'm evaluating the new Workspaces module.
I'm cheking the behavior with custom blocks, but I have the following error just after updating the block on the Custom block library page (admin/structure/block/block-content):
Drupal\Core\Entity\Exception\UndefinedLinkTemplateException: No link template 'revision' found for the 'block_content' entity type in Drupal\Core\Entity\Entity->toUrl() (line 224 of /var/www/docroot/core/lib/Drupal/Core/Entity/Entity.php).
On the front website however, the block renders well in the right version, when switching workspaces.
How to reproduce:
- Switch to a workspace (in my case, this is not the Live one)
- Go to admin/structure/block/block-content and update a custom block (custom type)
- After saving the block, you get the error
Comment | File | Size | Author |
---|---|---|---|
#3 | 3013029.patch | 3.52 KB | amateescu |
#3 | 3013029-test-only.patch | 2.3 KB | amateescu |
Comments
Comment #2
Ludo.RComment #3
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedThe problem here is actually in
\Drupal\Core\Field\Plugin\Field\FieldFormatter\StringFormatter
, not related to Workspaces at all :)Here's a fix for it.
Comment #5
Ludo.RI confirm that this patch solves the problem mentionned above.
Now I see that there may be another issue - related to Workspace this time - but I4ll create a new ticket.
Thanks! :)
Comment #6
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedHappy to help :) If you also looked at the code in the patch and you agree with it, you can set the status of the issue to RTBC, especially since you already tested it manually.
Comment #7
driverok CreditAttribution: driverok at EPAM Systems commentedI was able to reproduce the issue locally on 8.6.x branch with steps to reproduce provided and I confirm that patch #3 fixed the issue.
Comment #8
alexpottCrediting @dolu for reporting the issue.
Committed and pushed 58cffff60d to 8.7.x and 7feaa9647a to 8.6.x. Thanks!