0

On rebuilding the cache, a Drupal 8 website goes down and displays the message "The website encountered an unexpected error. Please try again later." I used drush cr to rebuild the cache, which shows the following error message.

The "field_item:boolean" plugin does not exist.

I also tried to rebuild the cache right after installing a new Drupal 8 site without any additional module, and it shows the same error.

How can I get the site back to working?

  • If you can't access the dblog of drupal then see your apache logs and post here what you find – GiorgosK Jan 25 '18 at 10:54
  • When the plugin discovery fails in downloaded code, then this is most times a download error, so the first thing you should try is to remove the code base and download it again. – 4k4 Jan 25 '18 at 11:59
  • @4k4 It is not a download error. This happens on every drupal 8 project. – Nabil Jan 26 '18 at 5:04
  • @GiorgosK Drupal\Component\Plugin\Exception\PluginNotFoundException: The "field_item:boolean" plugin does not exist. in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 52 of /var/www/html/drupal_8/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php). is the error I get – Nabil Jan 26 '18 at 5:05
  • 1
    @GiorgosK drush entity-update is not helping. But after clearing cache_discovery table via phpmyadmin site is up and running – Nabil Jan 27 '18 at 7:49
2

This morning I had similar problem and drush cr was actually not clearing the discovery cache but after

drush sql-query 'TRUNCATE TABLE cache_discovery;'

I was able to get rid of this error

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.