Skip Navigation

[Resolved] view doesn't work

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 4 replies, has 2 voices.

Last updated by charlie 1 year, 11 months ago.

Assisted by: Nigel.

Author
Posts
#2529597
Immagine 2023-01-08 120011.jpg

I tried to change my view "Home Aggiornamenti", i.e. I would like to change the colour of background of some blocks or to add a conditional block but it seems it doesnt' work. The content is ok, and the result is the last 10 posts of category aggiornamenti.

It seems stuck, i cleared all the plugins, i cleared the cache, but there is no way to change anything in the view, even the smallest change, for example the size of the font.

[redacted]

thankyou

#2530191

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

First, please don't share sensitive data unless we set up a private reply for you. I've edited your post to remove the site credentials.

I visited your site and see the problem, and note that when I make changes to your View they are not reflected on the front end. Superficially, it looks like a caching issue, but when I clear the caches, the problem persists.

It's a reasonably complex page where you added the View and to be able to take a better look at exactly how you set this up I'm taking a copy to install locally so that I can investigate without worrying about breaking your site.

I'll let you know what I find.

#2531037

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Just to let you know, I'm still looking into this.

I have the site installed locally, and I've edited the home page to strip out everything except the View to simplify things.

As you describe, any changes I make to the View do not appear on the front end. They are saved to the database, I can check what is stored in wp_posts for the home page and see the modifications I make, but what is output on the front end doesn't correspond to what is displayed. Ordinarily that would imply the content is being served from the cache, but in this case the cache is disabled.

So I need to do some more intensive debugging to understand why. Please bear with me, as that may take a while.

I'll keep you posted.

#2532089

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hello again

I've identified the issue, but I don't have good news, I'm afraid.

When you create Views by adding a View block to the page, it creates a post (post type = view) in wp_posts that has details of the post, but it also creates a second view post linked to the first that has draft post status. It is required for the View block to function correctly.

Checking your database I see that the second—draft—post is missing, and so the View block cannot function correctly.

I see in your plugins list you have a plugin "WP Optimize" and my guess is that you used this to clean up the database by deleting draft posts, which means that your View blocks are now broken.

Hopefully you have a backup taken before you cleaned the database this way, in which case you can recover the View blocks.

If not then I'm afraid you will have to delete the existing View blocks and recreate them.

#2532753

My issue is resolved now. Thank you!