Needs work
Project:
Delete Orphaned Terms
Version:
7.x-2.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Dec 2011 at 11:26 UTC
Updated:
30 Sep 2016 at 15:54 UTC
Jump to comment: Most recent
Hi,
I am testing this module, and thank god, I made a database backup.
I have a regional vocabulary with nodes attached of self made nodetypes.
I didn't change anything on the standard settings and tried the module.
All terms where deleted, not the terms with no nodes attached.
What are the right settings to only delete the orphan nodes?
Thanks a lot in advance for your reply.
Greetings, Martijn
Comments
Comment #1
matt v. commentedThe default settings should only delete just the orphaned terms. They do, in my testing. Can you try the new beta 1 release? If the problem persists, can you try to describe a scenario to recreate the problem you're seeing?
Thanks!
Comment #2
summit commentedHi,
The terms are placed because of term-field references in my nodes. Could may be that be the problem?
greetings, Martijn
Comment #3
acidpotato commentedWith default settings this module deleted terms for content type which had taxnomy terms as term reference field. In theory should not happen as per the module description. Pruning threshold = 0, so that's not the reason. This is a dangerous module if left on auto. +1 for the safety checks tho.
Comment #4
matt v. commentedI've tracked down what probably explains why some users are seeing this kind of issue. The module uses taxonomy_term_delete and in a hierarchical vocabularies when taxonomy_term_delete deletes parent terms it also deletes all child terms (regardless of whether they are orphaned or not).
In the short term, I've added some warning text to the module, while I try to figure out a more optimal solution.
Comment #5
matt v. commentedThis should now be fixed by commit 9081ae4.
Comment #7
MGParisi commentedBeta 1 still deletes ALL TERMS in my database. Tried it twice!
Comment #8
matt v. commented@MGParisi Can you provide some more details about your site's terms? For instance, are all your terms in a single vocabulary? Are the terms arranged hierarchically?
Also, can you detail specific steps you used to recreate the issue?
Comment #9
MGParisi commentedI don't use a hierarchical taxonomy, and I basically installed it and pushed the delete button. It runs for a few then it lists all of my terms deleted.
Comment #10
matt v. commented@MGParisi,
I just realized that you specified in Comment #7 that you were running Beta1. The Beta1 release is over 2 years old. Please update to the 7.x-2.0-beta2 release, which was released over a year ago now. There are lots of bug fixes in the 7.x-2.0-beta2 release, including the fix for this issue mentioned in Comment #5 above.
Comment #12
smitty commentedThis issue is definitly not solved. Neither on beta-2 nor on dev as of 30.09.2013.
Comment #13
tecto commentedPatch from https://www.drupal.org/node/1819344 solves this issue.