Hi,
I import custom posts with WPallimport.
I recently encountered issue that after importing post it's address can't be seen on map.
If I publicate it from admin menu (using bulk funkction) address's still not visible.
But if I enter post by "Edit", change nothing and hit update button, then everything starts working fine.
Can you tell me, what's wrong?
Post publicated with bulk: hidden link
Post publicated individually: hidden link
It's a bit pain in ass to enter every post to publicate it... :/
The problem is likely that the Toolset address cache doesn't have the imported addresses, and the cache is only getting populated if you edit a post with an imported address and then save it. Saving it updates the cache, but bulk editing doesn't.
If that's the problem there is a fairly simple workaround.
Create a test page and add a simple View to display all of the posts of this post type as markers on a map. Don't include any filters or pagination.
When the markers are drawn by this simple map the cache will get updated.
You would just need to visit this page after an import to "bulk update" the cache.
What if you try to follow the following Doc:
Sometimes, the cache entries for maps might be missing. This could happen after importing addresses, glitches in maps API, etc. When this happens, Toolset can do a scan and restore the map cache.
It also seems not to work...
It gives message "3 missing cache entries found. 3 cache entries processed." (I also seen 29) but no matter how many times I click it or wait, nothing changes.
I deleted all stored data, not it says:
"185 missing cache entries found. 50 cache entries processed. Remaining cache entries will be processed automatically using cron."
but I can't see anything changes
Can you please share link where I can see the issue and what is the address field you are targeting and send me admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
When I click on the button "Check API" I see the following error:
REQUEST_DENIED - API keys with referer restrictions cannot be used with this API.
Please check the following known issue:
- https://toolset.com/course-lesson/creating-a-maps-api-key/#problems-with-displaying-markers-on-google-maps
If Google Maps API key is restricted by domain, that may not work for users with multiple domains or subdomains. To solve this, you can enter a second API key for Google Maps, in the Toolset settings. When added, this second key is used exclusively for server-side requests. This means it is never exposed in HTML and does not need restrictions. If you want extra security, you can restrict it, but only by IP addresses, not by domains.
I suggest you should create another "unrestricted" Google Map API key register with the maps setting at "For added protection of your API keys, you may want to set up a 2nd key for server-side requests:" for 2nd API box "Optional 2nd Key":
- hidden link
I already checked with my unrestricted Google Map API key and it works. Please check the following screenshot: hidden link