Closed (fixed)
Project:
UI Patterns (SDC in Drupal UI)
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2024 at 08:20 UTC
Updated:
10 Jun 2025 at 22:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
auth commentedAttached is a patch impolementing the proposed resolution
Comment #3
auth commentedComment #4
andyd328The patch work for me. Many thanks auth.
Changing to major as it really is important to pick up custom patterns, borderline critical as it breaks the parts of a site without this patch.
Comment #5
pdureau commentedHello guys,
Thanks for your contribution. The issue you met may be a side effect of #3314789: Fix views preview when pattern declared by ui_pattern_library in the front theme.
I would not do the review myself, because this subject is a bit tricky to me. I am afraid if we fix one stuff here, we will have a side effect somewhere else.
Is applying the patch on your project good enough for now?
Comment #6
robert dearmond commentedI have been struggling with this same issue and finally found #2 patch works for me!
My error was:
Uncaught PHP Exception Twig\Error\LoaderError: "Template "modules/contrib/ui_patterns/modules/ui_patterns_library/templates/pattern-page-body.html.twig" is not defined." at /code/web/modules/contrib/ds/templates/ds-entity-view.html.twig line 10
Comment #9
duaelfrConverted the patch in a MR to let the CI do its magic
Comment #11
duaelfrExisting tests are stable. Let's merge this before moving on to the next major.
Comment #12
duaelfr