Skip Navigation

[Resolved] View not showing any content

This support ticket is created 4 years 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)

This topic contains 15 replies, has 3 voices.

Last updated by jean-marcS-2 3 years, 12 months ago.

Assisted by: Shane.

Author
Posts
#2270825

Tell us what you are trying to do?

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:

hidden link

What is the link to your site?

hidden link

#2271257

Minesh
Supporter

Languages: English (English )

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

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.

#2271973

Minesh
Supporter

Languages: English (English )

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

Do you mean that on the following page:
- hidden link

You want to display chapters group by key matrix, the following way:
Key Matrix 1:
- Chapter 1
- Chapter 2
- Chapter 3
Key Matrix 2:
- Chapter 4
- Chapter 5
- Chapter 6

#2272339

Kind of!

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

#2274233

Shane
Supporter

Languages: English (English )

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

Hi,

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.

Thanks,
Shane

#2274543

Hello Shane! Thanks for looking into this.

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!

#2275559

Shane
Supporter

Languages: English (English )

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

Hi Jean,

Thank you for the well detailed explanation of the issue.

This prompted me to take a look at the debug data for your site and noticed that you're running php version 8.0.14

Unfortunately this issue may be related to this as we've yet to announce php 8 compatibility.

My advice is to downgrade to php version 7 and then try again to see if the results are different.

Thanks,
Shane

#2275633

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

#2276413

Shane
Supporter

Languages: English (English )

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

Hi Jean,

I took a copy of your site and deployed it locally here and the view worked without any issues. See Screenshot

I was able to add the post title block to the view to list out the chapter title.

Comparing your debug data to mine I see that in reverting to php 7.4 your mysql version was downgraded to version 5.5

Are you able to update the mysql version to 5.6 ? We require at least version 5.6 to operate normally.

This is my debug data compared to yours.

Mine: "PHPVersion":"7.4.12","MySQLVersion":"5.7.32",

Yours : "PHPVersion":"7.4.27","MySQLVersion":"5.5.5"

As you can see i'm running version 5.7.32 of MySQL

Thanks,
Shane

#2279217

Hello Shane

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?

#2279917

Shane
Supporter

Languages: English (English )

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

Hi Jean,

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.

Thanks,
Shane

#2279999

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?

#2280103

Shane
Supporter

Languages: English (English )

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

Hi Jean,

These are the requirements below .
https://toolset.com/toolset-requirements/

However all the signs point to the PHP/MySQL versions causing the issue. There won't be any further need for me to log into your hosting environment.

However what you can do is to discuss these with the WPMUDEV support staff to see if there is anything they can do on their end for you.

Secondly in terms of hosting you may be able to try hostinger as they offer wordpress support as well.
Thanks,
Shane

#2280225

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.

#2280227
Screen Shot 2022-01-31 at 3.23.50 PM.png

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