After updading a Drupal site from 8.6.16 to 8.7.1 (PostgreSQL 9.6.13 , Nginx) I get this error in almost every operation (creating a view , installing a module, creating a content type, creating a menu, importing feeds, ….) with diferent plugins (“views.view.“,”core.extension”,”node.type.“,”system.menu.*” )
DrupalComponentPluginExceptionPluginNotFoundException: The "{whatever}" plugin does not exist.
Valid plugin IDs for DrupalCoreTypedDataTypedDataManager are: filter_format, any, float, string, boolean, timespan,[...]
in DrupalCorePluginDefaultPluginManager->doGetDefinition() (line 53 de /"path-to-drupal"/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
but there is no error when I create/delete a content (article), user, menu item, …
I use the drupal-project composer template so my update process was:
composer update --with-dependencies webflo/drupal-core-require-dev drupal/* "symfony/*" -d /<path/to/site> --no-interaction ;
cd /path/to/site>
drush updb
drush cron
drush cr
It was not successfull, so I do this:
rm -rf vendor/*
composer update
and run again previous commands which It worked.
I though that I could be a problem with PHP version so I update from PHP 7.0 to PHP 7.3, but the error still remains.
I also thought that it could be related with a feeds module installation so delete all feeds content, feeds types, etc .. and unistall and reinstall the module several times (also run drush devel-entity-updates because drupal status report warned of a feeds field that needed to be deleted)although two tables “feeds_feed” and “feeds_subscriptions” still remains in database.
After see that the problem was related with multiples plugins I start looking for a more generic issue (config?, permissions?, …) but I dont find cause/solution.
EDIT 1
Looking for a stack trace I try using drupal console:
drupal site:mode dev -v
and get this:
In DiscoveryTrait.php line 53:
[DrupalComponentPluginExceptionPluginNotFoundException]
The "system.performance" plugin does not exist. Valid plugin IDs for DrupalCoreTypedDataTypedDataManager are: filter_format, any, float, string, boolean, timespan, language_reference, language, map
, binary, timestamp, list, datetime_iso8601, uri, integer, duration_iso8601, email, field_item:comment, field_item:datetime, field_item:daterange, field_item:file_uri, field_item:file, field_item:font
awesome_icon, field_item:image, field_item:link, field_item:list_integer, field_item:list_float, field_item:list_string, field_item:path, field_item:telephone, field_item:text, field_item:text_long, f
ield_item:text_with_summary, field_item:time_range, field_item:time, field_item:webform, field_item:email, field_item:uri, field_item:entity_reference, field_item:uuid, field_item:timestamp, field_ite
m:string_long, field_item:language, field_item:password, field_item:changed, field_item:float, field_item:decimal, field_item:map, field_item:boolean, field_item:integer, field_item:created, field_ite
m:string, entity, entity:block, entity:block_content_type, entity:block_content, entity:block_content:basic, entity:captcha_point, entity:comment, entity:comment:comment_forum, entity:comment_type, en
tity:contact_form, entity:contact_message, entity:contact_message:feedback, entity:contact_message:personal, entity:editor, entity:field_config, entity:field_storage_config, entity:file, entity:filter
_format, entity:image_style, entity:imce_profile, entity:language_content_settings, entity:configurable_language, entity:media_type, entity:media, entity:media:audio, entity:media:file, entity:media:i
mage, entity:media:remote_video, entity:media:video, entity:node_type, entity:node,[...], entity:node:page, entity:node:position, entity:rdf_mapping, entity:responsive_image_style, entity:rest_resource_config, entity:rules_reaction_rule, entity:rules_component, entity:s
earch_page, entity:shortcut_set, entity:shortcut, entity:shortcut:default, entity:action, entity:menu, entity:taxonomy_vocabulary, entity:taxonomy_term, entity:taxonomy_term:badge_type, entity:taxonom
y_term:categories, entity:taxonomy_term:forums, entity:taxonomy_term:materials, entity:taxonomy_term:nivel, entity:taxonomy_term:tags, entity:toolbar_menu_element, entity:tour, entity:user, entity:use
r_role, entity:webform_options, entity:webform, entity:webform_submission, [..], entity:menu_link_content, entity:pathauto_pattern, entity
:view, entity:base_field_override, entity:entity_view_mode, entity:entity_view_display, entity:entity_form_mode, entity:entity_form_display, entity:date_format, entity_reference
Exception trace:
() at /home/"<user>"/www/"<site>"/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php:53
DrupalCorePluginDefaultPluginManager->doGetDefinition() at /home/"<user>"/www/"<site>"/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php:25
DrupalCorePluginDefaultPluginManager->getDefinition() at /home/"<user>"/www/"<site>"/web/core/lib/Drupal/Core/TypedData/DataDefinition.php:195
DrupalCoreTypedDataDataDefinition->getClass() at /home/"<user>"/www/"<site>"/web/core/lib/Drupal/Core/TypedData/TypedDataManager.php:86
DrupalCoreTypedDataTypedDataManager->createInstance() at /home/"<user>"/www/"<site>"/web/core/lib/Drupal/Core/TypedData/TypedDataManager.php:103
DrupalCoreTypedDataTypedDataManager->create() at /home/"<user>"/www/"<site>"/web/core/lib/Drupal/Core/Config/TypedConfigManager.php:394
DrupalCoreConfigTypedConfigManager->createFromNameAndData() at /home/"<user>"/www/"<site>"/web/core/lib/Drupal/Core/Config/StorableConfigBase.php:134
DrupalCoreConfigStorableConfigBase->getSchemaWrapper() at /home/"<user>"/www/"<site>"/web/core/lib/Drupal/Core/Config/StorableConfigBase.php:179
DrupalCoreConfigStorableConfigBase->castValue() at /home/"<user>"/www/"<site>"/web/core/lib/Drupal/Core/Config/Config.php:212
DrupalCoreConfigConfig->save() at /home/"<user>"/www/"<site>"/vendor/drupal/console/src/Command/Site/ModeCommand.php:150
DrupalConsoleCommandSiteModeCommand->overrideConfigurations() at /home/"<user>"/www/"<site>"/vendor/drupal/console/src/Command/Site/ModeCommand.php:87
DrupalConsoleCommandSiteModeCommand->execute() at /home/"<user>"/www/"<site>"/vendor/symfony/console/Command/Command.php:255
SymfonyComponentConsoleCommandCommand->run() at /home/"<user>"/www/"<site>"/vendor/symfony/console/Application.php:987
SymfonyComponentConsoleApplication->doRunCommand() at /home/"<user>"/www/"<site>"/vendor/symfony/console/Application.php:255
SymfonyComponentConsoleApplication->doRun() at /home/"<user>"/www/"<site>"/vendor/drupal/console-core/src/Application.php:184
DrupalConsoleCoreApplication->doRun() at /home/"<user>"/www/"<site>"/vendor/drupal/console/src/Application.php:64
DrupalConsoleApplication->doRun() at /home/"<user>"/www/"<site>"/vendor/symfony/console/Application.php:148
SymfonyComponentConsoleApplication->run() at /home/"<user>"/www/"<site>"/vendor/drupal/console/bin/drupal.php:89
require() at /home/"<user>"/www/"<site>"/vendor/drupal/console/bin/drupal:4
EDIT 2
looking at the database I found two tables from feeds module (supposed to be uninstalled)
feeds_feed
feeds_subscription
running drupal console commnand drupal debug:module
feeds appears as the only module uninstalled with a schema version defined
ID Name Package version schema version status origin
...
feeds Feeds Feeds 8.x-3.0-alpha5 8001 Uninstalled no core
...
EDIT 3
After enable debugging (How do I enable developer/debug mode?)
I got new clues about the error ( trying to create a view) but my lack of drupal core knowledge stops me from understanding where final cause is:
</br></br><em class="placeholder">DrupalComponentPluginExceptionPluginNotFoundException</em>: The "views.view.*" plugin does not exist. Valid plugin IDs for DrupalCoreTypedDataTypedDataManager are: filter_format, any, float, string, boolean, timespan, language_reference, language, map, binary, timestamp, list, datetime_iso8601, uri, integer, duration_iso8601, email, field_item:comment, field_item:datetime, field_item:daterange, field_item:file_uri, field_item:file, field_item:fontawesome_icon, field_item:image, field_item:link, field_item:list_integer, field_item:list_float, field_item:list_string, field_item:path, field_item:telephone, field_item:text, field_item:text_long, field_item:text_with_summary, field_item:time_range, field_item:time, field_item:webform, field_item:email, field_item:uri, field_item:entity_reference, field_item:uuid, field_item:timestamp, field_item:string_long, field_item:language, field_item:password, field_item:changed, field_item:float, field_item:decimal, field_item:map, field_item:boolean, field_item:integer, field_item:created, field_item:string, entity, entity:block, entity:block_content_type, entity:block_content, entity:block_content:basic, entity:captcha_point,
[...]
entity:entity_view_mode, entity:entity_view_display, entity:entity_form_mode, entity:entity_form_display, entity:date_format, entity_reference in <em class="placeholder">DrupalCorePluginDefaultPluginManager->doGetDefinition()</em> (line <em class="placeholder">53</em> of <em class="placeholder">core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php</em>). <pre class="backtrace">DrupalCorePluginDefaultPluginManager->getDefinition('views.view.*') (Line: 195)
DrupalCoreTypedDataDataDefinition->getClass() (Line: 86)
DrupalCoreTypedDataTypedDataManager->createInstance('views.view.*', Array) (Line: 103)
DrupalCoreTypedDataTypedDataManager->create(Object, Array) (Line: 394)
DrupalCoreConfigTypedConfigManager->createFromNameAndData('views.view.test2', Array) (Line: 134)
DrupalCoreConfigStorableConfigBase->getSchemaWrapper() (Line: 179)
DrupalCoreConfigStorableConfigBase->castValue('uuid', 'c2f6326b-a77f-4f1e-9698-cb96154252cb') (Line: 212)
DrupalCoreConfigConfig->save() (Line: 284)
DrupalCoreConfigEntityConfigEntityStorage->doSave('test2', Object) (Line: 449)
DrupalCoreEntityEntityStorageBase->save(Object) (Line: 263)
DrupalCoreConfigEntityConfigEntityStorage->save(Object) (Line: 394)
DrupalCoreEntityEntityBase->save() (Line: 613)
DrupalCoreConfigEntityConfigEntityBase->save() (Line: 993)
Drupalviews_uiViewUI->save() (Line: 191)
Drupalviews_uiViewAddForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
DrupalCoreFormFormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
DrupalCoreFormFormSubmitter->doSubmitForm(Array, Object) (Line: 590)
DrupalCoreFormFormBuilder->processForm('view_add_form', Array, Object) (Line: 319)
DrupalCoreFormFormBuilder->buildForm(Object, Object) (Line: 93)
DrupalCoreControllerFormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->DrupalCoreEventSubscriber{closure}() (Line: 582)
DrupalCoreRenderRenderer->executeInRenderContext(Object, Object) (Line: 124)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->DrupalCoreEventSubscriber{closure}() (Line: 151)
SymfonyComponentHttpKernelHttpKernel->handleRaw(Object, 1) (Line: 68)
SymfonyComponentHttpKernelHttpKernel->handle(Object, 1, 1) (Line: 57)
DrupalCoreStackMiddlewareSession->handle(Object, 1, 1) (Line: 47)
DrupalCoreStackMiddlewareKernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupalpage_cacheStackMiddlewarePageCache->pass(Object, 1, 1) (Line: 85)
Drupalpage_cacheStackMiddlewarePageCache->handle(Object, 1, 1) (Line: 47)
DrupalCoreStackMiddlewareReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
DrupalCoreStackMiddlewareNegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
StackStackedHttpKernel->handle(Object, 1, 1) (Line: 693)
DrupalCoreDrupalKernel->handle(Object) (Line: 19)
</pre>