When we try to use the context module:
Context: in this case adding a standard block to a certain node type and setting a condition to put it to the "content" region of that certaing node: it generates the following error:

Error: Call to a member function getRegion() on null in bulma_preprocess_block() (line 209 of /Applications/MAMP/htdocs/website/themes/bulma/bulma.theme)

line 209 is here in the bulma.theme.
// Set a region variable for use in templates.
$block = Block::load($variables['elements']['#id']);
$variables['region'] = $block->getRegion();
}

CommentFileSizeAuthor
#4 blocks_in_pages-2933009-4.patch502 bytesCauliflower

Comments

Reinier616 created an issue. See original summary.

Reinier616’s picture

Issue summary: View changes
Reinier616’s picture

Issue summary: View changes
Cauliflower’s picture

Status: Active » Needs review
StatusFileSize
new502 bytes

Patch attached fixes this issue

  • nedjo committed bdfcad0 on 8.x-1.x authored by Cauliflower
    Issue #2933009 by Cauliflower: Context set block on page breaks layout
    
nedjo’s picture

Status: Needs review » Fixed

Applied, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.