On drupal 8 site, I installed a contributed module and then added a field to a content type to test the module. After finding the module wasn't working as expected I decided to uninstall the module. To do that I tried to delete the field I had created, on clicking delete the site has remained inaccessible and displaying only this error:

The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">RuntimeException</em>: Unable to determine class for field type &#039;plugin:currency_amount_formatter&#039; found in the &#039;field.field.node.hotel_information.field_room_cost_formatted&#039; configuration in <em class="placeholder">Drupal\Core\Field\FieldConfigStorageBase-&gt;mapFromStorageRecords()</em> (line <em class="placeholder">28</em> of <em class="placeholder">core\lib\Drupal\Core\Field\FieldConfigStorageBase.php</em>). <pre class="backtrace">Drupal\Core\Config\Entity\ConfigEntityStorage-&gt;doLoadMultiple(Array) (Line: 292)
Drupal\Core\Entity\EntityStorageBase-&gt;loadMultiple(Array) (Line: 541)
Drupal\Core\Entity\EntityBase::loadMultiple(Array) (Line: 202)
field_entity_bundle_field_info(Object, &#039;hotel_information&#039;, Array)
call_user_func_array(&#039;field_entity_bundle_field_info&#039;, Array) (Line: 392)
Drupal\Core\Extension\ModuleHandler-&gt;invoke(&#039;field&#039;, &#039;entity_bundle_field_info&#039;, Array) (Line: 396)
Drupal\Core\Entity\EntityFieldManager-&gt;buildBundleFieldDefinitions(&#039;node&#039;, &#039;hotel_information&#039;, Array) (Line: 338)
Drupal\Core\Entity\EntityFieldManager-&gt;getFieldDefinitions(&#039;node&#039;, &#039;hotel_information&#039;) (Line: 196)
Drupal\Core\Entity\EntityManager-&gt;getFieldDefinitions(&#039;node&#039;, &#039;hotel_information&#039;) (Line: 260)
views_entity_field_label(&#039;node&#039;, &#039;body&#039;) (Line: 507)
views_field_default_views_data(Object) (Line: 193)
views_views_data()
call_user_func_array(&#039;views_views_data&#039;, Array) (Line: 392)
Drupal\Core\Extension\ModuleHandler-&gt;invoke(&#039;views&#039;, &#039;views_data&#039;) (Line: 243)
Drupal\views\ViewsData-&gt;getData() (Line: 160)
Drupal\views\ViewsData-&gt;get(&#039;node_field_data&#039;) (Line: 85)
Drupal\views\Plugin\ViewsHandlerManager-&gt;getHandler(Array, NULL) (Line: 889)
Drupal\views\Plugin\views\display\DisplayPluginBase-&gt;getHandlers(&#039;argument&#039;) (Line: 115)
Drupal\views\Plugin\Derivative\ViewsBlock-&gt;getDerivativeDefinitions(Array) (Line: 101)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator-&gt;getDerivatives(Array) (Line: 87)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator-&gt;getDefinitions() (Line: 284)
Drupal\Core\Plugin\DefaultPluginManager-&gt;findDefinitions() (Line: 175)
Drupal\Core\Plugin\DefaultPluginManager-&gt;getDefinitions() (Line: 22)
Drupal\Core\Plugin\DefaultPluginManager-&gt;getDefinition(&#039;system_branding_block&#039;) (Line: 16)
Drupal\Core\Plugin\Factory\ContainerFactory-&gt;createInstance(&#039;system_branding_block&#039;, Array) (Line: 76)
Drupal\Component\Plugin\PluginManagerBase-&gt;createInstance(&#039;system_branding_block&#039;, Array) (Line: 62)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection-&gt;initializePlugin(&#039;system_branding_block&#039;) (Line: 57)
Drupal\block\BlockPluginCollection-&gt;initializePlugin(&#039;system_branding_block&#039;) (Line: 80)
Drupal\Component\Plugin\LazyPluginCollection-&gt;get(&#039;system_branding_block&#039;) (Line: 45)
Drupal\block\BlockPluginCollection-&gt;get(&#039;system_branding_block&#039;) (Line: 83)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection-&gt;setConfiguration(Array) (Line: 99)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection-&gt;addInstanceId(&#039;system_branding_block&#039;, Array) (Line: 55)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection-&gt;__construct(Object, &#039;system_branding_block&#039;, Array) (Line: 34)
Drupal\block\BlockPluginCollection-&gt;__construct(Object, &#039;system_branding_block&#039;, Array, &#039;aptegy_branding&#039;) (Line: 156)
Drupal\block\Entity\Block-&gt;getPluginCollection() (Line: 145)
Drupal\block\Entity\Block-&gt;getPlugin() (Line: 118)
Drupal\block\BlockAccessControlHandler-&gt;checkAccess(Object, &#039;view&#039;, Object) (Line: 105)
Drupal\Core\Entity\EntityAccessControlHandler-&gt;access(Object, &#039;view&#039;, Object, 1) (Line: 369)
Drupal\Core\Entity\EntityBase-&gt;access(&#039;view&#039;, NULL, 1) (Line: 56)
Drupal\block\BlockRepository-&gt;getVisibleBlocksPerRegion(Array) (Line: 137)
Drupal\block\Plugin\DisplayVariant\BlockPageVariant-&gt;build() (Line: 259)
Drupal\Core\Render\MainContent\HtmlRenderer-&gt;prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer-&gt;renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber-&gt;onViewRenderArray(Object, &#039;kernel.view&#039;, Object)
call_user_func(Array, Object, &#039;kernel.view&#039;, Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher-&gt;dispatch(&#039;kernel.view&#039;, Object) (Line: 156)
Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 2) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 2, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 2, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 2, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 2, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 2, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 2, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 2, 1) (Line: 23)
Stack\StackedHttpKernel-&gt;handle(Object, 2) (Line: 166)
Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber-&gt;makeSubrequest(Object, &#039;/system/403&#039;, 403) (Line: 112)
Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber-&gt;on403(Object) (Line: 109)
Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase-&gt;onException(Object, &#039;kernel.exception&#039;, Object)
call_user_func(Array, Object, &#039;kernel.exception&#039;, Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher-&gt;dispatch(&#039;kernel.exception&#039;, Object) (Line: 227)
Symfony\Component\HttpKernel\HttpKernel-&gt;handleException(Object, Object, 1) (Line: 79)
Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel-&gt;handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)
</pre>

Any direction on how to resolve this is appreciated.

Comments

danrod’s picture

Did you delete the field before uninstalling the module?

ojchris’s picture

I wanted to delete the field before attempting to uninstall. Once I clicked the delete button on the field I got the error and the site has remained like that. So the module is still installed.

Even trying to run clear cache with drush, I get this:

$ drush cr
In FieldConfigStorageBase.php line 28:

Unable to determine class for field type 'plugin:currency_amount_formatter' found in the 'field.field.node.hotel_in
formation.field_room_cost_formatted' configuration

cache:rebuild [--cache-clear [CACHE-CLEAR]] [--no-cache-clear] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--notify] [--xh-link XH-LINK] [--] <command>