New home › Forums › Pro Add-on › Troubleshooting › Javascript error in admin
Tagged: JavaScript, Maps API Keys
- This topic has 3 replies, 2 voices, and was last updated 6 years, 10 months ago by PatD.
-
AuthorPosts
-
November 16, 2016 at 3:59 pm #22199dvdmierdenMember
Since a couple of days I’m unable to access the gmaps functionality via admin area. I just get a grey screen.
When viewing the source code of the page, it seems that the javascript containing the marker information is broken. It just stops right in the middle of a city name. There’s no special characters in the name or any other field of that marker. There’s no other html code beyond the javascript which seems to indicate either a (php) error or a lack of memory.
The server is configured to have memory_limit 768MB. There are almost 750 markers in the map. On my dev environment, everything works correctly. Same code, different server.
Any thoughts?
November 16, 2016 at 4:07 pm #22202PatDModeratorGood Morning,
Could you please inspect the code in the Developer Console (press [F12] while viewing the problematic page in your browser) and copy/paste any errors displayed in a reply to this topic?
If you would like us to take a closer look at your site, could you please create a temporary admin account for your WordPress site and send me the following information:
– Temporary Admin Username
– Temporary Admin PasswordPlease send this information in a private reply to this topic. Click the Set as private reply checkbox under the topic editor.
- This reply was modified 6 years, 7 months ago by SupportTeam.
November 16, 2016 at 4:21 pm #22203dvdmierdenMemberThis reply has been marked as private.November 17, 2016 at 4:41 pm #22222PatDModeratorGood Morning,
First I want to apologize for the delayed response. I looked at your site yesterday and wrote out a response, but apparently forgot to hit Submit. That’s embarrassing.
When I looked at the Developer Console on your Maps page I found 2 warnings related to the Google Maps API. One was
No API Key
and the other was that you were using a retired version of the API. I also noted that you are using older versions of both WP Google Maps and the Pro Addon. Please update both to the latest version (WPGM v6.3.20 and Pro v6.08). You can request an updated version of Pro here: https://www.wpgmaps.com/get-updated-version/.After updating you’ll need to change the Google Maps API version to 3.26 here WordPress Dashboard → Maps → Settings → Maps. If that does not resolve the issue then you will need to regenerate your Google Maps API key using the Google API Manager Console. If you need detailed instructions on doing that, see our documentation.
I hope this helps.
-
AuthorPosts
- You must be logged in to reply to this topic.