When trying to add a custom block at index.php/block/add, it brings to an empty page. Click go back the following message is shown.
Notice: Undefined variable: request in Drupal\custom_block\Controller\CustomBlockController->addForm() (line 105 of core/modules/block/custom_block/lib/Drupal/custom_block/Controller/CustomBlockController.php).
Notice: Trying to get property of non-object in Drupal\custom_block\Controller\CustomBlockController->addForm() (line 105 of core/modules/block/custom_block/lib/Drupal/custom_block/Controller/CustomBlockController.php).

Anyone know how to fix this?
Thanks

Comments

benjy’s picture

Status: Active » Postponed (maintainer needs more info)

Could you give me some details to replicate. It seems to be working fine with an out of the box install.

spiderhole’s picture

Status: Closed (duplicate) » Postponed (maintainer needs more info)

I do get the same error when I access the add custom block from structure->place block and clicking the add custom block button.

-Aru

benjy’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Closing as a duplicate of #2027177: "Add custom block" broken

Status: Postponed (maintainer needs more info) » Closed (duplicate)