Home › Toolset Professional Support › [Resolved] Creating a new template. There has been a critical error on this website.
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 |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
This topic contains 6 replies, has 1 voice.
Last updated by Minesh 2 months, 1 week ago.
Assisted by: Minesh.
I am trying to: Create a new template
Link to a page where the issue can be seen: hidden link
I expected to see: A new template
Instead, I got: Your Site is Experiencing a Technical Issue
I have reported several issues, all related to this, but this is a new way that I am coming across the issue. Generally, it allows me to create a new template, and only after saving several times do I get the error. This time, it immediately gave the error.
The email I got:
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.7.2
Active theme: Astra Child (version 1.0.0)
Current plugin: Toolset Blocks (version 1.6.18)
PHP version 8.3.17
NOTE: I have provided a temp log-in URL, however, this is a LIVE site, and you can't disable anything. You already have access to staging. We have disabled all plugins before, and there has been no change. We disabled the theme, and no change. I have provided a video for this previously.
You already have a duplicator copy.
Error Details
=============
An error of type E_ERROR was caused in line 129 of the file /home/k5ebrdc/public_html/wp-content/plugins/toolset-blocks/backend/Models/ContentTemplate/UsageCondition.php. Error message: Uncaught TypeError: Cannot access offset of type string on string in /home/k5ebrdc/public_html/wp-content/plugins/toolset-blocks/backend/Models/ContentTemplate/UsageCondition.php:129
Stack trace:
#0 /home/k5ebrdc/public_html/wp-content/plugins/toolset-blocks/backend/Models/ContentTemplate/UsageConditionGroup.php(137): OTGS\Toolset\Views\Models\ContentTemplate\UsageCondition::createFromDatabaseArray()
#1 /home/k5ebrdc/public_html/wp-content/plugins/toolset-blocks/backend/Models/ContentTemplate/UsageSettings.php(100): OTGS\Toolset\Views\Models\ContentTemplate\UsageConditionGroup::createFromDatabaseArray()
#2 /home/k5ebrdc/public_html/wp-content/plugins/toolset-blocks/backend/Models/ContentTemplate/UsagePostType.php(142): OTGS\Toolset\Views\Models\ContentTemplate\UsageSettings::createFromDatabaseArray()
#3 /home/k5ebrdc/public_html/wp-content/plugins/toolset-blocks/embedded/inc/wpv-archive-loop.php(1434): OTGS\Toolset\Views\Models\ContentTemplate\UsagePostType::createFromDatabaseArray()
#4 /home/k5ebrdc/public_html/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-content-template-embedded.class.php(233): WPV_WordPress_Archive_Frontend->get_archive_loops()
#5 /home/k5ebrdc/public_html/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-content-template-embedded.class.php(941): WPV_Content_Template_Embedded->get_assigned_single_post_types()
#6 /home/k5ebrdc/public_html/wp-content/plugins/toolset-blocks/embedded/inc/classes/wpv-post-object-wrapper.class.php(207): WPV_Content_Template_Embedded->_get_assigned_single_post_types()
#7 /home/k5ebrdc/public_html/wp-content/plugins/toolset-blocks/inc/ct-editor/ct-editor.php(499): WPV_Post_Object_Wrapper->__get()
#8 /home/k5ebrdc/public_html/wp-content/plugins/toolset-blocks/inc/ct-editor/ct-editor.php(336): wpv_ct_editor_page_edit()
#9 /home/k5ebrdc/public_html/wp-includes/class-wp-hook.php(324): wpv_ct_editor_page()
#10 /home/k5ebrdc/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#11 /home/k5ebrdc/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#12 /home/k5ebrdc/public_html/wp-admin/admin.php(259): do_action()
#13 {main}
thrown
Hello. Thank you for contacting the Toolset support.
As you can check with Toolset Server requirement, we are compatible with PHP 8.1.x or 8.2.x.
Can you please downgrade the PHP verstion to PHP 8.1.x and check if that help you to resolve the issue. We will add the PHP 8.3.x compatibility soon.
Weren't you the one asking me to try these PHP versions?
I changed it to PHP 8.1 and am still getting the same error.
It seems the same error that I described with your previous ticket.
Here is the reply:
- https://toolset.com/forums/topic/template-times-out/page/2/#post-2803316
WE do not encourage to work on live site so I suggest you should create a stating site that should be 1:1 copy of your live site and there I will try to make the changes and once you see it working you can move those changes to live site.
Please mark the next reply as private and I will create a copy and send you the link.
you can setup another stating site that should be 1:1 copy of your live site and there you should first eliminate all possible cache, third-party plugins, CDN, CRON and switch to default theme and make sure its a basic version of your site without cache, cron, etc..etc.. and then try to create duplicator copy and send it to me.
Please send duplicator copy link to download as well as access details to stating site.
I have set the next reply to private which means only you and I have access to it.
Can you please check now:
- hidden link
We have a progress and if you check the above link that is for that content template listing page is back to work.
The issue was there were malformed conditional added for the followinng content templates which I deleted it.
Content Template ID: 1152
- hidden link
Content Template ID: 2649
- hidden link
Content Template ID: 34565
- This is done with blocks and somehow it cant be edit using blocks, if you want you can edit using classic editor
To make this all working on your live site, please take full backup of database table "wp_options" first, then you will have to look for the option name "wpv_options" and replace the existing value with the following adjusted serialize array:
a:112:{s:30:"support_spaces_in_meta_filters";i:0;s:35:"allow_views_wp_widgets_in_elementor";i:1;s:19:"default_user_editor";s:5:"basic";s:18:"default_wpa_editor";s:5:"basic";s:32:"wpv_custom_conditional_functions";a:13:{i:0;s:13:"cc-form-field";i:1;s:8:"wpv-view";i:2;s:19:"woo_product_on_sale";i:3;s:20:"woo_product_in_stock";i:4;s:35:"wpv_woo_single_products_rating_func";i:5;s:28:"wpv_woo_list_attributes_func";i:6;s:24:"wpv_woo_show_upsell_func";i:7;s:39:"wpv_woo_products_rating_on_listing_func";i:8;s:27:"woo_has_product_subcategory";i:9;s:30:"woo_shop_display_is_categories";i:10;s:37:"wpv_woo_product_belongs_to_this_order";i:11;s:11:"wpv-post-id";i:12;s:16:"cc-emotion-color";}s:50:"views_template_conditions_for_kettlebell-exercises";a:0:{}s:27:"views_template_for_movement";i:99;s:38:"views_template_conditions_for_movement";a:0:{}s:25:"views_template_for_muscle";i:106;s:36:"views_template_conditions_for_muscle";a:0:{}s:38:"views_template_conditions_for_exercise";a:1:{i:0;a:5:{s:19:"content_template_id";i:1738;s:10:"conditions";a:3:{s:8:"operator";s:3:"AND";s:10:"conditions";a:1:{i:0;a:3:{s:13:"firstArgument";a:2:{s:6:"source";a:1:{s:5:"value";s:10:"post-field";}s:5:"value";a:3:{s:5:"label";s:10:"Post Title";s:5:"value";s:10:"post_title";s:4:"type";s:12:"native-field";}}s:8:"operator";a:2:{s:5:"label";s:1:"=";s:5:"value";s:2:"eq";}s:14:"secondArgument";a:2:{s:6:"source";a:1:{s:5:"value";s:16:"post-field-value";}s:5:"value";a:2:{s:5:"value";s:7:"fdgfgfg";s:5:"label";s:7:"fdgfgfg";}}}}s:8:"negative";b:0;}s:17:"parsed_conditions";s:36:" ( ( 'post_title' eq 'fdgfgfg' ) ) ";s:10:"updated_at";i:1668692833;s:8:"priority";i:0;}}s:48:"views_template_conditions_for_exercise-variation";a:0:{}s:18:"editing_experience";s:5:"mixed";s:35:"views_template_for_kettlebell-combo";i:476;s:46:"views_template_conditions_for_kettlebell-combo";a:0:{}s:29:"view_cpt_kettlebell-exercises";s:3:"482";s:25:"view_cpt_kettlebell-combo";i:478;s:27:"view_cpt_exercise-variation";i:44;s:32:"views_template_for_photo-gallery";i:1526;s:43:"views_template_conditions_for_photo-gallery";a:0:{}s:38:"views_template_conditions_for_progress";a:0:{}s:17:"view_cpt_progress";s:4:"1060";s:24:"views_template_for_video";i:1152;s:35:"views_template_conditions_for_video";a:0:{}s:33:"views_template_for_common-mistake";i:1277;s:44:"views_template_conditions_for_common-mistake";a:0:{}s:45:"views_template_conditions_for_exercise-object";a:0:{}s:14:"wpv_debug_mode";i:0;s:19:"wpv_debug_mode_type";s:4:"full";s:21:"view_cpt_obj-exercise";i:1426;s:42:"views_template_conditions_for_obj-exercise";a:0:{}s:25:"wpv_codemirror_autoresize";i:1;s:27:"views_template_for_exercise";i:1602;s:30:"views_template_for_my-progress";i:961;s:27:"views_template_for_bookmark";i:2099;s:38:"views_template_conditions_for_bookmark";a:0:{}s:33:"views_template_for_focus-exercise";i:2235;s:44:"views_template_conditions_for_focus-exercise";a:0:{}s:29:"views_template_for_my-ability";i:2486;s:40:"views_template_conditions_for_my-ability";a:0:{}s:25:"views_template_for_rating";i:2649;s:36:"views_template_conditions_for_rating";a:0:{}s:23:"views_template_for_note";i:2883;s:34:"views_template_conditions_for_note";a:0:{}s:27:"wpv_custom_inner_shortcodes";a:28:{i:0;s:15:"wpv-search-term";i:1;s:12:"cc-calculate";i:2;s:7:"cc-trim";i:3;s:17:"wpv-taxonomy-slug";i:4;s:14:"cc-return-view";i:5;s:14:"cc-trim-string";i:6;s:16:"count_post_terms";i:7;s:13:"cc-lower-case";i:8;s:16:"cc-calculate-age";i:9;s:20:"cc-convert-work-time";i:10;s:8:"wpv-user";i:11;s:24:"cc-get-member-by-user-id";i:12;s:25:"cc-random-flv-ad-pin-size";i:13;s:27:"cc-random-flv-ad-1080p-size";i:14;s:19:"cc-random-good-word";i:15;s:12:"cc-url-param";i:16;s:21:"cc-add-minute-to-date";i:17;s:13:"cc-form-field";i:18;s:16:"cc-verify-answer";i:19;s:9:"cc-divide";i:20;s:10:"cc-replace";i:21;s:26:"cc-customer-bought-product";i:22;s:26:"cc-clean-video-description";i:23;s:15:"cc-video-access";i:24;s:21:"cc-workouts-purchased";i:25;s:25:"cc-subscription-plan-name";i:26;s:24:"cc-get-subscription-info";i:27;s:16:"cc-emotion-color";}s:13:"view_cpt_note";i:2978;s:29:"views_template_for_evaluation";i:3443;s:40:"views_template_conditions_for_evaluation";a:0:{}s:30:"views_template_for_progression";i:3888;s:41:"views_template_conditions_for_progression";a:0:{}s:50:"views_template_conditions_for_exercise-progression";a:0:{}s:26:"views_template_for_session";i:6267;s:37:"views_template_conditions_for_session";a:0:{}s:50:"views_template_conditions_for_session-part-task-ex";a:0:{}s:47:"views_template_conditions_for_session-part-task";a:0:{}s:14:"view_cpt_joint";i:113;s:35:"views_template_conditions_for_joint";a:0:{}s:24:"views_template_for_joint";i:7747;s:36:"view_taxonomy_loop_movement-taxonomy";s:3:"168";s:17:"view_cpt_exercise";i:1003;s:23:"views_template_for_post";i:8462;s:34:"views_template_conditions_for_post";a:0:{}s:36:"view_taxonomy_loop_exercise-category";i:7768;s:31:"view_taxonomy_loop_muscle-group";i:265;s:15:"view_cpt_muscle";i:79;s:37:"views_template_conditions_for_scoring";a:1:{i:1;a:5:{s:19:"content_template_id";i:11652;s:10:"conditions";a:3:{s:8:"operator";s:3:"AND";s:10:"conditions";a:0:{}s:8:"negative";b:0;}s:17:"parsed_conditions";s:0:"";s:10:"updated_at";i:1673256148;s:8:"priority";s:1:"0";}}s:26:"views_template_for_scoring";i:11655;s:16:"view_cpt_scoring";i:11677;s:25:"views_template_for_course";i:12321;s:36:"views_template_conditions_for_course";a:0:{}s:25:"views_template_for_lesson";i:12337;s:36:"views_template_conditions_for_lesson";a:0:{}s:33:"views_template_for_course-content";i:12900;s:44:"views_template_conditions_for_course-content";a:0:{}s:14:"view_cpt_video";i:809;s:33:"view_taxonomy_loop_video-category";i:809;s:43:"view_taxonomy_loop_workout-body-part-target";s:5:"21601";s:39:"views_template_for_form-technique-issue";i:21975;s:50:"views_template_conditions_for_form-technique-issue";a:0:{}s:25:"views_template_for_member";i:22061;s:36:"views_template_conditions_for_member";a:0:{}s:46:"views_template_conditions_for_coaching-request";a:0:{}s:35:"views_template_for_coaching-request";i:24054;s:25:"view_cpt_coaching-request";i:24059;s:39:"views_template_for_form-tch-issue-resub";i:24719;s:50:"views_template_conditions_for_form-tch-issue-resub";a:0:{}s:26:"views_template_for_meet-up";i:27486;s:37:"views_template_conditions_for_meet-up";a:0:{}s:23:"views_template_for_exam";i:27835;s:34:"views_template_conditions_for_exam";a:0:{}s:33:"views_template_for_physical-issue";i:28739;s:44:"views_template_conditions_for_physical-issue";a:0:{}s:37:"views_template_conditions_for_product";a:0:{}s:26:"views_template_for_product";i:30720;s:23:"views_template_for_book";i:30789;s:34:"views_template_conditions_for_book";a:0:{}s:16:"view_search-page";i:3893;s:23:"view_cpt_common-mistake";i:1730;s:24:"views_template_for_tribe";i:34398;s:35:"views_template_conditions_for_tribe";a:0:{}s:37:"views_template_for_tribe-join-request";i:34477;s:48:"views_template_conditions_for_tribe-join-request";a:0:{}s:32:"views_template_for_tribe-content";i:34565;s:43:"views_template_conditions_for_tribe-content";a:0:{}s:37:"views_template_conditions_for_routine";a:0:{}s:26:"views_template_for_routine";i:34791;s:48:"views_template_conditions_for_progressi-sequence";a:0:{}s:37:"views_template_for_progressi-sequence";i:34967;s:16:"view_cpt_session";i:6341;s:34:"view_taxonomy_loop_workout-benefit";s:5:"35020";s:27:"views_template_for_work-out";i:35077;s:38:"views_template_conditions_for_work-out";a:0:{}}
So the first issue is solved:
1) hidden link
None of the templates show
You can see the same error on Staging hidden link
Can’t create a new template hidden link and most plugins are disabled.
===>
You can see content templates listing page and even you can create a new content template.
*** Please make a FULL BACKUP of your database and website.***
So the update SQL will be:
UPDATE `wp_options` SET `option_value` = 'a:113:{s:30:\"support_spaces_in_meta_filters\";i:0;s:35:\"allow_views_wp_widgets_in_elementor\";i:1;s:19:\"default_user_editor\";s:5:\"basic\";s:18:\"default_wpa_editor\";s:5:\"basic\";s:32:\"wpv_custom_conditional_functions\";a:13:{i:0;s:13:\"cc-form-field\";i:1;s:8:\"wpv-view\";i:2;s:19:\"woo_product_on_sale\";i:3;s:20:\"woo_product_in_stock\";i:4;s:35:\"wpv_woo_single_products_rating_func\";i:5;s:28:\"wpv_woo_list_attributes_func\";i:6;s:24:\"wpv_woo_show_upsell_func\";i:7;s:39:\"wpv_woo_products_rating_on_listing_func\";i:8;s:27:\"woo_has_product_subcategory\";i:9;s:30:\"woo_shop_display_is_categories\";i:10;s:37:\"wpv_woo_product_belongs_to_this_order\";i:11;s:11:\"wpv-post-id\";i:12;s:16:\"cc-emotion-color\";}s:50:\"views_template_conditions_for_kettlebell-exercises\";a:0:{}s:27:\"views_template_for_movement\";i:99;s:38:\"views_template_conditions_for_movement\";a:0:{}s:25:\"views_template_for_muscle\";i:106;s:36:\"views_template_conditions_for_muscle\";a:0:{}s:38:\"views_template_conditions_for_exercise\";a:1:{i:0;a:5:{s:19:\"content_template_id\";i:1738;s:10:\"conditions\";a:3:{s:8:\"operator\";s:3:\"AND\";s:10:\"conditions\";a:1:{i:0;a:3:{s:13:\"firstArgument\";a:2:{s:6:\"source\";a:1:{s:5:\"value\";s:10:\"post-field\";}s:5:\"value\";a:3:{s:5:\"label\";s:10:\"Post Title\";s:5:\"value\";s:10:\"post_title\";s:4:\"type\";s:12:\"native-field\";}}s:8:\"operator\";a:2:{s:5:\"label\";s:1:\"=\";s:5:\"value\";s:2:\"eq\";}s:14:\"secondArgument\";a:2:{s:6:\"source\";a:1:{s:5:\"value\";s:16:\"post-field-value\";}s:5:\"value\";a:2:{s:5:\"value\";s:7:\"fdgfgfg\";s:5:\"label\";s:7:\"fdgfgfg\";}}}}s:8:\"negative\";b:0;}s:17:\"parsed_conditions\";s:36:\" ( ( \'post_title\' eq \'fdgfgfg\' ) ) \";s:10:\"updated_at\";i:1668692833;s:8:\"priority\";i:0;}}s:48:\"views_template_conditions_for_exercise-variation\";a:0:{}s:18:\"editing_experience\";s:5:\"mixed\";s:35:\"views_template_for_kettlebell-combo\";i:476;s:46:\"views_template_conditions_for_kettlebell-combo\";a:0:{}s:29:\"view_cpt_kettlebell-exercises\";s:3:\"482\";s:25:\"view_cpt_kettlebell-combo\";i:478;s:27:\"view_cpt_exercise-variation\";i:44;s:32:\"views_template_for_photo-gallery\";i:1526;s:43:\"views_template_conditions_for_photo-gallery\";a:0:{}s:38:\"views_template_conditions_for_progress\";a:0:{}s:17:\"view_cpt_progress\";s:4:\"1060\";s:24:\"views_template_for_video\";i:1152;s:35:\"views_template_conditions_for_video\";a:0:{}s:33:\"views_template_for_common-mistake\";i:1277;s:44:\"views_template_conditions_for_common-mistake\";a:0:{}s:45:\"views_template_conditions_for_exercise-object\";a:0:{}s:14:\"wpv_debug_mode\";i:0;s:19:\"wpv_debug_mode_type\";s:4:\"full\";s:21:\"view_cpt_obj-exercise\";i:1426;s:42:\"views_template_conditions_for_obj-exercise\";a:0:{}s:25:\"wpv_codemirror_autoresize\";i:1;s:27:\"views_template_for_exercise\";i:1602;s:30:\"views_template_for_my-progress\";i:961;s:27:\"views_template_for_bookmark\";i:2099;s:38:\"views_template_conditions_for_bookmark\";a:0:{}s:33:\"views_template_for_focus-exercise\";i:2235;s:44:\"views_template_conditions_for_focus-exercise\";a:0:{}s:29:\"views_template_for_my-ability\";i:2486;s:40:\"views_template_conditions_for_my-ability\";a:0:{}s:25:\"views_template_for_rating\";i:2649;s:36:\"views_template_conditions_for_rating\";a:0:{}s:23:\"views_template_for_note\";i:2883;s:34:\"views_template_conditions_for_note\";a:0:{}s:27:\"wpv_custom_inner_shortcodes\";a:28:{i:0;s:15:\"wpv-search-term\";i:1;s:12:\"cc-calculate\";i:2;s:7:\"cc-trim\";i:3;s:17:\"wpv-taxonomy-slug\";i:4;s:14:\"cc-return-view\";i:5;s:14:\"cc-trim-string\";i:6;s:16:\"count_post_terms\";i:7;s:13:\"cc-lower-case\";i:8;s:16:\"cc-calculate-age\";i:9;s:20:\"cc-convert-work-time\";i:10;s:8:\"wpv-user\";i:11;s:24:\"cc-get-member-by-user-id\";i:12;s:25:\"cc-random-flv-ad-pin-size\";i:13;s:27:\"cc-random-flv-ad-1080p-size\";i:14;s:19:\"cc-random-good-word\";i:15;s:12:\"cc-url-param\";i:16;s:21:\"cc-add-minute-to-date\";i:17;s:13:\"cc-form-field\";i:18;s:16:\"cc-verify-answer\";i:19;s:9:\"cc-divide\";i:20;s:10:\"cc-replace\";i:21;s:26:\"cc-customer-bought-product\";i:22;s:26:\"cc-clean-video-description\";i:23;s:15:\"cc-video-access\";i:24;s:21:\"cc-workouts-purchased\";i:25;s:25:\"cc-subscription-plan-name\";i:26;s:24:\"cc-get-subscription-info\";i:27;s:16:\"cc-emotion-color\";}s:13:\"view_cpt_note\";i:2978;s:29:\"views_template_for_evaluation\";i:3443;s:40:\"views_template_conditions_for_evaluation\";a:0:{}s:30:\"views_template_for_progression\";i:3888;s:41:\"views_template_conditions_for_progression\";a:0:{}s:50:\"views_template_conditions_for_exercise-progression\";a:0:{}s:26:\"views_template_for_session\";i:6267;s:37:\"views_template_conditions_for_session\";a:0:{}s:50:\"views_template_conditions_for_session-part-task-ex\";a:0:{}s:47:\"views_template_conditions_for_session-part-task\";a:0:{}s:14:\"view_cpt_joint\";i:113;s:35:\"views_template_conditions_for_joint\";a:0:{}s:24:\"views_template_for_joint\";i:7747;s:36:\"view_taxonomy_loop_movement-taxonomy\";s:3:\"168\";s:17:\"view_cpt_exercise\";i:1003;s:23:\"views_template_for_post\";i:8462;s:34:\"views_template_conditions_for_post\";a:0:{}s:36:\"view_taxonomy_loop_exercise-category\";i:7768;s:31:\"view_taxonomy_loop_muscle-group\";i:265;s:15:\"view_cpt_muscle\";i:79;s:37:\"views_template_conditions_for_scoring\";a:1:{i:1;a:5:{s:19:\"content_template_id\";i:11652;s:10:\"conditions\";a:3:{s:8:\"operator\";s:3:\"AND\";s:10:\"conditions\";a:0:{}s:8:\"negative\";b:0;}s:17:\"parsed_conditions\";s:0:\"\";s:10:\"updated_at\";i:1673256148;s:8:\"priority\";s:1:\"0\";}}s:26:\"views_template_for_scoring\";i:11655;s:16:\"view_cpt_scoring\";i:11677;s:25:\"views_template_for_course\";i:12321;s:36:\"views_template_conditions_for_course\";a:0:{}s:25:\"views_template_for_lesson\";i:12337;s:36:\"views_template_conditions_for_lesson\";a:0:{}s:33:\"views_template_for_course-content\";i:12900;s:44:\"views_template_conditions_for_course-content\";a:0:{}s:14:\"view_cpt_video\";i:809;s:33:\"view_taxonomy_loop_video-category\";i:809;s:43:\"view_taxonomy_loop_workout-body-part-target\";s:5:\"21601\";s:39:\"views_template_for_form-technique-issue\";i:21975;s:50:\"views_template_conditions_for_form-technique-issue\";a:0:{}s:25:\"views_template_for_member\";i:22061;s:36:\"views_template_conditions_for_member\";a:0:{}s:46:\"views_template_conditions_for_coaching-request\";a:0:{}s:35:\"views_template_for_coaching-request\";i:24054;s:25:\"view_cpt_coaching-request\";i:24059;s:39:\"views_template_for_form-tch-issue-resub\";i:24719;s:50:\"views_template_conditions_for_form-tch-issue-resub\";a:0:{}s:26:\"views_template_for_meet-up\";i:27486;s:37:\"views_template_conditions_for_meet-up\";a:0:{}s:23:\"views_template_for_exam\";i:27835;s:34:\"views_template_conditions_for_exam\";a:0:{}s:33:\"views_template_for_physical-issue\";i:28739;s:44:\"views_template_conditions_for_physical-issue\";a:0:{}s:37:\"views_template_conditions_for_product\";a:0:{}s:26:\"views_template_for_product\";i:30720;s:23:\"views_template_for_book\";i:30789;s:34:\"views_template_conditions_for_book\";a:0:{}s:16:\"view_search-page\";i:3893;s:23:\"view_cpt_common-mistake\";i:1730;s:24:\"views_template_for_tribe\";i:34398;s:35:\"views_template_conditions_for_tribe\";a:0:{}s:37:\"views_template_for_tribe-join-request\";i:34477;s:48:\"views_template_conditions_for_tribe-join-request\";a:0:{}s:32:\"views_template_for_tribe-content\";i:35089;s:43:\"views_template_conditions_for_tribe-content\";a:0:{}s:37:\"views_template_conditions_for_routine\";a:0:{}s:26:\"views_template_for_routine\";i:34791;s:48:\"views_template_conditions_for_progressi-sequence\";a:0:{}s:37:\"views_template_for_progressi-sequence\";i:34967;s:16:\"view_cpt_session\";i:6341;s:34:\"view_taxonomy_loop_workout-benefit\";s:5:\"35020\";s:27:\"views_template_for_work-out\";i:35077;s:38:\"views_template_conditions_for_work-out\";a:0:{}s:42:\"views_template_conditions_for_routine-item\";a:0:{}}' WHERE `wp_options`.`option_id` = 156;
I've tried to manually update the db via the PHPMyAdmin interface but it would not work (just hung).
I tried to run the SQL you gave, but it gave this error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''a:113:{s:30:\"support_spaces_in_meta_filters\")' at line 1
I'm not sure why its not working for you.
Where you tried, on staging site or on live site? if its on live site - did you take full backup? if yes:
Please share admin access details and let me try to update that option on behalf of you.
I have set the next reply to private which means only you and I have access to it.
I have sent it to support, and they ran the query via CLI; it worked. Issue 1 on the list is fixed. The templates list is showing.
2) "The editor has encountered an unexpected error."
hidden link
===>
On staging site I make it working.
- hidden link
Again the issue was the above page with ID "24923" having Toolset forms block added to it and I've removed the Toolset Froms block and replace with shortcode's block and I can see it working.
Here is the SQL statement:
UPDATE `wp_posts` SET `post_content` = '<!-- wp:toolset-blocks/conditional {\"conditions\":{\"operator\":\"AND\",\"conditions\":[{\"firstArgument\":{\"source\":{\"label\":\"Custom Shortcode\",\"value\":\"custom_shortcode\"},\"value\":{\"value\":\"cc-get-member-by-user-id\",\"label\":\"cc-get-member-by-user-id\"},\"extra\":\"\"},\"operator\":{\"label\":\"=\",\"value\":\"eq\"},\"secondArgument\":{\"source\":{\"label\":\"Static value\",\"value\":\"value\"},\"value\":\"\",\"extra\":\"\"}}],\"negative\":false},\"parsedConditions\":\" ( ( \'[cc-get-member-by-user-id ]\' eq \'0\' ) ) \"} -->\r\n[wpv-conditional if=\" ( ( \'[cc-get-member-by-user-id ]\' eq \'0\' ) ) \" ]<!-- wp:paragraph -->\r\n<p>There is no profile! Please visit <a href=\"/members/my-area/\">My Area</a> to create your basic profile and then return here to add more details.</p><!-- /wp:paragraph -->[/wpv-conditional]\r\n<!-- /wp:toolset-blocks/conditional --><!-- wp:toolset-blocks/conditional {\"conditions\":{\"operator\":\"AND\",\"conditions\":[{\"firstArgument\":{\"source\":{\"label\":\"Custom Shortcode\",\"value\":\"custom_shortcode\"},\"value\":{\"value\":\"cc-get-member-by-user-id\",\"label\":\"cc-get-member-by-user-id\"},\"extra\":\"\"},\"operator\":{\"label\":\"!=\",\"value\":\"ne\"},\"secondArgument\":{\"source\":{\"label\":\"Static value\",\"value\":\"value\"},\"value\":\"0\",\"extra\":\"\"}}],\"negative\":false},\"parsedConditions\":\" ( ( \'[cc-get-member-by-user-id ]\' ne \'0\' ) ) \"} -->\r\n[wpv-conditional if=\" ( ( \'[cc-get-member-by-user-id ]\' ne \'0\' ) ) \" ]<!-- wp:paragraph -->\r\n<p><a href=\"#edit_form\">Edit your member profile</a>, <a href=\"#visibility\">profile visibility</a>, <a href=\"#collection\">kettlebell collection</a>, <a href=\"#social\">social media</a>, or <a href=\"#edit_nickname\" data-type=\"internal\" data-id=\"#edit_nickname\">nickname</a> below.</p>\r\n<!-- /wp:paragraph --><!-- wp:spacer {\"height\":\"20px\"} -->\r\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\r\n<!-- /wp:spacer --><!-- wp:toolset-blocks/container {\"style\":{\"margin\":{\"enabled\":true,\"marginTop\":\"10px\",\"marginBottom\":\"10px\"},\"padding\":{\"enabled\":true,\"paddingTop\":\"10px\",\"paddingLeft\":\"15px\",\"paddingRight\":\"15px\",\"paddingBottom\":\"10px\"},\"border\":{\"top\":{\"style\":\"solid\",\"width\":1,\"widthUnit\":\"px\",\"color\":{\"hex\":\"#000000\",\"rgb\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1}}},\"right\":{\"style\":\"solid\",\"width\":1,\"widthUnit\":\"px\",\"color\":{\"hex\":\"#000000\",\"rgb\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1}}},\"bottom\":{\"style\":\"solid\",\"width\":1,\"widthUnit\":\"px\",\"color\":{\"hex\":\"#000000\",\"rgb\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1}}},\"left\":{\"style\":\"solid\",\"width\":1,\"widthUnit\":\"px\",\"color\":{\"hex\":\"#000000\",\"rgb\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1}}}},\"borderRadius\":{\"topLeft\":15,\"topRight\":15,\"bottomLeft\":15,\"bottomRight\":15},\"display\":true},\"link\":{\"enabled\":false,\"url\":\"<em><u>hidden link</u></em>\"}} -->\r\n<div class=\"wp-block-toolset-blocks-container tb-container\" data-toolset-blocks-container=\"1\"><!-- wp:paragraph -->\r\n<p><i style=\"color: green;\" class=\"bi bi-person-circle\"></i> <a href=\"/account/\">Edit account details like username, and membership</a>.</p>\r\n<!-- /wp:paragraph --></div>\r\n<!-- /wp:toolset-blocks/container --><!-- wp:spacer {\"height\":\"20px\"} -->\r\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\r\n<!-- /wp:spacer --><!-- wp:toolset-blocks/container {\"style\":{\"margin\":{\"enabled\":true,\"marginTop\":\"10px\",\"marginBottom\":\"10px\"},\"padding\":{\"enabled\":true,\"paddingTop\":\"10px\",\"paddingLeft\":\"15px\",\"paddingRight\":\"15px\",\"paddingBottom\":\"10px\"},\"border\":{\"top\":{\"style\":\"solid\",\"width\":1,\"widthUnit\":\"px\",\"color\":{\"hex\":\"#000000\",\"rgb\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1}}},\"right\":{\"style\":\"solid\",\"width\":1,\"widthUnit\":\"px\",\"color\":{\"hex\":\"#000000\",\"rgb\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1}}},\"bottom\":{\"style\":\"solid\",\"width\":1,\"widthUnit\":\"px\",\"color\":{\"hex\":\"#000000\",\"rgb\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1}}},\"left\":{\"style\":\"solid\",\"width\":1,\"widthUnit\":\"px\",\"color\":{\"hex\":\"#000000\",\"rgb\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1}}}},\"borderRadius\":{\"topLeft\":15,\"topRight\":15,\"bottomLeft\":15,\"bottomRight\":15},\"display\":true},\"link\":{\"enabled\":false,\"url\":\"/members/my-tools/my-details/\"}} -->\r\n<div class=\"wp-block-toolset-blocks-container tb-container\" data-toolset-blocks-container=\"1\"><!-- wp:paragraph -->\r\n<p><i style=\"color: blue;\" class=\"bi bi-person-bounding-box\"></i> <a href=\"/members/my-tools/my-details/\">Edit personal details like age, height, weight, etcetera</a>.</p>\r\n<!-- /wp:paragraph --></div>\r\n<!-- /wp:toolset-blocks/container --><!-- wp:spacer {\"height\":\"40px\"} -->\r\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\r\n<!-- /wp:spacer --><!-- wp:spacer {\"height\":\"40px\"} -->\r\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\r\n<!-- /wp:spacer --><!-- wp:paragraph -->\r\n<p>If you choose to make your profile <strong>public</strong> then the following information will be visible to others:</p>\r\n<!-- /wp:paragraph --><!-- wp:list -->\r\n<ul class=\"wp-block-list\"><!-- wp:list-item -->\r\n<li>Workouts that you completed</li>\r\n<!-- /wp:list-item --><!-- wp:list-item -->\r\n<li>Exercises that you\'ve mastered</li>\r\n<!-- /wp:list-item --><!-- wp:list-item -->\r\n<li>Badges that you\'ve earned</li>\r\n<!-- /wp:list-item --><!-- wp:list-item -->\r\n<li>Your full name or nickname</li>\r\n<!-- /wp:list-item --></ul>\r\n<!-- /wp:list --><!-- wp:paragraph -->\r\n<p>A public profile is great for interaction and showing off the badges you earned and the skills you learned.</p>\r\n<!-- /wp:paragraph --><!-- wp:paragraph -->\r\n<p>Things that will <strong>not</strong> be visible to the public:</p>\r\n<!-- /wp:paragraph --><!-- wp:list -->\r\n<ul class=\"wp-block-list\"><!-- wp:list-item -->\r\n<li>Contact details</li>\r\n<!-- /wp:list-item --><!-- wp:list-item -->\r\n<li>Address</li>\r\n<!-- /wp:list-item --><!-- wp:list-item -->\r\n<li>Your name (if you choose to use a nickname)</li>\r\n<!-- /wp:list-item --></ul>\r\n<!-- /wp:list --><!-- wp:shortcode -->\r\n[wpv-view name=\"display-edit-member-form-public\" memberid=\"[cc-get-member-by-user-id]\"]\r\n<!-- /wp:shortcode --><!-- wp:separator -->\r\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"/>\r\n<!-- /wp:separator --><!-- wp:spacer {\"height\":\"80px\"} -->\r\n<div style=\"height:80px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\r\n<!-- /wp:spacer --><!-- wp:heading -->\r\n<h2 class=\"wp-block-heading\" id=\"collection\">Your Kettlebell Collection</h2>\r\n<!-- /wp:heading --><!-- wp:toolset-views/view-editor {\"reduxStoreId\":\"views-editor-1743511937643\",\"loading\":true,\"viewId\":26984,\"viewSlug\":\"get-member-kettlebell-collection\",\"wizardDone\":true,\"view\":{\"ID\":\"26984\",\"post_title\":\"Get Member Kettlebell Collection\",\"post_name\":\"get-member-kettlebell-collection\"},\"viewName\":\"Get Member Kettlebell Collection\"} -->\r\n<div class=\"wp-block-toolset-views-view-editor wpv-gutenberg-view-wrapper-26984\">[wpv-view name=\"get-member-kettlebell-collection\"]</div>\r\n<!-- /wp:toolset-views/view-editor --><!-- wp:shortcode -->\r\n[cred-form form=\"member-profile-kettlebell-group\" ]<!-- /wp:shortcode --><!-- wp:separator -->\r\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"/>\r\n<!-- /wp:separator --><!-- wp:spacer {\"height\":\"80px\"} -->\r\n<div style=\"height:80px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\r\n<!-- /wp:spacer --><!-- wp:shortcode -->\r\n[cred_user_form form=\"update-nickname\"]\r\n<!-- /wp:shortcode -->[/wpv-conditional]\r\n<!-- /wp:toolset-blocks/conditional -->' WHERE `ID` = '24923';
I'm not sure why forms block is not working on your install, That's mystery. I do not see any other user or even on clean installation. But happy that we found workaround that should work without any issues.
Issue 2)
I got support to run the query. It fixed it.
Now, for all the others that give the same error, how do we go about that? Is there a generic replace query we can run or will we have to go through all of them individually?
New threads created by Minesh and linked to this one are listed below:
I'm splitting this ticket for the third point and will follow up with the following split ticket:
- https://toolset.com/forums/topic/split-creating-a-new-template-there-has-been-a-critical-error-on-this-website-third-issue/
3) “Block contains unexpected or invalid content”
hidden link
hidden link
hidden link
As per our support policy we entertain only one question per ticket. This will help other users searching on the forum as well as help us to write correct problem resolution summery for the original issue reported.
You're welcome to mark resolve this ticket.