Closed (works as designed)
Project:
Taxonomy Ticker
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2007 at 23:56 UTC
Updated:
15 Feb 2007 at 17:23 UTC
Hi--
Great contrib (I hope!) I just implemented it on Drupal 5.1, and I have taxonomy categories AND terms set up.
Unfortunately, when I go to configure the settings, the menu field for terms selection is blank--there is nothing in it and I am unable to assign any terms or setup the ticker.
What might I be doing wrong?
Comments
Comment #1
crashpixels commentedFor more clarification. Under: Home » Administer » Site configuration (Taxonomy Ticker) the first field, labeled "Terms" is not populated, even though I have a taxonomy category "Ticker" setup and the term "Add to Ticker" related to it. Where am I missing the boat here? :)
Thanks,
Aria
Comment #2
litwol commentedi second that. i am having the same problem. however i must tell something interesting... i tried to use taxonomy on 5.0, after which i deleted them and ran the uninstall script. then i upgraded to 5.1 and i had a need for a ticker so i used taxonomy ticker. (nowhere did it say i had to use taxonomy for the ticker but my common sence lead me to that discovery rather quickly). after enabling the taxonomy module magically all previous terms which i thought were deleted when i ran uninstall came back and were available under taxonomy ticker terms. none of those terms was the one i needed for my purposes so i created a new term called vocabulary "content types" and added term to it "news". and that is where i noticed the problem, the NEW taxonomy vocab and term didnt appear in the taxonomy ticker terms list.
sorry for the long post but i hope it will help reveal the problem.
Comment #3
litwol commentedI feel very proud of myself. this is the first time i looked into a contrib problem and i found a solution. I trully hope that my solution doesnt break the rest of the module. however i think the mistake i found was a genuine one.
i dont know how to make a patch so i will only offer solution here as a code quote:
please go into taxonomy.module file and look up function name "taxonomy_form_all"
here is the original function
[code]
[/code]
The problem lies with the condition check, it test if you ahve MORE THAN ONE term... if you have exactly one term (like i... have only news for now) then the test will fail and the options population will skip.
to make it work replace the above line that i marked by "LOOK AT THIS LINE" by the following code
[code]if ($tree && (count($tree) > 0)) { [/code]
see how now it checks if there is at least one term... now it works :-D.
Comment #4
litwol commentedalso please ignore the " print "hi";" inside the top code sample... i forgot to remove my rather primitive debugging mark lol.
Comment #5
mathieu commentedWell, we're not gonna ask people to patch taxonomy.module to use the ticker... :-) Though, I will update the documentation to say "you must have at least two terms in the chosen vocabulary"... and do a "real release" at the same time.
Comment #6
litwol commentedthats fine i suppose, but please indicate that it is a BUG inside taxonomy module and not the ticker.. ticker works flawlessly so far.
FYI i reported the bug in the taxonomy section... i am very new to this so i hope i made the report in the correct place, please check? thank you : http://drupal.org/node/119168