geocoderProvider googlemaps not working with 4.6

Error: Cannot instantiate interface Psr\Http\Client\ClientInterface in Drupal\Component\DependencyInjection\Container->createService() (line 259 of /Applications/MAMP/htdocs/acquia_cms/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php).

Steps to reproduce:
- Install site with minimal profile Drupal 10.0.7

  • composer create-project acquia/drupal-recommended-project project && cd project
  • composer require drupal/geocoder:^4.6
  • drush si minimal -y && drush in geocoder_address geocoder_field geocoder_geofield -y

- Visit /admin/config/system/geocoder/geocoder-provider/ and select GoogleMaps from dropdown and click Add
- See error

Next step:

Issue fork geocoder-3356777

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Rajeshreeputra created an issue. See original summary.

rajeshreeputra’s picture

Issue summary: View changes
rajeshreeputra’s picture

Component: Miscellaneous » Code
Priority: Normal » Critical

rajeshreeputra’s picture

Issue summary: View changes

itamair made their first commit to this issue’s fork.

itamair’s picture

Status: Active » Fixed

great catch @Rajeshreeputra, and sorry, as this deploy https://www.drupal.org/project/geocoder/issues/3355990 was too quick ...
Merging this of you, and going to deploy a new 8.x-4.7 ...

  • itamair committed f88d41d3 on 8.x-4.x
    Issue #3356777 by Rajeshreeputra: geocoderProvider googlemaps not...
notfloran’s picture

Same issue with the 8.x-3.33 release.

Can you make a new release too ?

  • itamair committed bca1db87 on 8.x-4.x
    Issue #3356777 by Rajeshreeputra: geocoderProvider googlemaps not...
ankitv18’s picture

Assigned: Unassigned » ankitv18
Status: Fixed » Needs work
Related issues: +#3355990: Http\Client\HttpClient is deprecated: use Psr\Http\Client\ClientInterface instead
StatusFileSize
new313.16 KB

Hi,
With release of 4.0.7 provider form is still having issue, attaching the screenshot for reference.
gmaps

itamair’s picture

yes ... sorry everybody, I gave too much and easy credit to the initial solution provided in this related issue:https://www.drupal.org/project/geocoder/issues/3355990

The following new Geocoder releases should have performed a complete rollback (for both branch 3.x and 4.x):

https://www.drupal.org/project/geocoder/releases/8.x-3.34
https://www.drupal.org/project/geocoder/releases/8.x-4.9

itamair’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.