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 projectcomposer require drupal/geocoder:^4.6drush 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:
- Merge MR created to revert #3355990: Http\Client\HttpClient is deprecated: use Psr\Http\Client\ClientInterface instead
- fix Http\Client\HttpClient is deprecated: use Psr\Http\Client\ClientInterface instead
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | Screenshot 2023-04-27 at 1.55.00 PM.png | 313.16 KB | ankitv18 |
| Screenshot 2023-04-27 at 12.01.29 PM.png | 54.4 KB | rajeshreeputra | |
| Screenshot 2023-04-27 at 12.01.13 PM.png | 76.02 KB | rajeshreeputra |
Issue fork geocoder-3356777
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
Comment #2
rajeshreeputraComment #3
rajeshreeputraComment #5
rajeshreeputraComment #8
itamair commentedgreat 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 ...
Comment #10
notfloran commentedSame issue with the 8.x-3.33 release.
Can you make a new release too ?
Comment #12
ankitv18 commentedHi,

With release of 4.0.7 provider form is still having issue, attaching the screenshot for reference.
Comment #13
itamair commentedyes ... 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
Comment #14
itamair commented