The following garbage appears in the fieldset attribute (see the attached screenshot, and note that the text is concatenated with the collapsed term):

<fieldset class="collapse-text-fieldset collapsed-text-fieldset collapsible collapsedwhat-is-an-answer?">

What I have placed in a text field is:

[collapsed title="what is an answer?"]
<p>This is a sample response ...</p>
[/collapse]

This prevents the text from rendering in a collapsed state. When I remove the garbage using Chrome tools then the text immediately collapses.

Interestingly, if I clear all cache tables, edit and save the node and then submit, it will work correctly one time. But on the second submit the garbage reappears in the attribute.

It was previously working fine. The input format has only the Collapse text filter. I haven't enabled or changed any modules. This is just a mystery to me.

I would appreciate help on troubleshooting this. Anything I can do to help figure out what's happening?

CommentFileSizeAuthor
collapse-text-issue.png41.65 KBgippy

Comments

gippy’s picture

It appears that the problem is caused in line 242 of collapse_text.module:

$text = drupal_render($holder);

The problem text appears in $text but not in $holder. So it appears that the problem is with some theme() function or with some pre_render function that is being called from drupal_render.

I'm new at this and I would be very grateful for some suggestions on how I might go about figuring out which module is causing the problem. The problem does not occur with a clean install of D6.

gippy’s picture

Status: Active » Closed (fixed)

Problem found: Using the Theme Developer module - http://drupal.org/node/209561 - I was able to pinpoint the function that was inserting the garbage, which was a custom module. Thank you Moshe and others who created this module.