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.
Dear Drupal Friends:
After upgrading to 8.x-3.1 of Geocoder, I am now getting an error message. I am using Drupal core 8.8.5
It seems to happen consistently when I click on the Providers tab. The error message is also displayed after creating a "Text (plain)" field in a content type that does not contain any geocoding fields. I have Flushed all caches and the white screen error persists.
The geocoded map that I defined previously appears to still function properly. My geocoding fields are defined in a profile and they do not appear to be impacted.
The website encountered an unexpected error. Please try again later. Error: Class 'Geocoder\Provider\AbstractProvider' not found in include() (line 20 of modules\contrib\geocoder\modules\geocoder_field\src\Geocoder\Provider\File.php). include() (Line: 444) Composer\Autoload\includeFile('C:\xampp\htdocs\pdmedia/modules/contrib/geocoder/modules/geocoder_field/src\Geocoder\Provider\File.php') (Line: 322) Composer\Autoload\ClassLoader->loadClass('Drupal\geocoder_field\Geocoder\Provider\File') spl_autoload_call('Drupal\geocoder_field\Geocoder\Provider\File') class_exists('\Drupal\geocoder_field\Geocoder\Provider\File') (Line: 50) {closure}(Array) array_filter(Array, Object) (Line: 51) geocoder_geocoder_provider_info_alter(Array, NULL, NULL) (Line: 539) Drupal\Core\Extension\ModuleHandler->alter('geocoder_provider_info', Array) (Line: 366) Drupal\Core\Plugin\DefaultPluginManager->alterDefinitions(Array) (Line: 288) Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 175) Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 71) Drupal\geocoder\Form\GeocoderProviderCreationForm->buildForm(Array, Object) call_user_func_array(Array, Array) (Line: 520) Drupal\Core\Form\FormBuilder->retrieveForm('geocoder_provider_creation_form', Object) (Line: 277) Drupal\Core\Form\FormBuilder->buildForm('Drupal\geocoder\Form\GeocoderProviderCreationForm', Object) (Line: 218) Drupal\Core\Form\FormBuilder->getForm('Drupal\geocoder\Form\GeocoderProviderCreationForm') (Line: 76) Drupal\geocoder\GeocoderProviderListBuilder->render() (Line: 23) Drupal\Core\Entity\Controller\EntityListController->listing('geocoder_provider') call_user_func_array(Array, Array) (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comments
Comment #2
frmcclurg CreditAttribution: frmcclurg commentedComment #3
itamair CreditAttribution: itamair as a volunteer commentedThnaks @frmcclurg for reporting.
I tested again 8.x-3.1 reproducing all your use cases, and I couldn't experience any of your errors.
It works as designed to me ... (and seems far to be a Major issue).
Your issue should be related with you specific dev environment and Drupal 8 instance.
Is anybody experiencing this same issue?
Please reopen this ONLY if you have clear evidence that your is a Geocoder bug, provi dinging screenshots of it and easy path to clearly reproduce. A clue is not enough ...
Comment #4
itamair CreditAttribution: itamair as a volunteer commentedComment #5
tiikeri CreditAttribution: tiikeri commentedI experienced the same issue, but I fix it by myself.
I think that frmcclurg made the same mistake as me.
I'm migrating a drupal7 website to drupal8 and massively drush enabled all the modules I needed, but didn't considered that Gocoder require now Composer.
Just composer download geocoder and it will download all the required library, rebuild cache and you're done!
I guess the issue may be closed as "work as designed"
Comment #6
itamair CreditAttribution: itamair as a volunteer commentedComment #7
bond708 CreditAttribution: bond708 as a volunteer commentedI can reproduce it using Ludwig instead of composer.