Skip Navigation

[Resolved] A view is corrupted but is visible if WordPress debug is activated

This support ticket is created 2 years, 9 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
- 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 8 replies, has 2 voices.

Last updated by patrickF-7 2 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#2340311
with WP debug.png
with no WP debug.png

I am trying to: edit an existing view

Link to a page where the issue can be seen: hidden link

I expected to see: the view structure / code

Instead, I got: empty / the view content seems corrupted. However is visible if I activate debug logging in WP

#2340333

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I checked and I can see the block view rendered correctly when I visit the admin edit page where you added the view. Please check the following screenshot:
- hidden link

You will have to allow to block view loaded fully, it may depend on the internet speed you have or otherwise you should try to refresh the page again. It seems to be working normally as this end as you can see with the above screenshot.

#2340335

Hello Minesh. You could see the view because the debug was activated in WP. Try now (I disabled the debug)

#2340363

Minesh
Supporter

Languages: English (English )

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

I can see the following 502 server error:

Failed to load resource: the server responded with a status of 502 ()

Maybe you should try to remove the view and try to add it again.

#2340373

What do you mean by "removing the view" ? Deleting it and re-create the view ? The problem is that if I have to re-create it, it's quite long. And BTW I would like to understand what is the problem as I had the same issue in the past (and had to cancel and re-create the view ... long and tedius). Is there an easy / fast way to remove and restore a view ?

#2340375

Minesh
Supporter

Languages: English (English )

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

What do you mean by "removing the view" ? Deleting it and re-create the view ?
==>
No, you should try to remove the view block and save the page and then again try to add a view block and load your view.

Maybe you should try to create a test page first and add a view block and select your view and see if its working as expected.

Please take full backup of your site so in any worst case you can restore the backup.

#2340477

I tried to create a new page (todel) and add my view into it, and I have exactly the same behavior. Actually it's a bug of the framework (otherwise you would not have it working with WP debug activated and not working otherwise), and this bug happened to me other times, and it's a bit annoying to have to destroy and re-create the page. Could soemone on Toolset side investigate the issue and ideally fix it or at least provide an easy work-around to unbloc the situation ? Thanks

#2342155

Minesh
Supporter

Languages: English (English )

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

I can see the view does display as expected with the English page:
- hidden link

Do you able to see it with English page?

#2343681

The bug is gone (no longer reproducible), so it can not be investigate further.