Revised patches for Google Maps access loss on all Adobe Commerce versions

This article provides a fix for Adobe Commerce merchants who are not compatible with any recent Google Maps versions from 3.54+. This fix is to solve the issue where Adobe Commerce merchants have no access to Google Maps in any version of Adobe Commerce anymore.

Affected versions and products

  • Versions of Adobe Commerce and/or other used technologies.
  • Adobe Commerce 2.4.4 - 2.4.7 on Cloud and On-Premises versions.

Issue

On June 14, 2024 Google Maps version 3.53 reached the end of life and was switched off by Google.

For more information refer to Google Maps Platform: Maps JavaScript API.

Adobe Commerce was not compatible with any recent Google Maps versions from 3.54+.

The incompatibility was caused by legacy prototype.js script, which loaded through lib/web/legacy-build.min.js overrides native Array.from function, which leads to a direct conflict with Google Maps API.

Refer to Google Maps: JS Best Practices.

Steps to reproduce :

  1. Click on Content > Pages > and select a New Page.
  2. Expand the Content Block and click on the edit PageBuilder button.
  3. Drag the Map Content Block from the PageBuilder menu to page.

Expected result:

Google Maps should work as expected.

Actual result:

When dropping the Map Content Block from PageBuilder menu to the page, an error message such as “Sorry! Something went wrong” is displayed.

Solution

  • All the merchants on any 2.4.4, 2.4.5, 2.4.6 or 2.4.7 patch version should apply these corresponding patches to their version.

Patch

Use the following attached patches, depending on the Adobe Commerce version:

For versions 2.4.4:
ACSD-60245_Google_maps_API_2.4.4_2.4.5_2.4.6_composer.patch.zip

For versions 2.4.5:
ACSD-60245_Google_maps_API_2.4.4_2.4.5_2.4.6_composer.patch.zip

For versions 2.4.6:
ACSD-60245_Google_maps_API_2.4.4_2.4.5_2.4.6_composer.patch.zip

For versions 2.4.7:
ACSD-60245_Google_maps_API_2.4.7_composer.patch.zip

Please note

This issue will be permanently fixed in the scope of August security-only patch releases:
2.4.7-p2, 2.4.6-p7, 2.4.5-p9, 2.4.4-p10

How to apply a composer patch provided by Adobe

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a