Skip Navigation

[Resolved] Maps works with coordinates but not with Address text?

This thread is resolved. Here is a description of the problem and solution.

Problem:
Tell us what you are trying to do?
Get a map to show a marker using a text based address.
EG: House of Lords, London, SW1A 0PW.

If I add lat and lon coordinates it works fine.
If I add a text address as the marker - the address seems to disappear when I reload the page / select another element etc etc.
The address field just constantly reverts to the default text / blank (the co ordinates work fine)

Solution:
It was a conflict with DIVI.
Switched OFF DIVI Google maps enqueing and all is fine now.

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

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 1 reply, has 2 voices.

Last updated by Mateus Getulio 1 year, 6 months ago.

Assisted by: Mateus Getulio.

Author
Posts
#2625677
Screenshot 2023-07-20 at 13.51.46.png

Tell us what you are trying to do?
Get a map to show a marker using a text based address.
EG: House of Lords, London, SW1A 0PW.

If I add lat and lon coordinates it works fine.
If I add a text address as the marker - the address seems to disappear when I reload the page / select another element etc etc.
The address field just constantly reverts to the default text / blank (the co ordinates work fine)

Is there any documentation that you are following?
Toolset docs

Is there a similar example that we can see?

What is the link to your site?

#2625871

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thanks for your reply.

Is it not working for any address texts that you enter, or only to specific ones? Regardless, we might be facing an interaction issue with a third-party functionality, in this case:

- Deactivate all the plugins that are not related to Toolset
- Switch for a moment to a WordPress default theme like Twenty Twenty-one
- If the issue is gone, activate one by one to see with which one there is an interaction issue

Could you please tell me the results of this investigation? Also, can you enable the debug mode? Just add the following code in your wp-config.php file:

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
  
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
  
// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
  
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );

Please check the following links to read more about debugging with WordPress.
- https://codex.wordpress.org/Debugging_in_WordPress
- https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging

After adding the code above, try to reproduce the issue again and check if you'll find a debug.log file inside the wp-content folder. If you locate it there, kindly send us the last lines here in the ticket.

Regards,
Mateus.

#2645741

Hi,
It was a conflict with DIVI.
Switched OFF DIVI Google maps enqueing and all is fine now.
Thanks