JavaScript error after updating to 7.10.03 using OpenLayers
-
After updating the free plugin from 7.10.00 to 7.10.03 the OpenLayer map no longer works. This is not a plugin conflict.
The shortcode doesn’t display the map on the front end and a javascript error is displayed on the map admin where the map would normally appear:
“The map could not load.
This is normally caused by a conflict with another plugin or a JavaScript error that is preventing our plugin’s JavaScript from executing. Please try disable all plugins one by one and see if this problem persists.”The console gives the following errors:
Uncaught ReferenceError: google is not defined
at wp-google-maps.min.js?ver=4.9.6:1
wp-google-maps.min.js?ver=4.9.6:1 Uncaught ReferenceError: wpgmza_api_not_enqueued_reason is not defined
at new WPGMZA.GoogleMap (wp-google-maps.min.js?ver=4.9.6:1)
at Function.WPGMZA.Map.createInstance (wp-google-maps.min.js?ver=4.9.6:1)
at Object.MYMAP.init (wpgmaps.js?ver=7.10.03b:261)
at InitMap (wpgmaps.js?ver=7.10.03b:80)
at HTMLDocument.<anonymous> (wpgmaps.js?ver=7.10.03b:124)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Function.ready (jquery.js?ver=1.12.4:2)
at HTMLDocument.K (jquery.js?ver=1.12.4:2)Switching from OpenLayer to the Google Maps engine fixes this.
The topic ‘JavaScript error after updating to 7.10.03 using OpenLayers’ is closed to new replies.