I'm trying to show a list of related items for a custom post type using the View block, but I can't seem to get it to load any content. I've been following a tutorial (linked below), but I get a very different result. I can't seem to get the View block to show any content, even if I'm just trying to show a list of all Posts.
Is there any documentation that you are following?
hidden link
Is there a similar example that we can see?
Here is a 5 minute video (the error is shown in the first 2 mins) that walks through my problem:
Hello. Thank you for contacting the Toolset support.
Can you please share admin access details and let me see whats going wrong with your setup.
*** 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.
My goal is to put my book online and make it easy to navigate. The book has 77 chapters, which can be grouped into 13 “key metrics”. The relationship is one key metric can have many chapters, and each chapter belongs to one key metric.
I want to eventually have a “chapters” page that lists all the chapters, and a “key metrics” page that lists all the key metrics. Each key metrics will have a content template that shows the chapters that are related to the key metric, and each chapter will have a content template that shows which key metrics the chapter is related to.
It’s a bit of work, but I think I should be able to do it as soon as I can get one view working 🙂 right now I can’t seem to get any of the views to loop through any content
Minesh is currently on vacation so I will be handling this ticket.
Are you able to point me to the page where you're working on this? You mentioned that you have one view working. Can you point me to the page where you've setup this view ?
Also if you're able to provide a visual description of the setup that you want to achieve then I will be more than happy to help out.
I've recorded a 6 min video that walks through my issue: hidden link
My problem is that I can't seem to get Views to work at all - they don't seem to loop through any content, regardless of what I try to query.
There are a few places where I want to use views, but the most basic use case is probably on the "Book" page, where I want to list each of the custom "Chapter" data model's instances: hidden link
I cover that page, as well as a few other places I want to use views, in the video. Thanks for the help!
Thanks for catching the PHP version issue! I've downgraded to PHP 7.4, but I still seem to be having the problem. You can see the problem on the view I've created on the "Book" page; I'm hoping to list all of the custom "Chapter" data model's intances, but still not able to show any content in the view: hidden link
Thank you for continuing to look into this. Our host (WPMUDEV) does not allow us control over the MySQL version. It looks like we need to be running PHP 8 or 8.1 in order to use a later version of MySQL. Do you know when Toolset will support PHP 8?
Unfortunately no I cannot give an estimate as to when our development team will release an update to ensure php 8 compatibility.
I do however know that they are working on it and it can take quite some time as the entire code base will need to be reviewed to ensure that there aren't any deprecated functions.
As soon as there is an update for compatibility there will be a blog post on our site that announces this.
Glad to hear that PHP 8 compatibility is in the works.
Are there any hosting providers you recommend that will support Toolset? The one I use, WPMUDEV, is used for several of my client projects as well as this new site I am building. Their sites seem to work at the moment, but I haven't risked editing anything since I started noticing issues with this new site. I'm really worried about what will happen if I ever need to make any changes to pages that have views on any of my paying client's sites.
If I were to give you my login credentials to WPMUDEV, is there any way you could check to see if it's possible to configure it in a way that will work with Toolset's requirements?
Shane was very helpful and worked very hard to try and find a fix for my problem. I am very pleased with the support I received from him.
Ultimately, however, I feel I made the wrong choice relying on Toolset as a core plugin for my client projects. The lack of support for PHP 8, combined with relying on a minimum version of Mysql 5.6, means that I cannot run Toolset on my hosting provider. They do have support for legacy PHP 7, but only running on Mysql 5.4. Given that PHP 8 was released nearly two years ago, I think it's a little scary that such a core plugin cannot be run on a modern language.
I will be advising my clients to not make any major changes to their sites until Toolset can be upgraded to support PHP 8, which is a pretty awful thing to have to advise clients. If this takes too long, I think I'll just have to bite the bullet and find a way to migrate to a plugin that has better maintenance.
Just to clarify - I think Shane did the best he could to assist me, and worked hard to try and find a resolution. I do not expect him to single handedly overhaul Toolset to support PHP 8 overnight!
I am, however, extremely disappointed with Toolset as a plugin due to this prolonged lack of support for PHP 8