Brand new installation off of Pantheon of D8.
Create a view with the following:
View Settings:
- Show: Content revisions
- of type: article
- sorted by: unsorted
Hit Save and edit button. Site fails with the following notice first:
Notice: Undefined index: type in Drupal\views\Plugin\views\wizard\WizardPluginBase->defaultDisplayFiltersUser() (line 944 of ......\core\modules\views\src\Plugin\views\wizard\WizardPluginBase.php)
Then the exception:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin does not exist. in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 52 of.....\core\lib\Drupal\Component\Plugin\Discovery\DiscoveryTrait.php).
If you remove the "Of type:" filter, the view gets created, but you're unable to add a filter for the type of content to show revisions for.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 2975429-9.patch | 3.66 KB | lendude |
| #9 | interdiff-2975429-5-9.txt | 584 bytes | lendude |
| #5 | 2975429-5.patch | 3.66 KB | lendude |
| #5 | 2975429-5-TEST_ONLY.patch | 730 bytes | lendude |
| #4 | 2975429-4.patch | 2.94 KB | lendude |
Comments
Comment #2
sdemi commentedSeeing same issue in 8.6.2
Comment #3
phreaknerd commentedConfirmed for 8.6.4.
Comment #4
lendudeSince this causes an unexpected fatal error through normal use of the UI, this is at least major.
This fail is caused by the weird situation that node revisions have bundles, but the bundle data is not actually stored on the revision table (it's on the node table, it never changes from revision to revision). So Views only checks if the entity has bundles and then assumes it will find a table that contains that data (not a weird assumption really).
Here is a quick fix, let's not assume we will find the correct table, and only add the filter if we do.
Other options I see to fix this would be:
- make node module expose the bundle data somehow (but that would probably mean adding a relationship too)
- make the 'type' selector not show up if the relevant field data can not be found, don't rely on $bundles
Comment #5
lendudeNow with the worlds most advanced test.....
Test only file is the interdiff.
Comment #9
lendudeNow without the stupid typo....
Comment #10
lendudeturns out this is a duplicate of #2978283: Creating a view with revisions triggers Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin does not exist., moving it there