Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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 herstellen

    Issue:
    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.com

    How to fix? Please update Google Maps Implementation according to Google.

    #1219922

    Hey 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,
    Victoria

    #1220520

    Please update this thread if solution is found, we have a similar problem here! Thx!

    #1222504

    Hi,

    @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,
    Mike

    #1225758

    I am also getting the Warning:
    Google Maps JavaScript API warning: RetiredVersion

    https://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.

    #1226044

    Hi,

    @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 in class-gmaps.php and a hardcoded version number.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.