Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
mpp CreditAttribution: mpp at District09 for District09 commentedThis 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.
Comment #3
itamair CreditAttribution: itamair commented