Skip Navigation

[Closed] Toolset Map Block "has encountered an error and cannot be previewed."

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 6 replies, has 2 voices.

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

Assisted by: Mateus Getulio.

Author
Posts
#2599597

I am trying to:
Add a map with Toolset Map block

Link to a page where the issue can be seen:
It says it cannot be previewed ☹️

I expected to see:
The possibility to add map details and pin definition

Instead, I got:
"This block has encountered an error and cannot be previewed."

I have deleted and re-added the Toolset Map plugin, but that didn't help.

How to make it work?

#2599621
Bildschirmfoto 2023-04-26 um 15.10.19.png

I have deactivated all non-Toolset plugins and the map worked.
I then have reactivated (one after another) the very same plugins and the map STILL works.

I must admit that this is quite an unexpected behavior. It would be normal that with the reactivation of a certain plugin the error encountered.

So the map is working but is a bit shaky (with 500px height it's displayed in the admin view, with 600px height it's just a blank surface etc.)

In order to display a list of addresses from my Toolset CPT, I need to add a view.
So I add a View block.

And What does the Views block say?
"This block has encountered an error and cannot be previewed."

No this is not funny ☹️
and it's absolutely not efficient to work like this ☹️☹️

#2599847

Mateus Getulio
Supporter

Languages: English (English )

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

Hello there,

Thanks for your contact!

As a quick test, could you please try to remove the Toolset plugins and then reinstall them? Make sure to be using the latest versions, you can find them here: https://toolset.com/account/downloads/. After this, try to remove and readd the View again.

If the problem remains, I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://toolset.com/privacy-policy-and-gdpr-compliance/#data-shared-with-our-support
**IMPORTANT**

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

#2601011

Uninstalling all Toolset plugins and and reinstalling directly from the server download helped.

But I must admit that it's strange to have the Toolset updater in the WordPress dashboard telling me that all plugins are on the latest version, while that is in fact not the case 🤔

So the map itself on a new page is working now. BUT:
- all content blocks on the page after the map are not displayed any more 😳
- and when I copy-paste the Maps block to the frontpage and rename it, I am getting the "for development purposes only" overlay from Google Maps 😳😳 (and the following blocks are cut off too). Same when I add a new map and rebuild the same settings. I know this overlay from incorrect API settings, but I don't see why the API call from the frontpage should be different than from a subpage, where the map is displayed correctly.

What's wrong now?

Btw I'm using Kadence WP

#2601231
Bildschirmfoto 2023-04-30 um 13.33.14.png

Another page where the Maps block crashes the site structure: Content Template for Locations, e.g. hidden link

In the Content template, The Image Gallery and the list of events are place in full-width Row layouts, and there are address fields placed after the Maps block (in the same section as the Maps). With the Maps block, however, the address fields are not displayed, and everything after is displayed in the second column.
As soon as the Maps block is deleted, the address fields are displayed and the the full-width stuff is displayed full-width.

#2602029

Mateus Getulio
Supporter

Languages: English (English )

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

Hey there,

Thanks for your reply.

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.

#2602171

Mateus Getulio
Supporter

Languages: English (English )

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

Hi there,

Thanks for providing the credentials.

We can see that you have two content templates for the 'Location' post type. May I kindly ask you to review them and re-enter the custom fields? I have checked that some of them needs to be inserted again.

Moreover, I'm not sure what exact issue to check. Could you please tell us the exact step-by-step in order to reproduce the main issue that you want to focus in this ticket?

Please let us know. Thank you.

The topic ‘[Closed] Toolset Map Block "has encountered an error and cannot be previewed."’ is closed to new replies.