Flash Sale for Premium Subscriptions

50% off annual premium licence subscription.

Get 50%off now

Map not showing on small group membership

About Support Directory Map not showing on small group membership

  • This topic is empty.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #2894
    Avatar for Rich CoxRich Cox
    Participant

    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 groups

    Map loads onfront end!
    ===========

    Using the shortcode [church_admin type="small-groups-list" map="1"]

    Many thanks,
    Rich.

    #4248
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Can 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 please

    #4249
    Avatar for Rich CoxRich Cox
    Participant

    Thanks 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 ()

    #4250
    Avatar for Rich CoxRich Cox
    Participant

    Link: https://www.dorchestercommunitychurch.org.uk/test/

    PS. Maps are working elsewhere all ok.

    #4251
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    That 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 defined

    The latitude and longitude for the small group map is centred on your venue – Do you have the site geolocated on the Services tab?

    #4252
    Avatar for Rich CoxRich Cox
    Participant

    Doh! 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.

    #4253
    Avatar for Rich CoxRich Cox
    Participant

    Hi 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:9

    Any suggestions welcome please?
    Many thanks…
    Rich.

    #4254
    Avatar for Rich CoxRich Cox
    Participant

    additionally…

    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:2

    #4255
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    The 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.

    #4256
    Avatar for Rich CoxRich Cox
    Participant

    FIXED 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.

    #4259
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Those pesky diacritics, have no end of trouble with them!

    #4786
    Avatar for geverwillsgeverwills
    Member

    According 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);

    http://net-informations.com/jq/intro/cdn.htm

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.