While updating a custom profile from 8.5.6 to 8.6.1 I get this error:Drupal\\Component\\Plugin\\Exception\\PluginNotFoundException: The "" entity type does not exist.
(see complete trace at end)
Doing a search in code I found that core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php do this to calculate dependencies:
/**
* {@inheritdoc}
*/
public function calculateDependencies() {
$module_name = $this->entityTypeManager
->getDefinition($this->getPluginDefinition()['type'])
->getProvider();
return ['module' => [$module_name]];
}
Where read the plugin type always, but DeleteNode and DeleteComment don't have it, and throw the empty entity error.
That problem was introduced in the path of #2670730, where type and confirm_form_route_name plugin properties was removed. I think that remove confirm_form_route_name was ok, but type not.
I will submit a path with test, but I don't have experience with that and I don't have a environment to execute it. I'm sorry by that. :)
Trace DeleteComment
[Fri Sep 14 13:07:20.702923 2018] [php7:notice] [pid 18315] [client 10.0.3.1:37280] Drupal\\Component\\Plugin\\Exception\\PluginNotFoundException: The "" entity type does not exist. in /var/www/html/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php on line 133
#0 /var/www/html/web/modules/contrib/devel/webprofiler/src/Entity/EntityManagerWrapper.php(207): Drupal\\Core\\Entity\\EntityTypeManager->getDefinition('', true)
#1 /var/www/html/web/core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php(57): Drupal\\webprofiler\\Entity\\EntityManagerWrapper->getDefinition('')
#2 /var/www/html/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(51): Drupal\\Core\\Action\\Plugin\\Action\\EntityActionBase->calculateDependencies()
#3 /var/www/html/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(69): Drupal\\Core\\Config\\Entity\\ConfigEntityBase->getPluginDependencies(Object(Drupal\\comment\\Plugin\\Action\\DeleteComment))
#4 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(383): Drupal\\Core\\Config\\Entity\\ConfigEntityBase->calculatePluginDependencies(Object(Drupal\\comment\\Plugin\\Action\\DeleteComment))
#5 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(341): Drupal\\Core\\Config\\Entity\\ConfigEntityBase->calculateDependencies()
#6 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(471): Drupal\\Core\\Config\\Entity\\ConfigEntityBase->preSave(Object(Drupal\\Core\\Config\\Entity\\ConfigEntityStorage))
#7 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(426): Drupal\\Core\\Entity\\EntityStorageBase->doPreSave(Object(Drupal\\system\\Entity\\Action))
#8 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(263): Drupal\\Core\\Entity\\EntityStorageBase->save(Object(Drupal\\system\\Entity\\Action))
#9 /var/www/html/web/modules/contrib/devel/webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php(108): Drupal\\Core\\Config\\Entity\\ConfigEntityStorage->save(Object(Drupal\\system\\Entity\\Action))
#10 /var/www/html/web/core/lib/Drupal/Core/Entity/Entity.php(390): Drupal\\webprofiler\\Entity\\Decorators\\Config\\ConfigEntityStorageDecorator->save(Object(Drupal\\system\\Entity\\Action))
#11 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(632): Drupal\\Core\\Entity\\Entity->save()
#12 /var/www/html/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(332): Drupal\\Core\\Config\\Entity\\ConfigEntityBase->save()
#13 /var/www/html/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(132): Drupal\\Core\\Config\\ConfigInstaller->createConfiguration('', Array)
#14 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php(75): Drupal\\Core\\Config\\ConfigInstaller->installDefaultConfig('module', 'comment')
#15 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(268): Drupal\\Core\\ProxyClass\\Config\\ConfigInstaller->installDefaultConfig('module', 'comment')
#16 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\\Core\\Extension\\ModuleInstaller->install(Array, false)
#17 /var/www/html/web/core/includes/install.core.inc(1885): Drupal\\Core\\ProxyClass\\Extension\\ModuleInstaller->install(Array, false)
#18 /var/www/html/web/core/includes/batch.inc(294): _install_module_batch('comment', 'Comment', Array)
#19 /var/www/html/web/core/includes/batch.inc(137): _batch_process()
#20 /var/www/html/web/core/includes/batch.inc(93): _batch_do()
#21 /var/www/html/web/core/includes/install.core.inc(679): _batch_page(Object(Symfony\\Component\\HttpFoundation\\Request))
#22 /var/www/html/web/core/includes/install.core.inc(584): install_run_task(Array, Array)
#23 /var/www/html/web/core/includes/install.core.inc(125): install_run_tasks(Array, NULL)
#24 /var/www/html/web/core/install.php(44): install_drupal(Object(Composer\\Autoload\\ClassLoader))
Trace DeleteNode
[Fri Sep 14 13:02:30.935900 2018] [php7:notice] [pid 18328] [client 10.0.3.1:36908] Drupal\\Component\\Plugin\\Exception\\PluginNotFoundException: The "" entity type does not exist. in /var/www/html/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php on line 133
#0 /var/www/html/web/modules/contrib/devel/webprofiler/src/Entity/EntityManagerWrapper.php(207): Drupal\\Core\\Entity\\EntityTypeManager->getDefinition('', true)
#1 /var/www/html/web/core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php(57): Drupal\\webprofiler\\Entity\\EntityManagerWrapper->getDefinition('')
#2 /var/www/html/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(51): Drupal\\Core\\Action\\Plugin\\Action\\EntityActionBase->calculateDependencies()
#3 /var/www/html/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(69): Drupal\\Core\\Config\\Entity\\ConfigEntityBase->getPluginDependencies(Object(Drupal\\node\\Plugin\\Action\\DeleteNode))
#4 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(383): Drupal\\Core\\Config\\Entity\\ConfigEntityBase->calculatePluginDependencies(Object(Drupal\\node\\Plugin\\Action\\DeleteNode))
#5 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(341): Drupal\\Core\\Config\\Entity\\ConfigEntityBase->calculateDependencies()
#6 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(471): Drupal\\Core\\Config\\Entity\\ConfigEntityBase->preSave(Object(Drupal\\Core\\Config\\Entity\\ConfigEntityStorage))
#7 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(426): Drupal\\Core\\Entity\\EntityStorageBase->doPreSave(Object(Drupal\\system\\Entity\\Action))
#8 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(263): Drupal\\Core\\Entity\\EntityStorageBase->save(Object(Drupal\\system\\Entity\\Action))
#9 /var/www/html/web/modules/contrib/devel/webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php(108): Drupal\\Core\\Config\\Entity\\ConfigEntityStorage->save(Object(Drupal\\system\\Entity\\Action))
#10 /var/www/html/web/core/lib/Drupal/Core/Entity/Entity.php(390): Drupal\\webprofiler\\Entity\\Decorators\\Config\\ConfigEntityStorageDecorator->save(Object(Drupal\\system\\Entity\\Action))
#11 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(632): Drupal\\Core\\Entity\\Entity->save()
#12 /var/www/html/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(332): Drupal\\Core\\Config\\Entity\\ConfigEntityBase->save()
#13 /var/www/html/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(132): Drupal\\Core\\Config\\ConfigInstaller->createConfiguration('', Array)
#14 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php(75): Drupal\\Core\\Config\\ConfigInstaller->installDefaultConfig('module', 'node')
#15 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(268): Drupal\\Core\\ProxyClass\\Config\\ConfigInstaller->installDefaultConfig('module', 'node')
#16 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\\Core\\Extension\\ModuleInstaller->install(Array, false)
#17 /var/www/html/web/core/includes/install.core.inc(1885): Drupal\\Core\\ProxyClass\\Extension\\ModuleInstaller->install(Array, false)
#18 /var/www/html/web/core/includes/batch.inc(294): _install_module_batch('node', 'Node', Array)
#19 /var/www/html/web/core/includes/batch.inc(137): _batch_process()
#20 /var/www/html/web/core/includes/batch.inc(93): _batch_do()
#21 /var/www/html/web/core/includes/install.core.inc(679): _batch_page(Object(Symfony\\Component\\HttpFoundation\\Request))
#22 /var/www/html/web/core/includes/install.core.inc(584): install_run_task(Array, Array)
#23 /var/www/html/web/core/includes/install.core.inc(125): install_run_tasks(Array, NULL)
#24 /var/www/html/web/core/install.php(44): install_drupal(Object(Composer\\Autoload\\ClassLoader))