alps-wordpress
alps-wordpress copied to clipboard
script.min.js error / Google maps not displaying
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:
- display Google maps on any page with Alps for Wordpress 3.1.15.7
- View page on any non-mobile platform.
Expected behavior Map is blank
Screenshots
Additional context