Skip Navigation

[Resolved] Toolset maps are only showing 5 markers

This support ticket is created 5 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 3 replies, has 2 voices.

Last updated by Beda 5 years, 5 months ago.

Assisted by: Beda.

Author
Posts
#1321975

I am building a map, using a custom post type for the markers.

In each custom post, the address entered is correctly showing the map preview, but when I view the page containing the View to show a map with all of the custom post markers, only 5 appear.

When I go into Toolset > Settings > Maps and click 'load stored data' none appear.

I have tried a different Google Maps API key (one that definitely works on other websites) and that didn't help.
I tried switching to a default theme, and deactivating all plugins apart from Toolset ones, and that didn't fix things either. So it's nothing wrong with the theme, plugins clashing, or the API key.

I am wondering if there is a bug in Toolset maps. Can you help?

Thanks

Alex

#1322019

Sure, please provide me the access to the site, and allow me to test our internal API Key for Maps as the first thing.

Please also let me know how many markers should appear on what map, at what precise URL.

Thanks!

#1322029

The View finds 57 Posts (you can see that using the [wpv-found-count] shortcode, outside the loop tags)

Something hence is stopping the posts from displaying on the map, as the view itself is returning the right amount of results, it seems.
[wpv-items-count] also returns 57 so there isn't any pagination hidden.

I also tested several different setups of the view and map, along with our own API Key for Google Maps, and the issue persisted.

This was when I realized, not all Location posts in your site have addresses, see hidden link
The ones that feature an address, outnumber 5, so there is something wrong, with the View, I confirm that.

I can at this point only suggest testing without any other software but Toolset and a native Theme like Twenty Nineteen.
If then the issue persists (it's suggested to test this on a staging site) please create a duplicate of the site and send that to me:
https://toolset.com/faq/provide-supporters-copy-site/

Thank you.

#1322857
Bildschirmfoto 2019-08-23 um 16.08.40.png
Bildschirmfoto 2019-08-23 um 16.05.06.png

All plugins are still active (inclusive the theme) on the Duplicate and the other Themes were outdated.

After I disabled all plugins, I remained with a JS error in the Console (Uncaught ReferenceError: jQuery is not defined) and another error, Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('hidden link') does not match the recipient window's origin ('hidden link').

The first error is solved here: https://toolset.com/errata/uncaught-referenceerror-jquery-is-not-defined-when-toolset-does-not-load-bootstrap/
The second is not due to Toolset but the YouTube vids. I think we can ignore that.

Now, with your Maps API, of course, I cannot test, as it's not open for any site, I assume 🙂

When I add our own API, I see all the markers (note, I need to reload few times because google can only add 10 items a time to the cache):
All addresses are loaded as well in the stored data in the backend.

Note, of course, I disabled all plugins, theme, and any Drop-In plugin you used.
I am not sure whether the issue is due to one of those plugins, or solely the jQuery issue as mentioned above (which can be solved as per the erratum), but it seems to work.

Can you try the same steps on your site?
I've added a Duplicate here, of the working result of your original Duplicate, if you want to use it as a reference or re-deploy from there.
Note, I removed the API key from it for Google Maps, you'll need to re-add your own.
hidden link

PS: I notice also your low MySQL Version, which could explain the issue too.
With WordPress, you should use at least 5.6, see https://wordpress.org/about/requirements/ and https://toolset.com/toolset-requirements/

Below 5.6 Toolset isn't working properly, neither will WordPress.
I'd suggest updating that as well.