Skip Navigation

[Resolved] WooCommerce blocks template not set to none

This thread is resolved. Here is a description of the problem and solution.

Problem:

After the most recent update for "WooCommerce blocks" my product pages are set to a different page template.

By default the Content Template is now set to "Template Dynamically Assigned by Toolset" instead of "None", which it was previously and which I need.

Solution:

Please check these:
Dashboard-> Toolset-> Content Templates, find if there is any content template is used on Single "Product" post.

If there is, it will conduct the problem you mentioned above.

If you don't need that content template, you can remove it, then test again

Relevant Documentation:

This support ticket is created 3 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 16 replies, has 2 voices.

Last updated by jelle-jacobd 3 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#2080107

Hi,

After the most recent update for "WooCommerce blocks" my product pages are set to a different page template. By default the Content Template is now set to "Template Dynamically Assigned by Toolset" instead of "None", which it was previously and which I need. I used a bulk editor to revert this setting for al of my products back to none, so everything is fine now.

I tried to change the global setting, but is seems like this setting is no longer there, correct?

Are you aware of this issue and why is this changed?

Thanks!

Br, Jelle

#2080137

Hello,

Please check these:
Dashboard-> Toolset-> Content Templates, find if there is any content template is used on Single "Product" post.
If there is, it will conduct the problem you mentioned above.
If you don't need that content template, you can remove it, then test again

#2080145
Schermafbeelding 2021-06-08 om 10.19.26.png

Hi Luo,

Thanks. I checked and there's no template available for the single product page. There's an error displayed. What should I do?

Br, Jelle

#2080155

After checking the settings I got this e-mail with this message:

Error Details
=============
An error of type E_ERROR was caused in line 103 of the file /var/www/vhosts/karizmaluce.com/httpdocs/wp-content/plugins/wp-views/embedded/inc/classes/wpv-content-template-embedded.class.php. Error message: Uncaught InvalidArgumentException: Invalid Content Template ID in /var/www/vhosts/karizmaluce.com/httpdocs/wp-content/plugins/wp-views/embedded/inc/classes/wpv-content-template-embedded.class.php:103
Stack trace:
#0 /var/www/vhosts/karizmaluce.com/httpdocs/wp-content/plugins/wp-views/embedded/inc/classes/wpv-post-object-wrapper.class.php(641): WPV_Content_Template_Embedded->post()
#1 /var/www/vhosts/karizmaluce.com/httpdocs/wp-content/plugins/wp-views/embedded/inc/classes/wpv-post-object-wrapper.class.php(207): WPV_Post_Object_Wrapper->_get_title()
#2 /var/www/vhosts/karizmaluce.com/httpdocs/wp-content/plugins/wp-views/inc/redesign/wpv-content-templates-listing-page.php(1030): WPV_Post_Object_Wrapper->__get('title')
#3 /var/www/vhosts/karizmaluce.com/httpdocs/wp-content/plugins/wp-views/inc/redesign/wpv-content-templates-listing-page.php(763): wpv_admin_menu_content_template_listing_by_type_row('usage-single')
#4 /var/www/vhosts/karizmaluce.com/httpdocs/wp-content/plugins/wp-views/inc/redesign/wpv-content-tem

#2080157

The problem you mentioned above is abnormal, please provide your website database dump file in below private message box, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#2080169

Hi Luo,

Seems like I don't have access to the secure form?

Br, Jelle

#2080173

Private message box enabled, thanks

#2082191

The file you provided above is about 19G size, it does not seem to be a database dump file, I assume you have already checked the compatibility issues, you can follow the duplicator plugin document to make the database only package:
hidden link
then update here

#2084145
CT.JPG

Thanks for the details, I can install the database dump file in my localhost, please try these:
1) Dashboard-> Toolset-> Content Templates
Create a new content template, for example "my-ct", assign it to single product post, and save
2) Edit above content template again, unbind(uncheck) it to single product post, and save

It should be able to reset the content template settings, and works fine in my localhost, see my screenshot ct.JPG

#2084353
Schermafbeelding 2021-06-11 om 10.16.27.png

My pleasure!

Thanks, but when I create a new content template and assign it to the single product post I get an error stating there already a template assigned to the single product post which isn't the case. What should I do?

Br, Jelle

#2084385

You can ignore that message "there already a template assigned to the single product post", save the empty content template, then uncheck it, save the content template again, since we are going to reset the settings.

#2084389

Thanks, but I can save the template because of this error?

#2084391

Here are detail steps:
Dashboard-> Toolset-> Content Templates, click "Add new" button, create a new empty content template, in section "Usage", enable option for single "Product" post

#2084557
Schermafbeelding 2021-06-11 om 14.15.47.png

Hi,

I already took these steps, but when I create a template I get this (screenshot).

#2086927

It works fine in my localhost with your database dump file + fresh WP installation + the latest version of Toolset plugins, please check these:
1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/
2) In case it is a compatibility problem, please deactivate all other plugins, and switch to WordPress default theme 2021, deactivate all custom PHP/JS code snippets, and test again

If the problem still persists, please provide a test site with the same problem, I can setup a demo for you