Knowledge Base Category Archives

Category: Troubleshooting

Console error “MapsMarkerPro is not defined”

If your maps do not show up and your browser console is showing the error “MapsMarkerPro is not defined” please proceed as follows:

  1. If you are using any caching plugins, please try first to clear any involved caches.
  2. First check if this issue might be caused by a plugin conflict. To verify this, please temporarily disable all other plugins but Maps Marker Pro and try again.
  3. If this did not return any results, please verify if your template files include hooks for wp_head() in header.php and wp_footer() in footer.php (which are needed to properly load scripts and styles from Maps Marker Pro). 
0
0
380
Rate this FAQ answer

Map tiles (in tabs) are not loaded completely

If your map looks like the example above or if it is embedded in a tab, please enable the option “Tabbed” on backend, which should fix this issue:

0
0
429
Rate this FAQ answer

“Error: map images could not be loaded” is displayed

If you see this error message instead of a map, this can have several reasons:

the most likely one is that the (external) tile server used is currently not available or has temporary issues (e.g. a maintenance window). Unfortunately we do not have direct influence on the availability of external tile servers Maps Marker Pro enables you to connect to in order to display map tiles. From our experience, OpenStreetMap is very reliable and those errors occur very rarely. 

Anyway as also stated in the error message, it could be that there are internet connection issues on the user side, which result in map tiles not being able to load, although the external map tile server is available.

The third reasons for this error – faulty map configuration – is usually only the case if you use custom tile server configurations (e.g. if you added a custom basemap which only shows map tiles for a specific area and you panned your map outside that area).

In case you experience this issue often with one selected tile service provider, you can try switching to another tile service provider for your map.

1
0
555
Rate this FAQ answer

How to fix the incompatibility with the “Geo Redirect” plugin

The plugin “Geo redirect” allows you to redirect your visitors or switch language according to their country. Unfortunately there hasnt been an update since 2013 and using this plugin together with Maps Marker Pro is causing layer maps to break (as also the leaflet-geojson.php call which is needed to load the markers is redirected.

To fix this, please open the file /wp-content/plugin/geographical-redirect/geo-redirect.php

The find the code

    public function checkIfRedirectNeeded()
    {
        if (!is_array($this->geo_redirect_data))
            return;

and replace it with

    public function checkIfRedirectNeeded()
    {
        //info: do not redirect Maps Marker Pro requests
        $request_uri = $this->request_uri;
        if (stripos($request_uri, 'geojson') !== FALSE) {
            return;
        }
        if (!is_array($this->geo_redirect_data))
            return;

and save the file. As a result, layer maps should be working again.

0
0
439
Rate this FAQ answer

Geolocation error: Only secury origins are allowed / https is required

With Chrome 50+, Firefox 55+ and Safari 10+ significant changes to the geolocation support were introduced by the related browser vendors: all applications requesting the current position of the user (not just for Maps Marker Pro´s geolocation feature) are only allowed anymore to retrieve the current position of the user if the site is setup to be delivered securely via https – users will see the following or a similar warning instead:

geolocation-error-info

See more details about this decision by Google at https://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only. Geolocation will still work on non-https sites if the users access the site via alternative browsers like Firefox, Safari or Internet Explorer – anyway it could be likely that those browsers will also add a similar security restriction in the future.

Update November 2016: since iOS 10 also Safari 10+ now requires https to support geolocation. The implementation is even more strict than with Google Chrome – geolocation will not work for example if there are mixed-content warnings on your site.

Update 2017: Firefox 55+ also requires https for accessing geolocation (see details)

So if you need the Maps Marker Pro geolocation featue on your site (which with v2.7 even gets more usable as you can sort the list of markers based on the current position of the user), it is strongly advised to migrate your site to https. Some hosters already provide free https certificates from letsencrypt.org for example. For configurations needed within your WordPress site in order to configure it to support https, please have a look at tutorials like https://css-tricks.com/moving-to-https-on-wordpress/.

As https has more advantages for your site than just geolocation working again with Google Chrome 50+ and Safari 10+ (like securing the data integrity, sender authentication and user privacy as well as higher Google ranking as https is used as ranking signal), we strongly advise to switch your site to https only if you haven´t done so yet.

If you switched your site to https and still get a geolocation error (like “Geolocation error: user denied geolocation”), please check your device´s location settings if it is allowed for apps/web sites to retrieve the geolocation.

2
0
2588
Rate this FAQ answer