Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set Google Maps Geo Token: field remains empty on Save #355

Open
romainpoirier opened this issue Jul 14, 2022 · 3 comments
Open

Can't set Google Maps Geo Token: field remains empty on Save #355

romainpoirier opened this issue Jul 14, 2022 · 3 comments
Labels

Comments

@romainpoirier
Copy link

Description

  • I'm browsing /admin/maps/settings and trying to fill the Geocoding > Geo Service : Google Maps + Geo Token field;
  • After copy-paste my token, I'm clicking Save, but the field value disappears on page reload;
  • I don't see any error in the log, but I can see my token in the $_POST = ['settings' => ['geoToken']];
  • From the CP, when I'm browsing an Entry with a field map, the search feature is not available, and I can see this error in the JS console: Google Maps JavaScript API error: RefererNotAllowedMapError | Your site URL to be authorized;

Infos

Craft CMS version: 4.1.4.1
Plugin version: v4.0.3 (Lite, in trial mode)
PHP version: 8.1

@romainpoirier
Copy link
Author

Update:

  • After uninstall/reinstall the plugin + set the map token from the config/simplemap.php file, I can now use the map field from the CP.
  • However, on the /admin/maps/settings page, from the Geo Token field value is still not showing and should maybe be fixed.
  • As an UX suggestion, I would also recommend adding a loading icon when an address is typed and before the result is shown in the autocomplete of the address field: because sometimes, there's a long delay to show the suggested addressees, and I was feeling like something went wrong;

@alexjcollins
Copy link
Member

Hey @romainpoirier
Thanks for the update, really appreciate it.

We'll definitely look into the input issue, where the value appears to be cleared.
I like your suggestion for the spinner when searching, we'll get that included in the next update, too.

@chadcrowell
Copy link

+1 key won't save in settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants