I can't add a marker in Content template! Map is not showing up.
Using Goggle Maps API (Restriction None). The map is showing on the post when I add the address and on front preview for template, but not in Content template. It says "This block has encountered an error and cannot be previewed."
What am I doing wrong?
Hey there,
Welcome to the Toolset support forum!
We had a recent patch for this issue, please check it: https://toolset.com/errata/cannot-specify-view-as-source-of-markers-in-map-block-following-maps-2-0-9-release/. But it should be already solved, please make sure that you're using an updated version.
If you have double-checked it and your Maps version is fine, 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-three
- 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.