Map doesn’t work on Admin pages
-
I have the latest plugin using Divi theme.
I have the API setup correctly.
API and mapping works fine on front end location submitting.
I can see the maps of those locations submitted on the front end…in the back end.
But when creating an event or location in the backend it tells me ‘no location found’
I also got these in the developer console. I have the google libraries plugin installed as recommended in settings. I also tried limiting and not limiting JS. “APIKEY” is a valid api key.
js_functions.js?ver=95aba2f486cda1485562b6b6f0ed970c:22 You have included the Google Maps API multiple times on this page. This may cause unexpected errors. console.error @ js_functions.js?ver=95aba2f486cda1485562b6b6f0ed970c:22 public-api.wordpress.com/:520 WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: Error during WebSocket handshake: Unexpected response code: 403 pinghubAdd @ public-api.wordpress.com/:520 js?v=3&libraries=places&callback=em_maps&key=APIKEY:81 Uncaught TypeError: Cannot read property 'l' of undefined at Object._.Af (js?v=3&libraries=places&callback=em_maps&key=APIKEY:81) at Object._.Bf (js?v=3&libraries=places&callback=em_maps&key=APIKEY:80) at new m1 (maps.google.com/maps-api-v3/api/js/30/10/stats.js:3) at maps.google.com/maps-api-v3/api/js/30/10/stats.js:8 at js?v=3&libraries=places&callback=em_maps&key=APIKEY:108 at js?v=3&libraries=places&callback=em_maps&key=APIKEY:53 at js?v=3&libraries=places&callback=em_maps&key=APIKEY:108 at Sc (js?v=3&libraries=places&callback=em_maps&key=APIKEY:55) at Rc.jb (js?v=3&libraries=places&callback=em_maps&key=APIKEY:108) at maps.google.com/maps-api-v3/api/js/30/10/stats.js:1 util.js:215 Uncaught TypeError: Cannot read property 'prototype' of undefined at util.js:215 at js?v=3&libraries=places&callback=em_maps&key=APIKEY:108 at js?v=3&libraries=places&callback=em_maps&key=APIKEY:53 at js?v=3&libraries=places&callback=em_maps&key=APIKEY:108 at Sc (js?v=3&libraries=places&callback=em_maps&key=APIKEY:55) at Rc.jb (js?v=3&libraries=places&callback=em_maps&key=APIKEY:108) at util.js:1 common.js:180 Uncaught TypeError: Cannot read property 'prototype' of undefined at common.js:180 at js?v=3&libraries=places&callback=em_maps&key=APIKEY:108 at js?v=3&libraries=places&callback=em_maps&key=APIKEY:53 at js?v=3&libraries=places&callback=em_maps&key=APIKEY:108 at Sc (js?v=3&libraries=places&callback=em_maps&key=APIKEY:55) at Rc.jb (js?v=3&libraries=places&callback=em_maps&key=APIKEY:108) at common.js:1 common.js:13 Uncaught TypeError: Cannot read property 'data' of null at new _.vk (common.js:13) at new _.Gk (common.js:17) at Object.JB.j (util.js:221) at js?v=3&libraries=places&callback=em_maps&key=APIKEY:137 at js?v=3&libraries=places&callback=em_maps&key=APIKEY:56 at js?v=3&libraries=places&callback=em_maps&key=APIKEY:53 at Array.<anonymous> (js?v=3&libraries=places&callback=em_maps&key=APIKEY:56) at js?v=3&libraries=places&callback=em_maps&key=APIKEY:108 at js?v=3&libraries=places&callback=em_maps&key=APIKEY:53 at js?v=3&libraries=places&callback=em_maps&key=APIKEY:108 common.js:45 Uncaught TypeError: b.charAt is not a function at Object._.Um (common.js:45) at common.js:189 at common.js:50 at en.f (common.js:27) at common.js:50 at gn.f (common.js:188) js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 common.js:7 Uncaught TypeError: Cannot read property 'prototype' of undefined at new _.Sj (common.js:7) at iT (geocoder.js:2) at lT (geocoder.js:3) at Object.nT.geocode (geocoder.js:5) at js?v=3&libraries=places&callback=em_maps&key=APIKEY:122 at Object._.G (js?v=3&libraries=places&callback=em_maps&key=APIKEY:55) at _.Ve.geocode (js?v=3&libraries=places&callback=em_maps&key=APIKEY:122) at HTMLInputElement.<anonymous> (events-manager.js?ver=5.7:1053) at HTMLInputElement.dispatch (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,jquery-ui-position,jquery-ui&load[]=-menu,wp-a11y,jquery-ui-autocomplete,underscore,backbone,wp-util,wp-backbone,media-models,plupload,wp-plupload,mediaelement,wp-m&load[]=ediaelement,media-views,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jquery-ui-dialog,jquery-ui-tabs,jquery-form&ver=95aba2f486cda1485562b6b6f0ed970c:3) at HTMLInputElement.r.handle (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,jquery-ui-position,jquery-ui&load[]=-menu,wp-a11y,jquery-ui-autocomplete,underscore,backbone,wp-util,wp-backbone,media-models,plupload,wp-plupload,mediaelement,wp-m&load[]=ediaelement,media-views,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jquery-ui-dialog,jquery-ui-tabs,jquery-form&ver=95aba2f486cda1485562b6b6f0ed970c:3) common.js:15 Uncaught TypeError: _.z is not a constructor at Object._.Pk (common.js:15) at iw (common.js:165) at jw (common.js:166) at _.fw._.k.projectionTopLeft_changed (common.js:222) at Hb (js?v=3&libraries=places&callback=em_maps&key=APIKEY:41) at Hb (js?v=3&libraries=places&callback=em_maps&key=APIKEY:41) at _.Dv._.k.notify (js?v=3&libraries=places&callback=em_maps&key=APIKEY:105) at Nv (common.js:152) at _.Dv._.k.Pc (common.js:211) at Xf._.A.trigger (js?v=3&libraries=places&callback=em_maps&key=APIKEY:103) js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at Object._.wn (common.js:59) at map.js:65 _.Q @ js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 _.un @ common.js:59 _.wn @ common.js:59 (anonymous) @ map.js:65 common.js:6 Uncaught TypeError: _.Sd is not a function at Object._.Lj (common.js:6) at _.mw.aa (common.js:225) at js?v=3&libraries=places&callback=em_maps&key=APIKEY:124 _.Lj @ common.js:6 _.mw.aa @ common.js:225 (anonymous) @ js?v=3&libraries=places&callback=em_maps&key=APIKEY:124 setTimeout (async) _.$f.N @ js?v=3&libraries=places&callback=em_maps&key=APIKEY:124 _.mw.changed @ common.js:224 Hb @ js?v=3&libraries=places&callback=em_maps&key=APIKEY:41 Hb @ js?v=3&libraries=places&callback=em_maps&key=APIKEY:41 Hb @ js?v=3&libraries=places&callback=em_maps&key=APIKEY:41 _.k.notify @ js?v=3&libraries=places&callback=em_maps&key=APIKEY:105 (anonymous) @ common.js:167 js?v=3&libraries=places&callback=em_maps&key=APIKEY:67 Uncaught TypeError: Cannot read property 'function (d){d.f(e).add(c);if("-p"==b){var f=a+"-h";d.f(f).add(c)}else"-v"==b&&(f=a+"-vh",d.f(f).add(c))}' of undefined at Object._.Q (js?v=3&libraries=places&callback=em_maps&key=APIKEY:67) at Object._.un (common.js:59) at _.td.<anonymous> (marker.js:52) at _.td.forEach (js?v=3&libraries=places&callback=em_maps&key=APIKEY:114) at tg.<anonymous> (marker.js:52) at _.A.trigger (js?v=3&libraries=places&callback=em_maps&key=APIKEY:103) at common.js:28 at Ox.G (map.js:31)
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Map doesn’t work on Admin pages’ is closed to new replies.