- 🇦🇺Australia imclean Tasmania
Restoring the issue summary. @bogdog400, use the "Comment" field to reply rather than the issue summary.
@bogdog400:
I tried several solutions here. Finally #56 worked for me. I believe that adding the right provider module from the beginning is essential.
Thanks for all of your help.
- 🇦🇺Australia imclean Tasmania
This time you completely wiped the "Issue summary" field. Only post in the comment field, don't change anything else.
- 🇺🇸United States ja09
Tried everything here but number #56 seems to be the simplest. Running D10.1 with PHP 8.1 and apache (with Seven theme.. don't judge 😏)
Steps that worked for me-
1. Uninstall geocoder_field, geocoder_address and geocoder_geofield
2. If provider is installed it should now show at /admin/config/system/geocoder/geocoder-provider
3. Edit > configure > save provider
4. Reinstall geocoder_field, geocoder_address and geocoder_geofieldThe provider is missing again in the select list but is showing under Active Providers as seen in the screenshot. Hope this gets a permanent fix in case I need to switch providers in the future! (I didn't try the patch)
- 🇺🇸United States khaldoon_masud
Tried #56, I was able to select Google maps provider but when I tried to configure the geofield, I got the error:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "googlemaps" plugin does not exist. Valid plugin IDs for Drupal\geocoder\ProviderPluginManager are: random, file, kmlfile, geojsonfile, gpxfile in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /app/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php) - 🇬🇧United Kingdom fonant
Phew, this one is still fun to fix if you install geocoder before composer-requiring the providers. I was using just geocoder, and none of the other modules (using the geocoder field in Leaflet maps).
I think the method that finally worked for me was:
drush pm:uninstall geocoder
drush cr
- Restart Webserver and PHP processes (Apache, php-fpm, OpenLitespeed, lsphp, etc.)
drush pm:enable geocoder
- 🇺🇦Ukraine mykola dolynskyi Poltava
Tried everything.
Only #64 works, thanks @khaldoon_masudGeocoder 3.47
- 🇩🇪Germany henrik23
Talking about the order of installing relevant geo modules my experience was the following:
First step: Install geofield and create a new field of type geofield in your content type.
Second step: After that install/activate geocoder, choose and save a geocoder provider.
Third step: Modify the field created in step one and activate geocoding from the source you apreciate. - 🇬🇧United Kingdom jonnyToomey
Having the same or related issue
Followed instruction in readme, managed to add provider but on enabling geocode_address the provider was removed
- 🇳🇱Netherlands edvanleeuwen Waalwijk
I had this problem as well. For me, restarting php did the trick.
- 🇮🇹Italy itamair
Because of some (really few) issues still being posted that relate to some difficulties in adding Gecoder 3.x | 4.x providers, and assuming that possibly related to the conflicting enabling of geocoder_field, geocoder_geofield and geocoder_address submodules (such this latest one: https://www.drupal.org/project/geocoder/issues/3518956 🐛 Geocoder Submodules Preventing Installed Providers from Displaying (e.g., Google Maps) Active )
I further performed a deep insight and QA & test that could try to replicate the reported problematic scenario,
and still I couldn't experience any issues in enabling those Gecoder Providers that I required, and still having them enabled after subsequently enabled those geocoder submodules.In particular I accomplished the following tasks in the following sequence:
1. I installed a fresh Drupal 10 (or Drupal 11) instance (locally with DDEV);
2. Required and enabled the Geocoder module with the following commands:
ddev composer require drupal/geocoder
ddev drush en drupal/geocoder
all good ... the Geocoder 8.x-4.28 release is installed and enabled.
3. I required the google-maps-provider and arcgis-online-provider Geocoder providers with the following commands (--with-all-dependencies):
ddev composer require geocoder-php/google-maps-provider -W
ddev composer require geocoder-php/arcgis-online-provider -W
ddev drush cr
(always better to clear the drupal cache)
all good ... I could then find the required geocoder providers in the Geocoder provider options list, at the admin/config/system/geocoder/geocoder-provider settings page (@see the attached screenshot)
4. I enabled the geocoder submodules geocoder_geofield (after requiring the geofield module) with the following commands:
ddev composer require drupal/geofield
ddev drush en geocoder_geofield
ddev drush cr
(always better to clear the drupal cache)
and still all good ... I could still correctly find the required geocoder providers in the Geocoder provider options list, at the same geocoder-providers settings page (@see the same attached screenshot)
5. I also enabled the geocoder submodule geocoder_address (after requiring the address module) with the following commands:
ddev composer require drupal/address
ddev drush en geocoder_address
ddev drush cr
(always better to clear the drupal cache)
and still all good ... I could still correctly find the required geocoder providers in the Geocoder provider options list, at the same geocoder-providers settings page (@see the same attached screenshot).My further established conclusions on this are that all is working fine with the expected workflow to require and add Geocoder Providers with actual Geocoder 8.x-4.28 release
- 🇳🇱Netherlands ekes
The issue I described in comment #33 https://www.drupal.org/project/geocoder/issues/3153678#comment-14203727 🐛 How to add Gecoder 3.x providers Needs review where you install the plugin using composer, but the autoloader is not rebuilt, so it's not detected, should I think be fixed with:
📌 Use a better container cache key Active