Cards Group Breaking in layout builder. Twig and Ajax errors.

Created on 18 August 2023, 11 months ago
Updated 23 August 2023, 10 months ago

When trying to add a custom block for cards in the layout builder I get the following errors:

Uncaught PHP Exception Twig\\Error\\RuntimeError: "The "filter" filter expects an array or "Traversable", got "NULL"." at modules\\contrib\\uswds_paragraph_components\\modules\\uswds_paragraph_components_cards\\templates\\paragraph--uswds-card-group-regular.html.twig line 58

And the ajax error:

Uncaught
Object { message: "\nAn AJAX HTTP error occurred.\nHTTP Result Code: 500\nDebugging information follows.\nPath: /layout_builder/add/block/overrides/node.138676/0/content/inline_block%3Acard_?_wrapper_format=drupal_ajax&ajax_form=1\nStatusText: 500 Service unavailable (with message)\nResponseText: The website encountered an unexpected error. Please try again later.", name: "AjaxError", stack: "@http://hitd8.test/core/misc/ajax.js?v=9.4.10:110:32\n@http://hitd8.test/core/misc/ajax.js?v=9.4.10:676:3\n" }
​
message: "\nAn AJAX HTTP error occurred.\nHTTP Result Code: 500\nDebugging information follows.\nPath: /layout_builder/add/block/overrides/node.138676/0/content/inline_block%3Acard_?_wrapper_format=drupal_ajax&ajax_form=1\nStatusText: 500 Service unavailable (with message)\nResponseText: The website encountered an unexpected error. Please try again later."

I also cannot see any configuration options when I try to add the Card Block.

πŸ› Bug report
Status

Closed: duplicate

Version

2.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States primus

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

Comments & Activities

Production build 0.69.0 2024