After updating to WP 6.2 and the latest Toolset plugin suite, I've come across a particular View that is showing an error. If I try to insert a copy of the View, the new one shows the same error too.
Over the years I've had issues with Views not loading and just hanging and have been told by Toolset Support that sometimes they get "corrupted". The "this block has encountered an error and cannot be previewed" error is a new one for me.
This isn't a particularly complex View to rebuild, but there a quite a few other ones that would take me some time to rebuild, so I'm wondering if I should wait for a fix (assuming this issue is widespread) or get busy rebuilding Views and checking every single one of them.
Hi,
I've followed your instructions and I'm getting the following error in the Dev and Test environment regardless of the pages I visit:
WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 5 for query SELECT DISTINCT tt.taxonomy
FROM wp_term_taxonomy tt
JOIN wp_term_relationships tr
ON tt.term_taxonomy_id = tr.term_taxonomy_id
WHERE tr.object_id IN (10571) AND tt.taxonomy IN () made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, OTGS\Toolset\Views\Controllers\V1\Views->update_item, OTGS\Toolset\Views\Services\ViewService->save, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, display_tax_sync_message, do_action('wpml_new_duplicated_terms'), WP_Hook->do_action, WP_Hook->apply_filters, new_duplicated_terms_filter, WPML_Term_Hierarchy_Duplication->duplicates_require_sync, WPML_Term_Hierarchy_Duplication->get_need_sync_all_terms
However, the Live environment is not creating any log file when trying to edit the page/View in question, which could have to do with the way our hosting locks down Live for security reasons. I can't replicate the View on Dev and Test, but I'm getting the error above regardless, so maybe it is relevant. Important to notice that this is a View on a single page on a site that's part of a Multisite and there are other sites with the same page and View built the same way, and they are not experiencing the issue. So this is a one off.
It might be an exception, which is one off issue, and can not be reproduced in fresh WP installation.
In my opinion, you can recreate those specific post views, and test again.
If you still need assistance for it, please provide a database dump file of your website, also point out the problem view URLs, I need to test and debug it in my localhost: https://toolset.com/faq/provide-supporters-copy-site/
The topic ‘[Closed] View: This block has encountered an error and cannot be previewed’ is closed to new replies.