Viewing 15 replies - 1 through 15 (of 32 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Hi ??
    There are two things going on in your case.
    1) Please deactivate Auto Optimize (for now). That plugin takes all scripts and puts them in one file, breaking OSM. That is “L is not defined” error.
    The author already told me how to get AO to ignore certain files, but (to be honest) I forgot his answer… I will have to look it up for you.

    2) Still, that plugin should not influence the back-end Edit Event Page.

    Could you please check if in the copied events-manager.js line 718 is indeed
    if( jQuery('input#location-id').val() != '0' && jQuery('input#location-id').val() != '' ){
    and not input#loc-id ?

    Optimizing Matters

    (@optimizingmatters)

    pro-tip; you can disable Autoptimize on a per-request basis by adding ?ao_noptimize=1 to the URL (for visitor-facing pages, AO indeed is not active on /wp-admin).

    if the problem is not there at that point, some autoptimize (re-)configuration might be needed to fix this. there are troubleshooting tips and info on how to exclude in the AO FAQ.

    hope this helps debugging,
    frank (ao dev)

    Thread Starter laurena86

    (@laurena86)

    Ok good news – I disabled Autoptimize and the map is back – kind of! ??

    It’s showing on front end again, and seems ok for the newest entry I made:

    https://therp.co.uk/events/toby-wiggins-exhibition-of-peloponnese-landscapes/

    However on the older entries, it isn’t finding / searching the locations and showing them, e.g:

    https://therp.co.uk/events/portrait-painting-course-with-antony-williams/

    Does this mean there is no way around solving the incompatibility with Autoptimize (do we need to forget about using it?)

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    No, you can use Auto Optimize (it’s a great plugin after all), but you will need to tell it o leave OSM alone ?? You will still have all benefits AO gives you, but OSM needs its files to be loaded specifically.

    In your Auto Optimize settings you can exclude parts of your website. Enter there:
    /stonehenge-em-osm/inc/ and /events-manager/includes/js/events-manager.js separated by a comma. Then you can keep using AO alongside OSM.

    For the other thing… I’m digging in to it. ??

    Thread Starter laurena86

    (@laurena86)

    Thank you – I really appreciate your help with all this, by the way! ??

    Thread Starter laurena86

    (@laurena86)

    Hmm the only option I can see in Autoptimize settings is this:

    Async JavaScript-files (advanced users)

    Comma-separated list of local or 3rd party JS files that should loaded with the async flag. JS files from your own site will be automatically excluded if added here. Configuration of async JavaScript is easier and more flexible using the “Async Javascript” plugin. Click here to install and activate it.

    Optimizing Matters

    (@optimizingmatters)

    that option is on the “extra” tab but the JS (and CSS) exclusion options are on the “main” tab Laurena ??

    Thread Starter laurena86

    (@laurena86)

    Hello

    i couldn’t find that setting in the main settings of my Autoptimize plugins so I just had to disable it.

    I have also discovered this whole issue is happening on another client’s site: https://davidpoxon.co.uk/events/international-watercolour-masters-exhibition-2020/

    The map either doesn’t populate the right place or just shows the coast of Africa for everything!

    Does the plugin just not like any cacheing plugins? I have W3 Total Cache installed, could it be this?

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    If I go to the page you linked to in the last message, it shows the map perfectly!
    https://paste.pics/893a0a23e599a19905f25d50c1b9ef97

    It’s a simple test to see if the caching plugin causes the problem of course ??

    Thread Starter laurena86

    (@laurena86)

    Hey Patrick

    That wasn;t the link in question – this is: https://davidpoxon.co.uk/events/international-watercolour-masters-exhibition-2020/

    It seems to be ok on a couple of older events in other countries, however all newer ones including this which is the main one the client is bothered about, doesn’t seem to work?

    Very weird:

    https://davidpoxon.co.uk/events/international-watercolour-masters-exhibition-2020/

    i couldn’t find that setting in the main settings of my Autoptimize plugins so I just had to disable it.

    on the “main” tab make sure the advanced options are visible, if need be click on the “show advanced setting”-button near the top right corner ??

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Looking at the source code, it appears the coordinates are not loaded correctly.
    var Lat=0;var Lng=0; That is indeed what the map is showing: 0,0 position.

    Can you please check if your database does have correct values for location ID 117?

    Thread Starter laurena86

    (@laurena86)

    I just tried deleting all previous versions / drafts of that location in Events Manager and started setting up the Location again from scratch – it just won’t find it? https://prnt.sc/mzzp97

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    That specific location seems to me “in the middle of nowhere” ?? I mean, on their own website they mention the address as “near Newport”.

    It appears it was indexed on OSM as being in Sherrifhales.
    https://paste.pics/a64015f9baf16b83c598062cfc391a2d

    Thread Starter laurena86

    (@laurena86)

    Hmm! How did you get it to show up at all though? The ‘Search Address’ button never ever works – it just does nothing? Otherwise surely it would just find it from the postcode?

Viewing 15 replies - 1 through 15 (of 32 total)
  • The topic ‘Map not showing, even after update’ is closed to new replies.