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

frmcclurg created an issue. See original summary.

frmcclurg’s picture

Issue summary: View changes
itamair’s picture

Priority: Major » Normal
Status: Active » Closed (works as designed)

Thnaks @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 ...

itamair’s picture

Status: Closed (works as designed) » Closed (cannot reproduce)
tiikeri’s picture

I 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"

itamair’s picture

Status: Closed (cannot reproduce) » Closed (works as designed)
bond708’s picture

I can reproduce it using Ludwig instead of composer.

Error: Class 'Geocoder\Provider\AbstractProvider' not found in include() (line 20 of /home/liminalmapping/public_html/modules/geocoder/modules/geocoder_field/src/Geocoder/Provider/File.php)
#0 /home/liminalmapping/public_html/vendor/composer/ClassLoader.php(444): include()
#1 /home/liminalmapping/public_html/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/home/liminalma...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('Drupal\\geocoder...')
#3 [internal function]: spl_autoload_call('Drupal\\geocoder...')
#4 /home/liminalmapping/public_html/modules/geocoder/geocoder.module(50): class_exists('\\Drupal\\geocode...')
#5 [internal function]: {closure}(Array)
#6 /home/liminalmapping/public_html/modules/geocoder/geocoder.module(51): array_filter(Array, Object(Closure))
#7 /home/liminalmapping/public_html/core/lib/Drupal/Core/Extension/ModuleHandler.php(539): geocoder_geocoder_provider_info_alter(Array, NULL, NULL)
#8 /home/liminalmapping/public_html/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(366): Drupal\Core\Extension\ModuleHandler->alter('geocoder_provid...', Array)
#9 /home/liminalmapping/public_html/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(288): Drupal\Core\Plugin\DefaultPluginManager->alterDefinitions(Array)
#10 /home/liminalmapping/public_html/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(175): Drupal\Core\Plugin\DefaultPluginManager->findDefinitions()
#11 /home/liminalmapping/public_html/modules/geocoder/src/Form/GeocoderProviderCreationForm.php(71): Drupal\Core\Plugin\DefaultPluginManager->getDefinitions()
#12 [internal function]: Drupal\geocoder\Form\GeocoderProviderCreationForm->buildForm(Array, Object(Drupal\Core\Form\FormState))
#13 /home/liminalmapping/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(532): call_user_func_array(Array, Array)
#14 /home/liminalmapping/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(278): Drupal\Core\Form\FormBuilder->retrieveForm('geocoder_provid...', Object(Drupal\Core\Form\FormState))
#15 /home/liminalmapping/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(219): Drupal\Core\Form\FormBuilder->buildForm('Drupal\\geocoder...', Object(Drupal\Core\Form\FormState))
#16 /home/liminalmapping/public_html/modules/geocoder/src/GeocoderProviderListBuilder.php(76): Drupal\Core\Form\FormBuilder->getForm('Drupal\\geocoder...')
#17 /home/liminalmapping/public_html/core/lib/Drupal/Core/Entity/Controller/EntityListController.php(23): Drupal\geocoder\GeocoderProviderListBuilder->render()
#18 [internal function]: Drupal\Core\Entity\Controller\EntityListController->listing('geocoder_provid...')
#19 /home/liminalmapping/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#20 /home/liminalmapping/public_html/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#21 /home/liminalmapping/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#22 /home/liminalmapping/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#23 /home/liminalmapping/public_html/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#24 /home/liminalmapping/public_html/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#25 /home/liminalmapping/public_html/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /home/liminalmapping/public_html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /home/liminalmapping/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /home/liminalmapping/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /home/liminalmapping/public_html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /home/liminalmapping/public_html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /home/liminalmapping/public_html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /home/liminalmapping/public_html/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /home/liminalmapping/public_html/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#34 {main}