Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all,
Sometimes I write an edit block link such as example.com/admin/structure/block/manage/block/117/configure in my notes. I have noticed that if I click a link to edit a block that does not exist (eg because it has since been deleted) I get a white screen. Is that expected behaviour? Surely I should get e helpful message such as "sorry that block does not exist"...
Comments
Comment #1
Juc1 CreditAttribution: Juc1 commentedComment #2
dcam CreditAttribution: dcam commentedI can verify this bug. I got a Fatal error: Unsupported operand types in C:\wamp\www\d7test\modules\block\block.module on line 519, which is in block_custom_block_form(). The error just means that the $edit parameter didn't contain an array as expected.
Anyway, we probably should find a way to return a 404 instead of letting the page WSOD.
Comment #3
dcam CreditAttribution: dcam commentedActually, this is a duplicate of #866972: Fatal error when attempting to edit non-existent block.