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
Issue fork styled_google_map-3511911
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
darnold commentedComment #3
haritha c commentedI 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)
Comment #6
a.dmitriiev commentedI 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.
Comment #7
a.dmitriiev commentedI have also added the same fix to 3.x branch in this MR https://git.drupalcode.org/project/styled_google_map/-/merge_requests/8
Comment #8
darnold commentedThank you. #7 Worked!
Comment #9
darnold commentedComment #10
a.dmitriiev commentedComment #13
a.dmitriiev commented