I am getting the below message while creating a block from custom module.

"This block is broken or missing. You may be missing content or you might need to enable the original module."

Could you please provide a solution to fix this?

Comments

jithinantony created an issue. See original summary.

k2abhishek’s picture

HI ,

Did you get the solution for this issue, as I am also facing the same issue.

manuel.adan’s picture

Status: Active » Fixed

Drupal alerts with the "This block is broken or missing" message when a referenced custom block doesn't exists. Insert block module can do little in such situations.

fixed block content module may help on that. The module provides a type of block based on configuration (the fixed block) that wraps a custom block (the content block). If the content block does not exist, it is created with a default content or empty if no default content was set. Fixed blocks are config entities, only a site administrator can delete from the system and will be present in a fresh installation of your website, so it may prevent that situation.

Status: Fixed » Closed (fixed)

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