Skip Navigation

[Resolved] View not displaying on front-end for main template

This support ticket is created 4 years, 11 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 33 replies, has 2 voices.

Last updated by Shane 4 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#1657561

Hello,

Having made no changes for a couple days I'm now getting this error on the colloborative page(s):

Notice: Trying to get property of non-object in /home2/jasone/db-moec.intouchwebsitedesign.com/wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php on line 2230

I hope this helps with the diagnosis.

Thanks,

Jason

#1657585

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jason,

This is because we have the debug enabled for the site.

Only admins are able to see this info, we will have it active until the issue is resolved.

Thanks,
Shane

#1663573

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jason,

We are still checking on this for you but we have noticed that the classic editor for views works fine.

Would you like for me to guide you on how you can proceed using the classic editor until we can understand why this is happening ?

Please let me know.
Thanks,
Shane

#1663589

Hi Shane,

Thanks for the update. Using the classic editor will be a fine solution! Please point me in the right direction.

Jason

#1663665

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2020-06-15 at 10.25.24 AM.png

Hi Jason,

I've already enabled it for you.

If you go to Toolset -> Views, you should be able to create your new view from there.

The process is similar to the Block Editor process but using the older method. So you will need to select your post that you want the view to display.

Then use the Query Filter section and click on Add a Filter. See Screenshot

Then add a filter for your Post Relationship and set it to "The post where this View is shown".

Finally go to the Loop wizard and you can customize your view output. You also have the option to use the block editor here as there should be a button on the content template for this view.

Once you've setup your view you can go to the content template that you've setup for your post and use the view block to add an existing view and insert the view to the content template.

Please let me know if this helps.
Thanks,
Shane

#1665723

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jason,

Though I've provided a workaround please remember that we are actively trying to see what the issue is and see how best we can resolve it.

Please do not close this ticket as yet.

Also are you able to setup this site on another server?

Please let me know.
Thanks,
Shane

#1667255

Hi Shane,

I could not get the Programs to list properly for the Collaboratives using the old Views builder. I can get all of them to show, but not the programs that should be associated with the collaboratives. Possibly it's best to wait until this is resolved and try again. I will find out if I can use a test area on my client's server for this. Thanks, Jason

#1667359

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jason,

I can get all of them to show, but not the programs that should be associated with the collaboratives.

I checked the view for this here
hidden link

The problem was that you had selected the Collaboratives Post Type for this view when you wanted to display the Related Programs, So what you needed to have selected was Programs Post Type since this is what you want to display.

I will find out if I can use a test area on my client's server for this.

Looking forward to hearing some good news with this.

Thanks,
Shane

#1668721

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jason,

The issue with your view should now be fixed. You should now be able to build out your views using Blocks again.

Our team has resolved the issue on your site.

If there are any further questions on this please let me know.

Thanks,
Shane

#1668961

Thank you Shane. I'll do some testing tomorrow!

Jason

#1669899

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jason,

Thanks once you can confirm that this is resolved you can go ahead and close this ticket.

Thanks,
Shane

#1670029

Hi Shane,

I apologize for continuing to have to bug you. There's some improvement, as I can see the output of the view on Collaboarative pages, however, they are listing all the Program titles. Is there something else needed to only show only the related post data for the Collab?

Thank you again!

Jason

#1670113

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2020-06-19 at 2.06.48 PM.png

Hi Jason,

The problem is that you will need to add a Query filter for the post relationship. See Screenshot

What you need to do is to select your view block and then on the right hand side you can see the Query Filter section. Just expand it and click on the Add a filter and add the filter for Post Relationship.

This should allow your Block to start filtering for the relationship posts.

Thanks,
Shane

#1675535
Annotation 2020-06-24 152655.png

Hi Shane,

Thanks for the info but I don't appear to have the Query Filter option available. Please see attached.

Jason

#1675555

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jason,

Here is a short video on how to access this area from my test site.
hidden link

Please let me know if this helps.
Thanks,
Shane