alps-wordpress icon indicating copy to clipboard operation
alps-wordpress copied to clipboard

script.min.js error / Google maps not displaying

Open mcordas opened this issue 4 months ago • 0 comments

Version of ALPS for Wordpress v3.15.1.7 Wordpress 6.4.3

Describe the bug Since upgrading from Alps for Wordpres 3.13, Maps from WP Go Maps (formerly WP Google Maps) plugin won't show anymore.

I have this error message in developpers tools console on pages with maps (from Google maps) :

"Uncaught TypeError: this.parentElement is null" in script.min.js line 4 character 19019

If I delete script.min.js from "/wp-content/themes/alps-wordpress-v3/app/Local/alps/js", then the error disappears and maps show again. Buth then some other blocks won't show at all, like Youtube.

Also, maps show on iOS or other mobile platform user agents, and there's no error with script.min.js on those platforms.

If I manually change user agent with developper tools, then the maps will show also on MacOS and Windows, and the error disappears from console.

To Reproduce Steps to reproduce the behavior:

  1. display Google maps on any page with Alps for Wordpress 3.1.15.7
  2. View page on any non-mobile platform.

Expected behavior Map is blank

Screenshots Capture d’écran 2024-03-01 à 18 56 47 309348188-7534ad1c-0aa6-46c1-8369-b6ba29e7b232

Capture d’écran 2024-03-01 à 18 56 59

Additional context

mcordas avatar Mar 01 '24 18:03 mcordas