After installing via composer

composer require drupal/geofield
drush en geofield

the site crashes with the error

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

The PHP error log reveals:

Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginException: "Plugin (geofield_proximity) instance class "Drupal\geofield\Element\GeofieldProximity" does not exist." at /path/to/site/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php line 97

Comments

lliss created an issue. See original summary.

mpp’s picture

This error might be caused by a few things:
- a wrong namespace in the plugin
- cached plugins (run cache-clear)

See https://www.drupal.org/project/drupal/issues/1846070 for an improved error message.

itamair’s picture

Priority: Major » Normal
Status: Active » Closed (cannot reproduce)