Skip Navigation

[Résolu] Can’t delete a Layout (even when it has no content assigned)

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

I created some Layouts assigned to some CPT just wondering and learning how Toolset works. Now, I don't need those Layouts and I want to delete them to clean my back end. When I try to delete them, I can't. Layout says that there are contents assigned, but it is not.

Solution:

To fix it, you can try to re-create the custom post type, and delete the layout, then delete post type again.

Relevant Documentation:

This support ticket is created Il y a 5 années et 2 mois. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 11 réponses, has 2 voix.

Last updated by Jaime Il y a 5 années et 2 mois.

Assisted by: Luo Yang.

Auteur
Publications
#1203109
Captura de pantalla 2019-02-20 a las 13.11.35.png
Captura de pantalla 2019-02-20 a las 13.12.22.png

I am trying to: Delete a Layout I don`t need anymore

Link to a page where the issue can be seen: Working locally

I expected to see: Delete those layouts

Instead, I got: I can't delete them.

-> -> The thing is: I created some Layouts assigned to some CPT just wondering and learning how Toolset works. Now, I don't need those Layouts and I want to delete them to clean my back end. When I try to delete them, I can't. Layout says that there are contents assigned, but it is not.

O_o

#1203536

Hello,

As you can see, in your screenshot:
hidden link

There are some text: This layout is used for these loops ...

So this layout should be used in some archive pages.

Please try this, edit the that layout of above screenshot, click button "Change how this layout is used", in the following dialog window, find section "Archives", disable all option in it, and test again.

#1203612
Captura de pantalla 2019-02-21 a las 9.50.43.png
Captura de pantalla 2019-02-21 a las 9.50.21.png
Captura de pantalla 2019-02-21 a las 9.51.06.png

Hi Luo.
Yes, I see the Layout says that it's used for some loops...
But it is not. That's why I'm asking.

I send you some screenshots. That's what you are suggesting me to do, right?
Nothing is selected, but the layout still showing "This layout is used for these loops..."

#1203627

The problem is abnormal, please check these:
1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

For example, the latest version of Layouts plugins is 2.5.2, but you are using version 2.4.2

2) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2019, and test again

3) If the problem still persists, please provide database dump file(ZIP file) of your website, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1203654

Hi Luo.
I have done what you told me, but still working bad.
I've generated the duplicator files but it's bigger than 120M.
Can you provide me an email to send you the files via Wetransfer?

Thanks a lot.

#1203689

I don't have an account in Wetransfer.
You can put the duplicator package in your own google drive disk, and share the link in below private message box. thanks

#1204168

I have requested request for access in google drive disk, please confirm it, thanks

#1204298

Confirmed.

🙂

#1204390

Thanks for the confirmation, I can download the files, will update here if there is anything found.

#1205238

Here are what I found.

I have tried to import the duplicator package in my localhost, but get these errors:
- Archive config file not found in dup-installer folder.
- Archive Size: Expected Size: 1.34GB Actual Size: 215.53MB

So the duplicator package you provided is not valid, and I am asking only for the database dump file, it should be a very small file, you can get the database dump file, by this:
hidden link
click "Database Install", there are detail steps to setup database only duplicator package.

You can update your own google drive disk when the database package is ready, then update this thread. thanks

#1206707
layout-ubicacion.JPG
ubicacion.JPG

Thanks for the details, it is not safe to share your website credentials publicly, so I have changed your post to private message.

I can login your website and download the database dump file, I can duplicate the same problem in my localhost.

For the layout "Layout for Ubicación Archivos":
hidden link

If I am right, you have setup a custom post type "ubicacion", assigned above layout to archive page of post type "ubicacion", deleted the custom post type "ubicacion", so it conducts the problem.

To fix it, you can try these:
1) Re-create the custom post type "ubicacion" again, see screenshot: ubicacion.JPG
2) Edit layout "Layout for Ubicación Archivos", click button "Change how this layout is used", in the following dialog window, find section "Archives", disable option "ubicacion".
3) you will be able to trash/delete layout "Layout for Ubicación Archivos", see screenshot layout-ubicacion.JPG
4) Then delete custom post type "ubicacion" again

#1206870

I never thought that this could be an option to solve this problem.
O_o

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.