- πΊπΈUnited States richgerdes New Jersey, USA
This patch was committed.
https://git.drupalcode.org/project/uswds/-/commit/9d7f471a86696dd578389b....
We're using block_field β to place a block in a Paragraph (for some complicated layout), but the usdws base theme breaks the page ("The website encountered an unexpected error. Please try again later.")
In the error logs, we have "Notice: Undefined index: #id in uswds_preprocess_block() (line 21" followed by "Warning: assert(): Cannot load a NULL ID"
Lines 21 & 22 of block.preprocess.inc
if (!in_array($variables['plugin_id'], $no_grid)) {
$block = \Drupal\block\Entity\Block::load($variables['elements']['#id']);
Line 21 should also be checking for the existence of $variables['elements']['#id']
before attempting to load that as a block.
Needs review
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This patch was committed.
https://git.drupalcode.org/project/uswds/-/commit/9d7f471a86696dd578389b....