Problem/Motivation

I have latest code base of Drupal 8. I am visiting admin configuration page and I am getting PHP error. According to apache error logs:

Uncaught PHP Exception Drupal\\Component\\Plugin\\Exception\\PluginNotFoundException: "The "field_item:" plugin does not exist." at /var/www/drupal8/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php line 57, referer: http://drupal.local/

Proposed resolution

Identify the problem and fix it :)

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Comments

nils.destoop’s picture

I'm having the same error but on admin/reports/status.

idebr’s picture

I fixed this by saving the 'Manage fields' display again for a node type, eg. basic page.

pythagory’s picture

Category: Task » Bug report

I'm not able to reproduce this problem on a fresh installation of 8.0.x-dev. Can you elaborate on your setup? Was this a fresh install or had you already configured/added modules/etc? If not a new installation, had you pulled in code changes from upstream (git pull) after installing?

a.milkovsky’s picture

I can confirm the problem. For me it appeared when I updated to the latest dev. Configuration was exported using beta-6.

subhojit777’s picture

Status: Active » Closed (works as designed)

I can open the admin configuration page without any error now. Please re-open this issue if you find this problem.

a.milkovsky’s picture

For me the error gone after re-saving of blocks layout settings(/admin/structure/block).
Might be connected to https://www.drupal.org/node/2402639#comment-9664563

subhojit777’s picture

@a.milkovsky Then I think you should you re-open this issue telling in detail what error you were getting, and how it got removed. You can change issue title and body if you need.

O'Briat’s picture

Same issue after an update from Beta 6 to Beta 7 :

#after copying beta8 files
$drush updb
exception 'Drupal\Component\Plugin\Exception\PluginNotFoundException' with message 'The "field_item:" plugin does not exist.' in                                   [error]
/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php:57
Stack trace:
#0 /core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(30):
Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition(Array, 'field_item:', true)
#1 /core/modules/field/src/Entity/FieldStorageConfig.php(765):
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('field_item:')
#2 /core/modules/field/src/Entity/FieldStorageConfig.php(428):
Drupal\field\Entity\FieldStorageConfig->getFieldItemClass()
#3 /core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php(164):
Drupal\field\Entity\FieldStorageConfig->getSchema()
#4 /core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(1472):
Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->requiresFieldStorageSchemaChanges(Object(Drupal\field\Entity\FieldStorageConfig),
Object(Drupal\field\Entity\FieldStorageConfig))
#5 /core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php(243):
Drupal\Core\Entity\Sql\SqlContentEntityStorage->requiresFieldStorageSchemaChanges(Object(Drupal\field\Entity\FieldStorageConfig),
Object(Drupal\field\Entity\FieldStorageConfig))
#6 /core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php(196):
Drupal\Core\Entity\EntityDefinitionUpdateManager->requiresFieldStorageSchemaChanges(Object(Drupal\field\Entity\FieldStorageConfig),
Object(Drupal\field\Entity\FieldStorageConfig))
#7 /core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php(51):
Drupal\Core\Entity\EntityDefinitionUpdateManager->getChangeList()
#8 ~/.composer/vendor/drush/drush/commands/core/drupal/update.inc(109): Drupal\Core\Entity\EntityDefinitionUpdateManager->getChangeSummary()
#9 ~/.composer/vendor/drush/drush/commands/core/core.drush.inc(453): update_main()
#10 [internal function]: drush_core_updatedb()
#11 ~/.composer/vendor/drush/drush/includes/command.inc(359): call_user_func_array('drush_core_upda...', Array)
#12 ~/.composer/vendor/drush/drush/includes/command.inc(210): _drush_invoke_hooks(Array, Array)
#13 [internal function]: drush_command()
#14 ~/.composer/vendor/drush/drush/includes/command.inc(178): call_user_func_array('drush_command', Array)
#15 ~/.composer/vendor/drush/drush/lib/Drush/Boot/DrupalBoot.php(68): drush_dispatch(Array)
#16 ~/.composer/vendor/drush/drush/drush.php(71): Drush\Boot\DrupalBoot->bootstrap_and_dispatch()
#17 ~/.composer/vendor/drush/drush/drush.php(11): drush_main()
#18 {main}
a.milkovsky’s picture

@Teenage, there is no beta8 yet

Gen.Chu’s picture

I have the very same problem with the config page (/admin/config). I updated from beta 6 to beta 7 and imported my configs. I don't have the problem on a fresh Beta 7 install. I did resave blocks and my content types fields, doesn't seem to make any difference.

xadag’s picture

I've got the same problem when upgrading from b6 to b7.

[16-Mar-2015 19:07:35 Europe/Paris] Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginNotFoundException: "The "field_item:" plugin does not exist." at /Users/xadag/Developpement/www/yogarik/mahousecostaud/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php line 57

In the admin/config

Any idea to solve this issue ?

Thanks

tanmaykadam’s picture

I have fixed the above issue. Please install GD Library

For CentOS / RedHat / Fedora :
sudo yum install php-gd

For Debian/ubuntu :
sudo apt-get install php5-gd