- Issue created by @fishfree
First, I changed "Disallow duplicate files" value to "Off" on the file field config page, then uninstall this module. Now, when I uplaod a file on the node/add/article page, it shows error:
Oops, something went wrong. Check your browser's developer console for more details.
In the recent log messages, it says:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "field_item:filehash" plugin does not exist. Valid plugin IDs for Drupal\Core\TypedData\TypedDataManager are: dto, eca_url, filter_format, integer, language_reference, binary, uri, language, timespan, list, timestamp, any, datetime_iso8601, email, string, map, decimal, float, boolean, duration_iso8601, field_item:commen ... in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 54 of /var/www/html/drupal10/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
The backtrack:
#0 /var/www/html/drupal10/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(25): Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition()
#1 /var/www/html/drupal10/web/core/lib/Drupal/Core/TypedData/DataDefinition.php(195): Drupal\Core\Plugin\DefaultPluginManager->getDefinition()
#2 /var/www/html/drupal10/web/core/lib/Drupal/Core/Field/BaseFieldDefinition.php(606): Drupal\Core\TypedData\DataDefinition->getClass()
#3 /var/www/html/drupal10/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(1057): Drupal\Core\Field\BaseFieldDefinition->getMainPropertyName()
#4 /var/www/html/drupal10/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(901): Drupal\Core\Entity\Sql\SqlContentEntityStorage->mapToStorageRecord()
#5 /var/www/html/drupal10/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(718): Drupal\Core\Entity\Sql\SqlContentEntityStorage->doSaveFieldItems()
#6 /var/www/html/drupal10/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(486): Drupal\Core\Entity\ContentEntityStorageBase->doSave()
#7 /var/www/html/drupal10/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(806): Drupal\Core\Entity\EntityStorageBase->save()
#8 /var/www/html/drupal10/web/core/lib/Drupal/Core/Entity/EntityBase.php(354): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save()
#9 /var/www/html/drupal10/web/core/modules/file/src/Upload/FileUploadHandler.php(359): Drupal\Core\Entity\EntityBase->save()
#10 /var/www/html/drupal10/web/core/modules/file/file.module(660): Drupal\file\Upload\FileUploadHandler->handleFileUpload()
#11 /var/www/html/drupal10/web/core/modules/file/file.module(536): file_save_upload()
#12 /var/www/html/drupal10/web/core/modules/file/file.module(1007): _file_save_upload_from_form()
#13 /var/www/html/drupal10/web/core/modules/file/src/Element/ManagedFile.php(76): file_managed_file_save_upload()
#14 /var/www/html/drupal10/web/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php(335): Drupal\file\Element\ManagedFile::valueCallback()
#15 [internal function]: Drupal\file\Plugin\Field\FieldWidget\FileWidget::value()
#16 /var/www/html/drupal10/web/core/lib/Drupal/Core/Form/FormBuilder.php(1264): call_user_func_array()
#17 /var/www/html/drupal10/web/core/lib/Drupal/Core/Form/FormBuilder.php(1004): Drupal\Core\Form\FormBuilder->handleInputElement()
#18 /var/www/html/drupal10/web/core/lib/Drupal/Core/Form/FormBuilder.php(1074): Drupal\Core\Form\FormBuilder->doBuildForm()
#19 /var/www/html/drupal10/web/core/lib/Drupal/Core/Form/FormBuilder.php(1074): Drupal\Core\Form\FormBuilder->doBuildForm()
#20 /var/www/html/drupal10/web/core/lib/Drupal/Core/Form/FormBuilder.php(1074): Drupal\Core\Form\FormBuilder->doBuildForm()
#21 /var/www/html/drupal10/web/core/lib/Drupal/Core/Form/FormBuilder.php(579): Drupal\Core\Form\FormBuilder->doBuildForm()
#22 /var/www/html/drupal10/web/core/lib/Drupal/Core/Form/FormBuilder.php(326): Drupal\Core\Form\FormBuilder->processForm()
#23 /var/www/html/drupal10/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#24 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#25 /var/www/html/drupal10/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#26 /var/www/html/drupal10/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#27 /var/www/html/drupal10/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#28 /var/www/html/drupal10/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#29 /var/www/html/drupal10/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#30 /var/www/html/drupal10/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#31 /var/www/html/drupal10/web/modules/contrib/simple_oauth/src/HttpMiddleware/BasicAuthSwap.php(68): Symfony\Component\HttpKernel\HttpKernel->handle()
#32 /var/www/html/drupal10/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle()
#33 /var/www/html/drupal10/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#34 /var/www/html/drupal10/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#35 /var/www/html/drupal10/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#36 /var/www/html/drupal10/web/modules/contrib/wire/src/StackMiddleware/RegisterWireMiddleware.php(109): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#37 /var/www/html/drupal10/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\wire\StackMiddleware\RegisterWireMiddleware->handle()
#38 /var/www/html/drupal10/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
#39 /var/www/html/drupal10/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#40 /var/www/html/drupal10/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#41 /var/www/html/drupal10/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#42 /var/www/html/drupal10/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#43 /var/www/html/drupal10/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#44 /var/www/html/drupal10/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#45 {main}
Active
3.0
Code