How to add Gecoder 3.x providers

Created on 21 June 2020, over 4 years ago
Updated 14 March 2023, over 1 year ago

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.

🐛 Bug report
Status

Needs review

Version

3.21

Component

Code

Created by

🇨🇦Canada mrogers

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺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.

  • 🇺🇸United States bogdog400

    Doh. Sorry.

  • 🇦🇺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_geofield

    The 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:

    1. drush pm:uninstall geocoder
    2. drush cr
    3. Restart Webserver and PHP processes (Apache, php-fpm, OpenLitespeed, lsphp, etc.)
    4. drush pm:enable geocoder
  • 🇺🇦Ukraine mykola dolynskyi Poltava

    Tried everything.
    Only #64 works, thanks @khaldoon_masud

    Geocoder 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.

Production build 0.71.5 2024