- π³πΏNew Zealand quietone
I tested on Drupal 11.x, standard install, using the steps in the issue summary. I was not able to reproduce the problem. Presumably because the block is deleted when the view is deleted.
from #1879774: Catch plugin exceptions for invalid views display plugins β , reported by oadaeh:
I did a brand new install with D8 code downloaded less than an hour ago (which means the committed changes from this issue are in it) into a new database, and then performed the following steps:
Created a view (of users) with a block display
Placed that block in a region
Deleted the view
Displayed or refreshed a page that has the block on it
I get a WSOD. (When I did this last night, I was also getting an error message, but I'm not getting it now, so I can't post it).I get this from Apache:
PHP Fatal error: Call to a member function access() on a non-object in /.../core/modules/views/lib/Drupal/views/Plugin/Block/ViewsBlock.php on line 56If I delete the associated .yml file, everything is fine again.
Closed: outdated
11.0 π₯
Last updated
Related to the Views in Drupal Core initiative.
Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I tested on Drupal 11.x, standard install, using the steps in the issue summary. I was not able to reproduce the problem. Presumably because the block is deleted when the view is deleted.