Skip Navigation

[Resolved] Maps location don't work in some post

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 9 replies, has 2 voices.

Last updated by Waqar 9 months, 3 weeks ago.

Assisted by: Waqar.

Author
Posts
#2681027

Hi

I add some custom post types from a scheduled task and i have configuted a custom field for the maps location.
Also I see i some places that this location don't work well.
If i save manualy the post this issue solve but i can't do this to all post.

do you know how can be the issue?

#2681028

Example: hidden link

#2681375

Hi,

Thank you for contacting us and I'd be happy to assist.

Looking into the page's source code, I see the code for the map marker, but no location coordinates are added.

This is how the Toolset's address type field works. When a post/page is updated with a location selected in the address field, it gets LAT/LON coordinates from Google for the entered address and stores it in the database for the map's cache table (if it is not already saved).

I'm not sure exactly what is your current workflow for adding these scheduled posts and the address field data. Are you importing this data through some third-party plugin?

If you could share some details about this workflow, I'll be in a better position to suggest the next steps, accordingly.

regards,
Waqar

#2681844

Hi,
I still saving the posts with a custom code on the fuctions.php file on a child theme.
This code call an API and save the informations in custom fields, for the maps I save the address.
But with this functions i save several posts and the rare funcionality is that some address works but others not works.

thanks

#2681948

Thank you for sharing these details.

To troubleshoot this further, I'll need to see how these non-functional addresses are saved in the admin area.

Can you please share temporary admin login details, in reply to this message?

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

#2682083

tooset

#2682085

Can you open again the request credentials please?

#2682223
Captura de pantalla 2024-02-07 110633.png

1 - post don't work position
2 - post correct
3 - admin post 1
4 - admin post 2

#2682237

I've set the next reply as private again so that you can share the temporary admin access details.

Important note: please include the username and password in the dedicated fields for the access details and not in the message's content/body.

#2682415

Thank you for sharing the access details.

During troubleshooting, I noticed that the new address map coordinates were not getting updated in the map's cache database. The reason for that is the incorrectly configured Google Maps API key.

If you'll check the status of the Google Maps API key used on your website, from Toolset -> Settings -> Maps, it shows the following error:
"REQUEST_DENIED - API keys with referer restrictions cannot be used with this API"

Please go to your Google Map API key settings ( at hidden link ) and set the "Application restrictions" option to "None".

Once, your API key starts showing the message "Google API seems to be configured properly." in Toolset Maps settings, it will be a confirmation that it is ready to use.

After that, you can use the 'Check for missing cache entries' button at Toolset -> Settings -> Maps, to update the map cache database for the missing address coordinates.