I'm building a marketplace style website through which users can purchase items from each other, and I want users to be able to privately message each other to discuss deal specifics.

I turned to the private message module as it seems to have everything I need, so I downloaded it with composer lando composer require 'drupal/private_message:^2.0@beta' (as you can tell I'm using lando to spin up my local environment). The module successfully downloaded, but I get the following error upon enabling it through Drupal's UI:

The website encountered an unexpected error. Please try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "integer" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\FormatterPluginManager are: comment_username, comment_default, comment_permalink, datetime_custom, datetime_default, datetime_plain, datetime_time_ago, file_link, file_audio, file_extension, file_size, file_uri, file_video, file_filemime, file_default, file_rss_enclosure, file_table, file_url_plain, image, image_url, link, link_separate, list_default, list_key, private_message_thread_member_formatter, private_message_thread_message_formatter, entity_reference_rss_category, text_default, text_summary_or_trimmed, text_trimmed, author, user_name, basic_string, boolean, number_decimal, entity_reference_entity_view, entity_reference_entity_id, entity_reference_label, number_integer, language, email_mailto, number_unformatted, string, timestamp_ago, timestamp, uri_link in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('integer') (Line: 56)
Drupal\Core\Field\FormatterPluginManager->createInstance('integer', Array) (Line: 81)
Drupal\Core\Plugin\DefaultLazyPluginCollection->initializePlugin('integer') (Line: 80)
Drupal\Component\Plugin\LazyPluginCollection->get('integer') (Line: 149)
Drupal\Component\Plugin\LazyPluginCollection->getIterator() (Line: 114)
Drupal\Core\Plugin\DefaultLazyPluginCollection->getConfiguration() (Line: 293)
Drupal\Core\Config\Entity\ConfigEntityBase->preSave(Object) (Line: 259)
Drupal\Core\Entity\EntityDisplayBase->preSave(Object) (Line: 566)
Drupal\Core\Entity\EntityStorageBase->doPreSave(Object) (Line: 521)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 253)
Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object) (Line: 339)
Drupal\Core\Entity\EntityBase->save() (Line: 607)
Drupal\Core\Config\Entity\ConfigEntityBase->save() (Line: 392)
Drupal\Core\Config\ConfigInstaller->createConfiguration('', Array) (Line: 99)
Drupal\features\FeaturesConfigInstaller->createConfiguration('', Array) (Line: 152)
Drupal\Core\Config\ConfigInstaller->installDefaultConfig('module', 'private_message') (Line: 324)
Drupal\Core\Extension\ModuleInstaller->install(Array, 1) (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array) (Line: 476)
Drupal\system\Form\ModulesListForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 592)
Drupal\Core\Form\FormBuilder->processForm('system_modules', Array, Object) (Line: 320)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Even though I'm getting this error, the module will still successfully enable. However, this doesn't seem like something that should just be ignored. I'm currently on Drupal 9.3.12, but it throws the same error on various D8 versions. The only other contrib modules that I have installed are Devel, Devel Generate, Features, and Features UI. I have two custom modules that are handling transaction management, but the error is still thrown if they're uninstalled.

I can't seem to find a solution for this anywhere, and any help would be greatly appreciated.
Thanks!

Comments

sam.dufrin created an issue.