Saltar navegación

[Resuelto] 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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 10 respuestas, tiene 2 mensajes.

Última actualización por Minesh 1 year, 11 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2704764

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?

enlace oculto

#2704776

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

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/

#2705446

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

#2705447

Here is the log:
[2024-06-30T19:14:53+00:00] WPHB API: Sending request to enlace oculto
[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

#2705490

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

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.

#2706767

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

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.

#2707029

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

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:
- enlace oculto

I can see the image displays correctly on frontend:
- enlace oculto

Do you see it working correctly or am I missing anything here?

#2707054

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:
-enlace oculto looks more or less correct
but when I click on a title, it should take me to enlace oculto
(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:
enlace oculto
then click on the title and arrive here:
enlace oculto

Thanks and please be careful with the production site.

#2707179

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Sorry but I just modify the things as I shared:

I've added the image block to display the featured image:
- enlace oculto

"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:
- enlace oculto

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/

#2707265

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:
enlace oculto

Links to sitewide project template:
enlace oculto

Why won't it work with drawings3?
Maybe it's an issue with Block editor?

#2707553

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

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: - enlace oculto
and for that the following view is used:
- enlace oculto

And for that view there is a following view template is used:
- enlace oculto

If you set the block to edit as HTML - it shows the following HTML:

<div class="one_archived_project">
<div class="featured_image"><em><u>enlace oculto</u></em></div>
<div class="title"><em><u>enlace oculto</u></em></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:
- enlace oculto

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:
- enlace oculto

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:
enlace oculto

The test view is displayed on the following page:
- enlace oculto

Now, see how I've set to display the view template attached to above view to single post content template:
- enlace oculto

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