Closed (fixed)
Project:
TaxiSelect
Version:
6.x-2.0-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2009 at 19:58 UTC
Updated:
18 Oct 2009 at 23:56 UTC
The widget is not showing up on my site. Everything is installed and configured correctly. I have checked and it seems that the "Taxonomy translation" module is not compatible with Taxiselect. Taxiselect is showing up when I disable "Taxonomy translation". I guess this is part of the i18n module.
More information can be found in issue #456280
Am I the only one who is using Taxonomy translation in combination with Taxiselect? Can this be fixed. I really need the widget. Especially now, when I have seen it on my site!
Comments
Comment #1
alan d. commentedNo wonder that we could not replicate this! I'll have a look at this soon. If you can find any resources / background related to i18n and similar issues it will speed up the task.
Cheers
Alan
Comment #2
alan d. commentedThis module has a higher system weight and overrides the taxonomy form that TaxiSelect generates.
It then parses the entire Taxonomy tree and runs all terms through the tt() to translate each term. No workaround to the performance hit, but I've left an issue in the i18n queue about this: http://drupal.org/node/599088
Two workarounds:
1) Disable taxonomy translation on the vocabulary
or
2) Change the system weight of taxiselect to be 1 higher than the weight of the i18ntaxonomy in the {system} table.
I'm in the middle of some other changes, but an update that does #2 will be out in a week or two hopefully. We are about to be flooded with two months of solid work so I do not know when I'll get the time :(
Comment #3
cronix commentedI cannot wait until the update is there. Call me stupid, but how do I change the weight of the taxiselect module?
Comment #4
alan d. commentedYou need to manually update the database system table changing the weight value of Taxiselect to 20 or something else higher than the i18ntaxonomy module. Make backups before you start in case you, or the program that you use, gets this wrong.
Look for SSH / MySQL forum topics to do this via a consol or look for topics on PHPMyAdmin. This is getting more advanced but you should be right as long as you only change the single value in the single row in the system table for taxiselect.
A third minimally tested way is to cut and paste this into your themes template.php, load the page once, then delete the code (it should only be run once!!!)
Comment #5
cronix commentedYes! The code above is fixing the issue. You really made my day. I have a large and deeply nested taxonomy that is finally usable in a friendly way.
SELECT name, weight FROM system WHERE name IN ('content_taxonomy', 'i18ntaxonomy', 'og_vocab', 'taxonomy','taxiselect');The result is:
The update is performed correctly.
I only hope that you make the update of the next version robust enough that this update code is not run again in my installation?
Comment #6
alan d. commentedIt will run again, but the update will only update the weight from 20 back to 20. ;)
Comment #7
alan d. commentedThis has been committed into release 6.x-2-alpha-4
Comment #8
cronix commentedI have tested alpha-4 and it is working on my site! This one can be closed.
Comment #9
alan d. commentedThanks cronix. Glad this worked out.
As a side note, the Drupal "Project" module, which runs the issue queue, automatically closes "fixed" issues after two weeks