- This topic is empty.
-
AuthorPosts
-
10th June 2019 at 12:14 pm #2894Rich CoxParticipant
Hi Andy,
Trying to show a map of our Life group memberships and am receiving the following on the live page;
===========
Short List
PDF of small groupsMap loads onfront end!
===========Using the shortcode [church_admin type="small-groups-list" map="1"]
Many thanks,
Rich.10th June 2019 at 12:26 pm #4248Andy MoyleKeymasterCan you give a link please?
Or in Google Chrome, right click in the page, then “Inspect” then “Console” and copy and paste any errors shown please10th June 2019 at 1:57 pm #4249Rich CoxParticipantThanks Andy,
A parser-blocking, cross site (i.e. different eTLD+1) script, , is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See for more details.
A parser-blocking, cross site (i.e. different eTLD+1) script, , is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See for more details.
A parser-blocking, cross site (i.e. different eTLD+1) script, , is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See for more details.
A parser-blocking, cross site (i.e. different eTLD+1) script, , is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See for more details.
A parser-blocking, cross site (i.e. different eTLD+1) script, , is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See for more details.
A parser-blocking, cross site (i.e. different eTLD+1) script, , is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See for more details.
css:1 Failed to load resource: the server responded with a status of 400 ()
b960a.js:1 JQMIGRATE: Migrate is installed, version 1.4.1
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
scripts.js:1 Failed to load resource: the server responded with a status of 404 ()
VM14255:1 Uncaught ReferenceError: lat is not defined
at HTMLDocument. (:1:169)
at i (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at Function.ready (jquery.min.js:2)
at HTMLDocument.K (jquery.min.js:2)
at HTMLDocument.c (rocket-loader.min.js:1)
at p (rocket-loader.min.js:1)
at t.simulateStateAfterDeferScriptsActivation (rocket-loader.min.js:1)
at Object.callback (rocket-loader.min.js:1)
at t.run (rocket-loader.min.js:1)
css:1 Failed to load resource: the server responded with a status of 400 ()10th June 2019 at 1:57 pm #4250Rich CoxParticipantLink: https://www.dorchestercommunitychurch.org.uk/test/
PS. Maps are working elsewhere all ok.
10th June 2019 at 3:03 pm #4251Andy MoyleKeymasterThat test link is login only – add loggedin=FALSE to make it visible.
That’s a ton of warnings!
The error is that is for church admin is…
Uncaught ReferenceError: lat is not definedThe latitude and longitude for the small group map is centred on your venue – Do you have the site geolocated on the Services tab?
10th June 2019 at 3:30 pm #4252Rich CoxParticipantDoh! So sorry…
Have added the not logged in bit…
Ok, for some reason, all the site info for the main base address was missing. Have added it and now see the map, centred around Church address. Should map pins be shown on here for the relevant Life Groups?
Thank you!
Rich.11th June 2019 at 2:58 pm #4253Rich CoxParticipantHi Andy,
I’ve spent an age trying to weedle out the Console errors… I think the main issue was not having the geo-code for the main site address entered. I’ve now corrected that – thanks.
The map shows, but no pins on the map. The members directory map, loads all ok and shows pins, but no life group pins. ??
Console now;
ffe72.js:1 Lat:50.7143507 Lng: -2.46195739999996
ffe72.js:2 Uncaught TypeError: Cannot read property ‘documentElement’ of null
at ffe72.js:2
at XMLHttpRequest.request.onreadystatechange (ffe72.js:9)
(anonymous) @ ffe72.js:2
request.onreadystatechange @ ffe72.js:9Any suggestions welcome please?
Many thanks…
Rich.11th June 2019 at 3:32 pm #4254Rich CoxParticipantadditionally…
In the back-end, if I click on the ‘Groups’ tab, the map loads and the console / error is;
Does this help at all?
load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,moxiejs,plupload,jquery-ui-tabs,jquery-form&ver=910dbc5bbdd62e6e8ec9b8fb2692f723:8 JQMIGRATE: Migrate is installed, version 1.4.1
admin_sg_maps.js?ver=910dbc5bbdd62e6e8ec9b8fb2692f723:8 Uncaught TypeError: Cannot read property ‘documentElement’ of null
at admin_sg_maps.js?ver=910dbc5bbdd62e6e8ec9b8fb2692f723:8
at XMLHttpRequest.request.onreadystatechange (admin_sg_maps.js?ver=910dbc5bbdd62e6e8ec9b8fb2692f723:56)
(anonymous) @ admin_sg_maps.js?ver=910dbc5bbdd62e6e8ec9b8fb2692f723:8
request.onreadystatechange @ admin_sg_maps.js?ver=910dbc5bbdd62e6e8ec9b8fb2692f723:56
XMLHttpRequest.send (async)
(anonymous) @ VM16664:1
downloadUrl @ admin_sg_maps.js?ver=910dbc5bbdd62e6e8ec9b8fb2692f723:60
sgload @ admin_sg_maps.js?ver=910dbc5bbdd62e6e8ec9b8fb2692f723:5
(anonymous) @ VM16705 admin.php:542
i @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,moxiejs,plupload,jquery-ui-tabs,jquery-form&ver=910dbc5bbdd62e6e8ec9b8fb2692f723:2
fireWith @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,moxiejs,plupload,jquery-ui-tabs,jquery-form&ver=910dbc5bbdd62e6e8ec9b8fb2692f723:2
ready @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,moxiejs,plupload,jquery-ui-tabs,jquery-form&ver=910dbc5bbdd62e6e8ec9b8fb2692f723:2
J @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,moxiejs,plupload,jquery-ui-tabs,jquery-form&ver=910dbc5bbdd62e6e8ec9b8fb2692f723:211th June 2019 at 7:45 pm #4255Andy MoyleKeymasterThe error is that it is failing to download a dynamic xml file with the smallgroup marker data in it. Not sure why! Could be a caching plugin.
View Source and then CTRL F to find var xml_url=
It should be a file like http://localhost/thegatewaychurch/?ca_download=small-group-xml&small-group-xml=36cd3b3baa – but your domain name will be different as well as the letters and numbers at the end. If you copy and paste that in your browser it should load an xml file, if it does then the page was cached and the security nonce is out of date. If it doesn’t something else is wrong.
The code works on numerous sites I have, so it will be a clash or a local server issue.
12th June 2019 at 9:55 am #4256Rich CoxParticipantFIXED IT!!
Thanks Andy, I found the problem… Am so chuffed. Thank you so much for your patience with me.
Ok, so here’s it.. the xml file from the page source came back with;
“This page contains the following errors:
error on line 1 at column 104: Entity ‘egrave’ not defined
Below is a rendering of the page up to the first error.”Inspecting the file, I found some odd characters for one of the names of the small groups. –> crèche it didn’t like the “è”, so renamed it to creche and hey presto worked immediately.
Thanks for your efforts, I think having the map adds that extra dimension for people so they can visually see a group near to where they live.
Bless you,
Rich.12th June 2019 at 10:36 pm #4259Andy MoyleKeymasterThose pesky diacritics, have no end of trouble with them!
30th September 2020 at 6:31 am #4786geverwillsMemberAccording to Google Developers article, you can:
Use asynchronous script loading, using or element.appendChild(),
It is better don’t use document.write for jQuery CDN, here is workaround:
var script = document.createElement(‘script’);
script.src = “….”;
document.head.appendChild(script); -
AuthorPosts
- You must be logged in to reply to this topic.