I made a content type called 'quote'. I only changed the title and body into quote and author. I also edited the description to explain what a quote 'content type' was.
As we decided not to use it for the current project, I made sure that no quote contents or comments were left (I deleted them) and I removed the quote content type.
However, when I go to 'create content' quote still shows up with the description, even though it was deleted. How can I remove it completely and what implications does it have for the database. I'm not proficient in mysql/phpmyadmin yet but I'm getting the hang of drupal itself which is great!
Looking forward to your help.
Comments
Comment #1
atxbkk commentedThe same problem with book page. After deleting, it still shows up with the description. It seems that it is created in the navigation path (bug: should probably remove it there as well) + it still shows the description so somehow it is not completely deleted from the database.
You can just see it, not perform the actual creation of the quote or book page but it seems like some things are not fully removed.
Comment #2
ainigma32 commentedJust tried a custom type on both D5 and D6 and the book page on D6 and the menu items were removed perfectly.
Chances are that you have a contributed module that is misbehaving.
Are you using any contributed modules?
- Arie
Comment #3
atxbkk commentedI use about 10 or so. Any idea how I can find out which one it is?
Comment #4
ainigma32 commentedSure.
Of course you could start by disabling all contributed modules and then test. That would show you if the problem is a contrib module.
Please post back your findings.
- Arie
Comment #5
ainigma32 commentedLooks like attraxio won't be posting any feedback so I'm setting this to fixed.
Feel free to reopen if you think that is wrong.
- Arie
Comment #7
stella commentedThis is definitely an issue when deleting content types. If I delete a content type then it no longer appears on the administer content types page and doesn't exist in the db. However the menu item for it under 'create content' still appears. In addition, if you rename a content type, but keep the path the same, then the menu item under 'create content' also fails to change.
This happens for both CCK and module defined content types, e.g. poll - when I disable the 'poll' module, the 'poll' content type still appears under 'create content'.
Comment #8
jamestombs commentedSounds like menu cache to me. Does clearing the cache_menu table fix the problem?
Comment #9
stella commentedNo, I tried clearing the cache, using the 'clear cache' button on the 'performance' settings page. I didn't try doing it manually in the db however. I've worked around the problem by editing the menu and manually disabling those links, but something weird is definitely going on.
Comment #10
Anonymous (not verified) commentedResearch the menu tables. Do you find a row for the content type still there? If so then we need to change the component to menu system.
Comment #11
atxbkk commentedThe problem still persisted and removing the modules did not provide a solution for me.
I had to do the same thing as Stella, manually remove them from the menu, which seemed strange as where would it get this data from? It surely was not a caching issue as users on other machines saw it as well and cached was cleared several times.
I have since moved on to install drupal on another workstation and am building a different project. I am keeping more track of things as I build. It's painful, almost having to do a full backup for every single change as you never know something's broken until a few steps further in the process.
Currently having a similar issue that aggregator gets broken... Is there a convenient way to make (automated) backups before each change?
Comment #12
xlsg commentedI have this problem too. It's not just the menu, it's also what is displayed in node/add. For example, I change the description of a content type but I still see the old description. I am not sure whether it is just caches. There are also values in the variable table (e.g. form_build_id_contenttypname that aren't deleted.
Comment #13
xlsg commentedand node_options_{contenttypename} ...
Comment #14
xlsg commentedmy comments apply to version 6.12 as well.
Comment #15
Xomby commentedsubscribing
Comment #16
fgiacanelli commentedJust reset the menu corresponding to the deleted content types.
See:
http://drupal.org/node/325093
http://drupal.org/node/339898
Comment #17
gpk commented@16: IMO this is still a bug in core, though the workaround is helpful.
Comment #18
Anonymous (not verified) commentedWith an easy fix no less but have you tested this on Drupal 7?
Comment #19
stevieb commented#16 works in drupal 7
Comment #20
Anonymous (not verified) commentedThis issue exists in drupal 7? The menu item is removed if I delete the content type before creating content. The menu item is removed if I add content, delete the content, and delete the content type.. The menu item is removed if I add content with history, delete the content and delete the content type. Works for D7.
Since we have an easy enough work around I don't think this issue warrants remaining open since no patches have been forthcoming.
Comment #21
gpk commentedThere are a number of problems around deletion of content types (e.g. some variables get left behind, what to do about content of that type) and this particular one also comes up sometimes in the forum e.g. http://drupal.org/node/325093.
Also marked #550664: Keep repeating "Content Type" in Navigation menu and Deleted Content Type cannot deleted/removed from menu as dupe.
Not clear if the problem always occurs or only if the respective menu item has been customized.
Comment #22
Anonymous (not verified) commentedGPK, do you have a patch to offer? This issue is 3 years ancient.
Comment #23
gpk commentedYou're right, the problem as originally described doesn't seem to be there any more - maybe it was fixed somewhere along the way - and remaining issues seem to be to do with the parenting problem #550254: Menu links are sometimes not properly re-parented.