Skip Navigation

[Resolved] Template times out

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 0 reply, has 1 voice.

Last updated by tacoF 3 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2802015

I tried several times with the plugin, but it's not working. There is a backup from updraft right here hidden link

#2802278

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

The content template times out is seems to have statis images added using image block and those images are not available anymore and its trying to load those images, it seems the issue is that.

But to confirm I need latest copy of your site and you can create ALL in One WP Migration package from your production site and send me the link to download it.

#2802319

Hi, the corruption happens after saving and not doing anything else.

As for the copy of the site, I sent you a direct link to a backup with a plugin that works. I tried the other one, it did not work. Can you use that, it's as simple as downloading those files.

Sometimes it happens after adding the block editor which should be proper code.

#2802322

Here is the Updraft copy hidden link
It's a free plugin that works, the one you pointed me to did not work on my site.

#2802484

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I tried but that is not working for me.

I need your 1:1 site copy and for that I need either ALL in one WP migration or duplicator package.

Can you please login to your live site and take full backup from your live site restore that full backup on your staging site and then I will try to install the duplicator or ALL in one WP migration and check if I'm able to build the package.

Once you restore the live site backup please let me know and share access details.

I have set the next reply to private which means only you and I have access to it.

#2802608

Have you been able to download the files? I need to free up space.

#2802619

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes - I've downloaded the files but plesae dont delete the backup. I need to check if the downloaded files are working without issues. Please hold on and I will get in touch with you by tomorrow with update on it.

#2802795

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I checked and installed the duplicator package you shared but this is not the duplicator I want.

I duplicator package from your live/production site as the current one you shared is missing many information and content template ID 1526 is not having the same content.

Can you please send me duplicator package of your live/production site and that I will install on my local machine and start investigation.

Also, I noticed that you are running your site on PHP 7.x.x. Can you please update PHP version to 8.0.x. or PHP 8.1.x or PHP 8.2.x and see if you able to notice any difference.

I have set the next reply to private which means only you and I have access to it.

#2802840

I have changed it to PHP 8

I have uploaded the Live clone to hidden link

I currently have 3 issues:

1) Templates timing out (being inaccessible)
2) Templates corrupting
3) Templates erroring (being inaccessible)

I literally can't do anything to the site at the moment.

#2802879

Going to PHP 8
The difference with the template that times out is that it now throws a message "There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.

Learn more about troubleshooting WordPress."

And in my email, I get this which looks very much like the first error I send from the error log:

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(1436): 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}

#2803297

Hi, any website you install locally should be blocked from accessing the outside world. It appears I got an email from my website copy, which means clients may too, and other actions may run as well, like Stripe subscriptions. Can you please completely block any outgoing traffic access to the site? Thanks

#2803316

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - I installed your site copy on my local server and I found following.

Even with PHP 8.x.x I was not able to load the content template listing page and it was throwing errors.

I found that the error is due to you have setup conditoinal content templates and somehow the conditions you setup for the content templatese are broken and those are having errors.

To fix that I've to check the wp_options table and then I've searched for option name "wpv_options" and I've adjusted the option value as given under and removed the conditions for such templates.

a:109:{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:16:"view_cpt_session";i:6341;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;}

Then I'm able to at least load the Toolset => Content Templates (content tmeplate listing) page successfully.

Regarding the content template you trying to edit the ID of content template is 1526 but I see you added gallery with static images and those static images are not available with your setup so the content template keeps looping.

However still I'm not able to edit content template ID 1526 using the block editor, it throws other challenges as your site is having many things involved like cache, CDN, CRON third-party plugins, child theme.

I see with the content template ID 1526 - it has many conditional blocks added and those are somehow broken and I see you are checking for the post body is not empty and you should not use that and there is not easy way to convert conditional block generated markup.

So, I suggest the only way is you will have to create the content template 1526 from scratch that will help you to save the time. I can offer you the luxury to edit the content template in legacy editor but again if you try to switch to the block editor it will cause errors. So I strongly suggest you should create the new template instead using the current one.

#2803342
Untitled-2.jpg

Just a quick reply.

----
I found that the error is due to you have setup conditoinal content templates and somehow the conditions you setup for the content templatese are broken and those are having errors.
----

This is all due to the blocks, it's not something I do wrong. Using the conditional blocks corrupts over time. I've never reported it but it's been like that for over a year. I add a conditional block, it works fine, I change nothing, and then one day it will say, this statement is incomplete, but as long as I don't edit it, it will remain working.

Just to be clear, out of all the issues raised, the only solution so far is to recreate template 1526?

There is so much more going on than just that template. I literally can't do anything right now, can't even see my templates as I get this (see screenshot).

As for caching, the WP ADMIN is not cached; I confirmed this with the host many times.

This issue is getting quite extreme and slowly corrupting my whole website and years of work.

#2803357

"To fix that I've to check the wp_options table and then I've searched for option name "wpv_options" and I've adjusted the option value as given under and removed the conditions for such templates." did you do this on LIVE or staging, if on the latter, do you have an SQL statement for me to run on LIVE?

#2803359

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I understand your situation but there is no alternate solution I have to offer. As I shared with your another ticket, please downgrade the PHP version to 8.1.x (recomonded) or 8.2.x.

I've done the changes on my local copy but again, once I do that, you will have to verify the content templates where you setup conditoinal content templtates.

For instance, your content template was having static images with gallery and those images were not present and hense its keep loading and loading and content tempalte times out.

Also, I see you were checking the post content with conditional block and that is not we suggest, you should use the custom shortcode to get the post content and then use the custom shortcode with conditional to check if its empty or not.

If you agree I will guide you with the best practice if you still want to stick using blocks mode to build the content template.

Alternatively, I suggest the new content template you build using legacy version.

Maybe you can give last try to build content template using blocks and let me know where exactly it brakes and if that does not work (we will try to identify the cause and if found I will escalate it), otherwise, I strongly suggest to move the legacy version.

Also, I do not find a way to reproduce the problem, if you want I can share a brand new sandbox site where you can create content templates with conditions and check if that works as expected or you able to reproduce the issue.

Here is a brand new sandbox site that you can use and auto-login to it using the following link and the sandbox site is using PHP version 8.1.2:
- hidden link

Another step would be, 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.