Installed: composer require 'drupal/styled_google_map:^2.6'

Created the map field in a block.

The map comes up as: This page can't load Google Maps correctly. With, "For development purposes only"
Ok, so I think I am missing the Google map Key. (The map is shown with the error messages on top)

Ok, so i thought the API key is missing.

So i click on "Configure" on the Style Google Map module and the page comes up: The website encountered an unexpected error. Try again later.

So I go back to the log and it has:

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /home/nagle/public_html/modules/contrib/styled_google_map/src/Form/StyledGoogleMapSettingsForm.php on line 33 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 44 of /home/nagle/public_html/core/lib/Drupal/Core/Form/ConfigFormBase.php).

updated in composer
ran database update

Doesn't look like this module works.
What am I missing?
Thanks

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

darnold created an issue. See original summary.

darnold’s picture

haritha c’s picture

I tried to reproduce this issue on Drupal 10.4 with Styled Google Map 8.x-2.6.

Installed via composer require drupal/styled_google_map:^2.6
Created a block with a Geofield (latitude/longitude)
Configured Google Maps API key under Admin > Configuration > Styled Google Map
Map displayed correctly without errors
No error was found in logs, and the configuration page loaded correctly.

Can you share more details like:

The Drupal version you are using
Exact steps to reproduce the issue
The error message from logs (if any)

a.dmitriiev made their first commit to this issue’s fork.

a.dmitriiev’s picture

Status: Active » Needs review

I assume that darnold uses Drupal 11. For that version the ConfigFormBase needs one more argument, see change record https://www.drupal.org/node/3404140 . MR includes the fix. Please check.

a.dmitriiev’s picture

I have also added the same fix to 3.x branch in this MR https://git.drupalcode.org/project/styled_google_map/-/merge_requests/8

darnold’s picture

Thank you. #7 Worked!

darnold’s picture

a.dmitriiev’s picture

Status: Needs review » Reviewed & tested by the community

a.dmitriiev’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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