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 ☹️☹️
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.
- 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.
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.
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.
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 );
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.
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.