-
AuthorPosts
-
June 3, 2020 at 11:58 am #1219016
I have the latest Enfold installed:
No Updates available. You are running the latest version! (4.7.5)
Token Check says:
Als wir das letzte Mal überprüft haben, konnten wir mit Ihrem API-Schlüssel eine Verbindung zu Google Maps herstellenIssue:
When adding new google Maps, add a new adress and Press get LAt/Long of adress, an error occure.In Console (Frontend I can see):
Google Maps JavaScript API warning: RetiredVersion https://developers.google.comHow to fix? Please update Google Maps Implementation according to Google.
June 5, 2020 at 8:20 pm #1219922Hey BlutVampir,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaJune 8, 2020 at 4:51 pm #1220520Please update this thread if solution is found, we have a similar problem here! Thx!
June 14, 2020 at 8:30 pm #1222504Hi,
@BlutVampir, Sorry for the late reply, the google maps API version is on line 17 in\wp-content\themes\enfold\framework\php\class-gmaps.php
look for:const API_VERSION = '3.38';
and change to:const API_VERSION = '3.41';
Although I experienced the warning on my localhost, I was still able to create and edit maps. When your error occurred did you get a message? Or did you just see the map API warning and thought it was related?
Perhaps we can log into a test page and see the error?Best regards,
MikeJune 26, 2020 at 10:17 am #1225758I am also getting the Warning:
Google Maps JavaScript API warning: RetiredVersionhttps://developers.google.com/maps/documentation/javascript/error-messages#retired-version
It is a warning, but sooner or later problems will come in.
Modifying a version number in enfold\framework\php\class-gmaps.php is not a newer version, just a number change in the code.
The docs say:
Please update your application to use one of the available versions.See Versioning: https://developers.google.com/maps/documentation/javascript/versions
Is there a way to fix it or we have to wait for a new enfold version?
Thanks.
June 27, 2020 at 12:52 pm #1226044Hi,
@peterolle
The dev team set this up so the version number is changed in one place. I don’t think you can see our GitHub but I linked to it below. Here is the main thought behind it from the dev team:I dont think we should use an automated weekly schedule that might or might not break anything without us knowing. I think if we want to update to a more current version this should be done by first testing the version and then hardcoding the new version number into the theme. One thing that might be of use is to create a Constant or function in the file functions.php or functions-enfold.php or somewhere in the framework folder that allows us to update the version number in a single place across the site
So the result is
const API_VERSION
inclass-gmaps.php
and a hardcoded version number.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.