craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.25k stars 629 forks source link

Orphaned Entry Types? #5165

Closed proimage closed 4 years ago

proimage commented 4 years ago

Description

I've got a site where at one point there were a few "An unknown error occurred" flash messages in the CP, and now there are these orphaned Entry Types I can't seem to get rid of.

Basically, whenever I import project.yaml into an environment, it adds these entry types. When I try to delete them via the backend, I get another flash error message and they don't appear to get deleted, but when I refresh the page, they're gone.

However, they're still in the project.yaml, even if I run ./craft project-config/rebuild. I see them in there... taunting me... 😨

I could manually edit the project file to delete them, but in a DB search for the name of the Entry Types (they are 3 duplicates, all with the same name), I found a reference in the info table. I also figured I might need to send you the project.yaml and a DB dump, so I figured I'd hold off on deleting the pests until I heard from y'all at P&T.

Steps to reproduce

  1. Have something go wrong in the backend during development
  2. Be unable to fix it by normal means.

(sorry, I really have no idea how to reproduce this)

Additional info

brandonkelly commented 4 years ago

It’s probably going to be easiest for us to tackle this if you send in your composer.json and composer.lock files plus a database backup and steps to reproduce to support@craftcms.com

proimage commented 4 years ago

Done! GLHF :p

olivierbon commented 4 years ago

Updating to 3.1.34.3 and running ./craft project-config/rebuild seems to fix the issue.