Suppose you add a views block in a home box page, and you later delete the views block.
Homebox still tries to load the deleted block. Hence a plugin not found exception is thrown.

Comments

bonrita created an issue. See original summary.

bonrita’s picture

Catch the exception.

bonrita’s picture

Catch exception.

drumm’s picture

Status: Active » Needs work

Looks okay, could use a code comment explaining the exception handling.

bonrita’s picture

Hi @drumm,

Please can you give an example of what you mean by the above comment and l will fix it as requested. Thanks in advance for reviewing and advise.

bonrita’s picture

Assigned: bonrita » Unassigned
anybody’s picture

Version: 8.x-1.x-dev » 2.0.x-dev

Please re-check with latest 2.0.x-dev!

anybody’s picture

Issue tags: -Uncaught exception

Suggesting to show a message and log an error via logger to tell the user which block to remove.

If not removable for the user, it should be auto-deleted and logged. But that's quite dangerous... ;) Better let the user decide, if possible.

grevil’s picture

Status: Needs work » Fixed

Fixed in #3264557: Plan for 2.0.0-alpha1 bugfix release

Thank you @bonrita for the patch! I added a logger notice, messenger error and edited the rendered block, when this Exception gets thrown.

  • Grevil committed 36cfe00 on 2.0.x authored by bonrita
    Issue #3012844 by bonrita, Grevil: Exception when pre-added view block...

Status: Fixed » Closed (fixed)

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