Problem/Motivation
Testing a fresh install with WxT 5.4.x , noticing Layout Builder glitch out.
Steps to reproduce layout_builder issue.
Clean install of WxT 5.4.x latest.
Attempt to add a block to any layout_builder layout, it will crash, js exception.
Same test with WxT 6.1.x no issues
Steps to reproduce
Install WxT 5.4.x
Proposed resolution
THE FIX:
WxT 5.4.x layout_builder_restrictions needs to be upgraded from ^2.0 to ^3.0
Remaining tasks
TBD
User interface changes
TBD
API changes
TBD
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | wxt-layout-builder-restrictions-error.jpg | 595.67 KB | smulvih2 |
Comments
Comment #2
joseph.olstadSuspecting that this bug is related to layout_builder_st 1.0.x
We're using layout_builder_st 2.0.x with WxT 6.1.x
would be good to confirm this suspicion.
Comment #3
joseph.olstadOk, the bug is thrown from layout_builder_restrictions
Path: /en/layout_builder/choose/block/layout_library/node_landing_page_full_default/1/main
Comment #4
joseph.olstadOk so to fix the bug with WxT 5.4.x layout_builder_restrictions needs to be upgraded from
^2.0to^3.0Comment #5
joseph.olstadComment #6
joseph.olstadhttps://github.com/drupalwxt/wxt/pull/335
Comment #7
joseph.olstadComment #8
joseph.olstadComment #9
joseph.olstadComment #10
joseph.olstadComment #11
smulvih2I was able to reproduce this error by editing a layout in the Layout Library page - /admin/structure/layouts
Editing a layout and trying to add a block produces the error below. I can confirm that upgrading to layout_builder_restrictions to 3.0.4 fixes the issue.
Comment #13
smulvih2This has been confirmed fixed and pushed to 5.4.x