D 6.10
VI 6.3.x

Brick (1) (1)

I started to see this today - on some children --- "Brick" is a Child Term

It displays on the VI page, after expanding via parnet click

I see this on all child terms for this one Parent - not seeing it elsewhere

Terms were created using Tax Mgr

I thought I would start here

need more info?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Xano’s picture

Status: Active » Postponed (maintainer needs more info)

- Have you modified or overridden the template files?
- What is the official term name of the parent and it children?

green monkey’s picture

forgot an important issue

this child term had two Parents - relationship set using Tax Mgr

Vocab 1

Parnet 4
Child 204

Parent 40
Child 204

Xano’s picture

Issue tags: +Needs screenshots

Please answer all of my questions. If you don't: no fix. Please upload a screen shot and a HTML fragment as well.

green monkey’s picture

ok, will do

however, not currently seeing issue

please leave ticket open for a week or so,

if its a true bug -- it should come back and

I'll do a better job of capturing data for you

thanks

green monkey’s picture

FileSize
7.71 KB
15.71 KB

ok , caught it

screen capture & html frag attached

Xano’s picture

Issue tags: -Needs screenshots

Awesome! Could you tell me if the template files have been modified or overridden?

dpopov’s picture

Same in 6.x-2.1, default Garland theme. It happens in Tree view when child has multiple parents. Child looks OK when expanding first parent, but under second parent it looks like
<span dir="ltr">(1)</span> (1)
and under third like
&lt;span dir=&quot;ltr&quot;&gt;(1)&lt;/span&gt; <span dir="ltr">(1)</span> (1)

And this child is always first term when displayed under second and third parents (it can't be changed).

green monkey’s picture

no changes - as known

the only possible changes would have been by another module and I know of none, currently

(edit) I'm only seeing this in duel parents - used Tax Manager to create more than one parent

dpopov’s picture

> used Tax Manager to create more than one parent

I tried to create them with core taxonomy module - same problem.

dpopov’s picture

I tried to disable all modules – so it happens with just required core modules, core Taxonomy module and Vocabulary Index enabled.

BayouBill’s picture

Seeing this too: Drupal 6.13, vocabindex-6.x-2.1.tar.gz, "Analytic" theme with no mods, terms created with core taxonomy functions, no aliases, related terms, synonyms, etc. Only occurs unders parents other than the first one. Ugly! Please keep this issue open.

Edit: Only occurs in Tree view of Page when node counts are enabled and only when child has multiple parents.

Xano’s picture

Please provide step-by-step instructions to reproduce this bug using a clean Drupal install with the latest Vocabulary Index 6.x-2.x-dev.

BayouBill’s picture

FileSize
4.91 KB
109.52 KB
147.53 KB

"Please provide step-by-step instructions to reproduce this bug using a clean Drupal install with the latest Vocabulary Index 6.x-2.x-dev."

Gladly!

1. Upload *only* 6.13 Core modules
2. Create a virgin, empty, mysql database & point sites/default/settings.php to it
3. Run install.php & create Admin account only
4. Make sure Bluemarine is set as default theme
5. Go to admin/content/taxonomy and create a vocabulary named "Test" as shown in the attached screen shot. Note that ChildA is a child of both Parent01 and Parent02
6. Upload Vocabulary Index 6.x-2.x-dev dated 2009-Jun-17 and enable it
7. Go to admin/build/vocabindex/settings and set Cache lifetime to zero (don't know whether this made any difference, but I did it, so I'm documenting it here)
8. Go to admin/build/vocabindex and on the Pages tab for the Test vocabulary created in Step 5 set a path of "vitest", select "Tree" for View, and select (enable) Node counts. Click Save Configuration
9. Go to the path you set in Step 8 (/vitest) and expand both Parent terms
10. You will see what is shown in the attached screen shot (page source is attached as well)

That should do it. Virgin 6.13 install with **only** the Vocabulary Index module uploaded and enabled. Multi-parent vocabulary term(s). Tree view and node counts enabled. Voila!

BayouBill’s picture

Hello, Xano. If what I've posted in #13 above is helpful to you, it would be helpful to me if you would give me the answer to the question I asked in http://drupal.org/node/569968 (I would have PMed you on this, but the Contact tab on your Drupal profile is not enabled). Thank you!

thomsol’s picture

Has there been any update on this? I'm experiencing the same problem. Only appears when child has multiple parents.

Xano’s picture

Not yet. With Drupal 7 in code freeze I have some other priorities, but this issue is certainly not forgotten.

Orjan’s picture

Any news on this one?

I made a pure installation and with a term with four parents, it gets worse and worse for each time:

First time it looks perfect:
ISGA90 - Introduktion till IT-Design (0)

Next time:
ISGA90 - Introduktion till IT-Design <span dir="ltr">(0)</span> (0)

Third time:
ISGA90 - Introduktion till IT-Design &lt;span dir=&quot;ltr&quot;&gt;(0)&lt;/span&gt; <span dir="ltr">(0)</span> (0)

and Fourth time:
ISGA90 - Introduktion till IT-Design &amp;lt;span dir=&amp;quot;ltr&amp;quot;&amp;gt;(0)&amp;lt;/span&amp;gt; &lt;span dir=&quot;ltr&quot;&gt;(0)&lt;/span&gt; <span dir="ltr">(0)</span> (0)

My thinking is that it's running htmlentities() on the name for each time and adding a (0) to the title. next time, the title is including last span tag, converts the span tag and adds a last one...

I think the code shall be pretty easy to fix if you know where to find the code...

Orjan’s picture

Solved it!

By editing vocabindex_link.tpl.php like this:

Remove the first code line:
$term->name .= $vi->node_count ? ' <span dir="' . $dir . '">(' . $term->node_count . ')</span>' : NULL;
and replace it with:
$vocabindex_count = $vi->node_count ? ' <span dir="' . $dir . '">(' . $term->node_count . ')</span>' : NULL;

Then Remove last line:
echo l($term->name, $term->path, array('html' => TRUE, 'attributes' => array('title' => $title)));
and replace with:
echo l($term->name . $vocabindex_count, $term->path, array('html' => TRUE, 'attributes' => array('title' => $title)));

this makes the html-part not being added on each other for each time.

Orjan’s picture

Status: Postponed (maintainer needs more info) » Needs review
jvieille’s picture

Great!

I had rebuild the menu switching from tree to flat and tree again, and to clear the cache though catching was disabled.

Thanks!