• Hi — I’m a bit perplexed why this plugin is not working for me when it appears to be working for others. I have now installed it on a second website and it’s not working here either.

    Maps are showing in the WP backend and also in fullscreen view, but not on the page itself. The steps i’ve taken are –

    1. disabled all other plugins
    2. verified that wp_footer is used in the theme
    3. turned off google maps in case there was a conflict

    Map do not display from the database [mapsmarker market=”x”] or with a full shortcode directly on the page.

    On the first site where i tested it, a small initial image loaded in the top left, but other tiles did not load.

    Both of these sites are on https and HTTP/2.

    The page is currently back to its normal state with all plugins enabled and is using the following shortcode –

    [mapsmarker lat=”45.130053″ lon=”-76.123463″ zoom=”9″ mapheight=”300″ mapwidth=”100″ mapwidthunit=”%”]

    Where do i go next in diagnosing this problem?

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter wildmice

    (@wildmice)

    oops, sorry – using current version of free version of mapsmarker and latest WordPress – on PHP 7 hosting

    Hi,
    I think the issue is related to the type of quotes you are using: I copied your shortcode and it did not work for me either, so I changed the quotes to “regular” quotes and it worked on our dev site.

    Old:
    [mapsmarker lat=”45.130053″ lon=”-76.123463″ zoom=”9″ mapheight=”300″ mapwidth=”100″ mapwidthunit=”%”]

    New:
    [mapsmarker lat=”45.130053″ lon=”-76.123463″ zoom=”9″ mapheight=”300″ mapwidth=”100″ mapwidthunit=”%”]

    Please als be aware that the regular shortcode is [mapsmarker marker=”x”] and not [mapsmarker market=”x”] (but I guess this was just a typo and also the quotes are the issue here)
    best,

    Robert

    Thread Starter wildmice

    (@wildmice)

    Hi Robert, and thanks for looking at this.

    I typed in those quote marks by hand and they are regular ASCII straight-up double quotes, not curly quotes. Just to be sure, i typed them in again just now. It does not make any difference.

    Yes, “market” was a typo, and “marker” is what i was actually using.

    Hi,

    as the fullscreen map at https://autotechnik.ca/wp-content/plugins/leaflet-maps-marker/leaflet-fullscreen.php?marker=1 works properly, there must be some conflict – either with another plugin (which is unlikely, as you already said you disabled all other plugins) or with your theme.

    Please tempororarily switch to a default theme like twentyfifteen to verify if your theme is the cause for the issue here.

    Please also be aware that we our free version will be “grandfathered” soon, meaning no more fixes but severe security updates once Maps Marker Pro 4.0 is available (the free version will continue to work as it is now, but it is likely that you will have a better user experience using our pro version).
    best,

    Robert

    Thread Starter wildmice

    (@wildmice)

    Hi Robert,

    So on my way to testing this locally with a WP theme, because i have PHP errors enabled for the development environment, it turned out that the plugin is encountering PHP errors.

    Notice: Undefined index: mapquest_api_key in F:\projects-active\autotechnik.ca\2015-05\www\wp-content\plugins\leaflet-maps-marker\inc\showmap.php on line 599

    Notice: Undefined index: mapquest_api_key in F:\projects-active\autotechnik.ca\2015-05\www\wp-content\plugins\leaflet-maps-marker\inc\showmap.php on line 721

    Notice: Undefined index: mapquest_api_key in F:\projects-active\autotechnik.ca\2015-05\www\wp-content\plugins\leaflet-maps-marker\inc\showmap.php on line 1073

    Thread Starter wildmice

    (@wildmice)

    Note that on the dev site (which is where the above errors appeared) no Google API key is installed, but there is a Google map (which fails because there’s no API key on the dev site).

    Hi,

    the undefined index warnings are rather not related to your issue.
    Unfortunately further debugging is difficult without having access to the site.

    best,

    Robert

    Thread Starter wildmice

    (@wildmice)

    Hi Robert,

    I appreciate your responses to this.

    Yes, i’m aware that this is a separate problem, but it needs to be resolved before we can resolve the initial problem. However, i’m unable (literally) to give you access to a test site that is running on localhost.

    We have numerous websites on which we wish to deploy Mapsmarker, and if it works we’d be happy to buy the pro version. At the moment i am evaluating whether it will meet our needs (which at this point it obviously won’t).

    Since we are abandoning Google maps on principle, if Mapsmarker won’t work for us, then unfortunately we’ll have to write our own, since there does not appear to be any other credible alternative.

    Hi,

    yes, getting access to your localhost installation would be a bit difficult ??

    If you′re evaluation our plugins, I kindly ask you to have a look at our pro version, as the free version has not received many updates in the past & as said before will be “grandfathered” soon.

    You can test Maps Marker Pro on your localhost installation without any time limitation, just FYI – or you can start a free 30 days trial on your live site.

    best,

    Robert

    Thread Starter wildmice

    (@wildmice)

    Hi Robert,

    Sorry for the delay. I ended up writing a plugin to create Leaflet maps, and when testing it discovered that there are issues with maps not rendering properly in hidden divs… at which point i realized that this was the reason why your plugin appeared to be broken on some sites.

    In the process of researching that issue i came across a post by you on the same problem. It’s definitely not an easy one to resolve, since there’s no native event for when an element is made visible. I didn’t feel like getting in over my head so took the path of using setInterval and invaliding the map to force re-rendering when the map div becomes visible. Not elegant but it works.

    I don’t know if it will be of any help to you, but here’s the plugin and you’re welcome to use anything in it that is helpful. I made it support a long list of data sources, including (ironically) both Google and Bing, with API keys, of course.

    https://columbiavalley.com/media/mymaps-0.0.1.zip

    I’ll only leave this on our server for a few days, until it seems likely that you’ve gotten a copy. Feel free to remove the link from this post once you’ve got it.

    Hi,

    thanks for the info & link to your plugin (unfortunately my user do not have the capability to remove the link from your post, so I′d suggest you remove the zip file from your server)

    regarding maps in hidden divs/tabs: yes, that′s right, maps do not display properly because of this. This is why we added the compatibility setting “Tab/hidden div compatibility” which works in the same way as your workaround (due to differences in plugin architecture, this setting is only available in the pro version only & for the upcoming v4.0 release we plan to find a better solution here (which seem rather difficult so far, as there is no easy way to detect this and using setInterval has come performance drawbacks).

    Anyway thanks a lot for your feedback, much appreciated!

    best,

    Robert

    Thread Starter wildmice

    (@wildmice)

    Hi Robert,

    I removed that file from my server today.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Plugin does not work’ is closed to new replies.