[Resolved] No published Layouts in admin/toolset/layouts screen
This thread is resolved. Here is a description of the problem and solution.
Problem:
Existing Layouts have all disappeared from the Toolset > Layouts page, which now includes a JS error in the browser console.
Solution:
There were major changes to this page in the last Layouts update, and some users may find they need to clear their browser cache for the updated JS files to be used, which resolves the issue and the error.
We are reviewing how our JS files are added (we use a lazy-loading script loader) to ensure they ensure the same cache-busting technique as traditionally enqueued files.
This support ticket is created 6 years, 6 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.
Link to a page where the issue can be seen:
wp-admin/admin.php?page=dd_layouts&status=publish
I expected to see:
The layouts i've created
Instead, I got:
Nothing. The filter appears to default to published, but it shows no items where the layouts used to be. If I switch to "trashed" I do get those listed. But the published list is blank. Note that it does show a count of "published" so they're not "gone" they're just not showing up.
I tried disabling all plugins other than toolset.
It could be a coincidence, but this morning I upgraded all of the toolset plugins to the most recent. The versions listed below are what it is now.
Toolset Forms - version 2.0.2 . [was 2.01]
Toolset Layouts version - 2.4 . [was 2.3.1]
Toolset Types - version 3.0.4 . [was 3.0.2]
Toolset Views - version 2.6.3 . [was 2.6.2]
That will create a file debug.log in your /wp-content/ directory which you can examine in any text editor. Try visiting the Layouts page and then inspect the log. If you don't find the debug.log file it means it didn't generate any warnings or errors.
Could I ask for one last thing, which is to check if that is being triggered by some conflict. Switch theme to twentyseventeen and try again, and disable your non-Toolset plugins and try again.
If you still get the error I'll need a copy of your site to pass to my colleagues to work on to try and identify what the cause is.
hidden link
Let me mark your next reply as private in case you need to pass on site details.
I installed the duplicator package and went straight to the Layouts listing page and it worked fine, so it looks like something server related.
You are using one of the latest PHP versions (7.2.4-1), are you able to change your server settings to use an older version? (My test environment has up to 7.0.10 installed.)
If we are able to identify it as a PHP version issue I can pass that on to the developers.
I changed the PHP version and that did not fix it.
BUT
The fact it came right up for you made me wonder if it was the browser. I use Chrome. I switched over to firefox and the layout page came up with items populated as expected!
This is the build of chrome I was using:
Version 67.0.3396.99
Can you verify that Chrome does not display this correctly on your end?
Chrome is my default browser and is the one I tested this in.
As the issue for you is a JS error, there could be a browser caching issue behind this.
In Chrome can you open the dev tools and then at the top of the browser next to the URL bar if you hold down the reload button you'll see additional options to empty the cache and do a hard reload. Can you try that?
Well there you go! it was the browser caching. The funny thing I kept clearing the server side caching, but never did the client side. Thanks for your help!