Home › Toolset Professional Support › [Resolved] When I try to edit a Toolset view, it breaks my site's single post temple
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 10 replies, has 2 voices.
Last updated by Minesh 1 year, 6 months ago.
Assisted by: Minesh.
Tell us what you are trying to do?
I am trying to edit a Toolset view, using the block editor. My Toolset plugins are all up to date.
Is there any documentation that you are following?
It should be pretty straightforward to edit the view and save.
Is there a similar example that we can see?
I have reset my site to a previous day because I can't afford to have it broken.
What is the link to your site?
hidden link
Hello. Thank you for contacting the Toolset support.
Can you please first follow the basic debug steps.
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference? If no:
If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DISABLE_FATAL_ERROR_HANDLER',true);
That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor. Try visiting the same pages where you observe the problem and then share the debug log with us. You can upload the debug log file to any file sharing service and share the link to access debug log.
More info:
- https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging
In addition to that - Could you please send me debug information that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/
Thanks for your help.
I added the debugging code and reproduced the problem.
When I tried to edit the Toolset view in the block editor, it broke my single post template. Throughout the site, the single post template returns the same view that I edited, rather than the full post.
I am uploading the log at the link your provided.
Currently, I have again reset my site so that it's not broken.
thanks, Noah
Here is the log:
[2024-06-30T19:14:53+00:00] WPHB API: Sending request to hidden link
[2024-06-30T19:14:53+00:00] WPHB API: Arguments:
[2024-06-30T19:14:53+00:00] Array
(
[headers] => Array
(
[content-type] => application/json
)
[sslverify] =>
[method] => POST
[timeout] => 15
)
[2024-06-30T19:14:54+00:00] WPHB API: Response:
[2024-06-30T19:14:54+00:00] Array
(
[headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[content-type] => application/json
[content-length] => 48578
[date] => Sun, 30 Jun 2024 19:14:54 GMT
[x-amzn-requestid] => d99e5f1b-f508-4bd9-85ce-0d3ad4f7d12d
[x-amz-apigw-id] => aMg7PGv1oAMEssQ=
[x-amzn-trace-id] => Root=1-6681aeae-51b6e0dd7458f1e25b1ee621;Parent=1de2d79b092a5761;Sampled=0;lineage=b4bfbbeb:0
There is no such information available that point out to any error.
Can you please share problem URL and admin access details that should help me to see the issue.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Well - we do no recommond to debug on production site. I suggest you should share a ***staging*** site so in any case it will not affect your production site.
Can you please setup staging site as well as exact steps I will have to follow to see the issue?
I have set the next reply to private which means only you and I have access to it.
Just to let you know that we have published the hotfix version for Toolset plugins:
- https://toolset.com/2024/07/toolset-1-6-16-essential-updates-for-wordpress-6-6-and-better-workflow/
I already updated the Toolset Blocks plugin to latest version on your staging site.
I've added the image block to display the featured image:
- hidden link
I can see the image displays correctly on frontend:
- hidden link
Do you see it working correctly or am I missing anything here?
Thanks for working on this.
But it's still not correct.
First, MY ACTUAL PRODUCTION SITE IS NOW BROKEN!!!
-header is gone
-gallery images not displaying throughout the site.
-bunch of code at the end "query Monitor," etc...
I am resetting it to a prior saved version right now...
Second, on the staging site, you have reproduced the same problem I was having and still not solved.
I want to edit the Toolset view without changing the individual project template. You have edited the
Toolset view, but it's still affecting the single project template.
An example:
-hidden link looks more or less correct
but when I click on a title, it should take me to hidden link
(as an example)
the /project/ link is the single project temple, where I need to see
ALL the content (all images, text, etc. ) that is how it was set up previously.
I have reset my production site, so you can see what I mean:
I want this for the Toolset view:
hidden link
then click on the title and arrive here:
hidden link
Thanks and please be careful with the production site.
Sorry but I just modify the things as I shared:
I've added the image block to display the featured image:
- hidden link
"staging3" is not your staging site? I'm not sure but I did not make any changes to your production site.
I can see with the content template:
- hidden link
Rather assigning the loop item content template - you should create a single post content template and display with your project post type.
You should follow the following Doc for creating single post content template:
- https://toolset.com/course-lesson/creating-templates-to-display-custom-posts/
I don't understand why I need to build a new content template.
What I want is already on my site. Here is an example:
This Toolset view:
hidden link
Links to sitewide project template:
hidden link
Why won't it work with drawings3?
Maybe it's an issue with Block editor?
View template and single post content template are two different things. View's template are added within view's loop and single post content template are assigned to specific post type to display single post.
I see the following page you shared: - hidden link
and for that the following view is used:
- hidden link
And for that view there is a following view template is used:
- hidden link
If you set the block to edit as HTML - it shows the following HTML:
<div class="one_archived_project"> <div class="featured_image"><a href="[wpv-post-url]"> [wpv-post-featured-image size="medium_small"]</a></div> <div class="title"><a href="[wpv-post-url]"> [wpv-post-title] </a></div> <div class="date">[types field="date"][/types]</div> <div class="post_excerpt">[wpv-post-excerpt]</div> <div class="readmore_link">[wpv-post-read-more]</div> </div>
If you see the template which you set to use 'Loop item in drawings3' there is no such code:
- hidden link
Rather digging too deep, I suggest you should follow the Docs and standard practice to build content template.
You can reuse the content template as well but it should be build in right matter but I would not suggest to do that as if you change anything within view's template it will affect the single post template as well and that's not right thing to do.
However, to demonstrate you, I've created the following view:
- hidden link
Where I've used the bootstrap grid:
- https://toolset.com/documentation/legacy-features/views-plugin/view-layouts-101/#bootstrap
Following view template is added with the above view:
hidden link
The test view is displayed on the following page:
- hidden link
Now, see how I've set to display the view template attached to above view to single post content template:
- hidden link
And it does display the correct result.
I would suggest:
You can use our free test platform http://www.discover-wp.com and use any of our reference site that is build on top using Toolset features even with Astra theme.
This will allow you to create a test site or our free test platform: http://www.discover-wp.com
- https://discover-wp.com/site-templates/
In addition to that - if you want to install any of above reference site we offer on http://www.discover-wp.com on your local machine or server, you can use the framework installer plugin:
- https://toolset.com/course-lesson/using-framework-installer-to-install-reference-sites/
Once you create test site using any of the reference site on your local machine or server - It will give you addon advantage that you can add your additional plugins or theme that will give you the luxury to test and explore and take decision with your findings that is it required or not.
By following this path you will have hand-on experience about how you can implement the functionality using Toolset or check the existing features of the current referent site that will give you idea how its built.
you can also try to follow any of the course we offer:
- https://toolset.com/course