I've updated to version 2.2, but result is not as expected. The output is broken.

The following text works with 1.7, but not 2.2.

<p>=de=Gute Webseiten oder Organisationen, die sich um Transparenz in der Medizin und der medizinischen Forschung bemühen. Diese Webseiten enthalten viele interessante Informationen und Links.=es=Una lista de sitios en la red y organizaciones que pretenden una mayor transparencia en la práctica de la Medicina y en la investigación médica. Estas páginas web contienen muchas informaciones&nbsp;y muchos enlaces de interés.=qz=A list of good sites or organizations which want more transparency in medicine and medical research. These websites contain many interesting informations and links.=qq=</p>
<p><!--break--></p>
<table align="left" border="0">
<thead>
<tr>
<td><strong>=es=Página web=other=Website=qq=<a href="http://www.healthyskepticism.org/"></a></strong></td>
<td><strong>=de=Beschreibung=es=Descripción=other=Description=all=</strong></td></tr></thead>
<tbody>
<tr valign="top">
<td><a href="http://www.healthyskepticism.org/">healthyskepticism.org</a></td>
<td>=de=Peter Mansfield hat eine der weltweit schlagkräftigtsten Kampagnen gegen manipulatives Pharmamarketing aufgebaut hat. Seine "Updates" werden auf allen Kontinenten gelesen und sorgen immer wieder für Aufsehen. Die Website enthält zudem eine hervorragende Linkliste. =other=<em>Introduction to Healthy Skepticism Inc</em> 
<p>What? Our main aim is improving health by reducing harm from misleading health information.<br>Why? Because misleading health information harms health and wastes resources.<br>Who? We have 161 members who live in 23 countries. Many of us are health professionals but everyone is welcome to become a member if they support our aims. We also have 2478 subscribers who live in 112 countries.<br>Where? Mostly this website and email groups but we also have some meetings in person at many locations around the world.<br>How? We share information via our website, email discussion lists, academic journal publications and informing the media. Members may join task groups.<br>When? Since 1983.=all=</p></td></tr>
<tr valign="top">
<td><a href="http://mezis.de/">mezis.de</a></td>
<td><span class="attribute-value"><em>Mein Essen zahl ich selbst</em> - eine Aussage, die für Ärzte und Ärztinnen alles andere als selbstverständlich ist. MEZIS wurde Initiative unbestechlicher und unabhängiger Ärzte ins Leben gerufen. MEZIS kämpft gegen Einflussnahmen der Pharmaindustrie auf das Verordnundgsverhalten von Ärzten und Ärztinnen.</span></td></tr>
<tr valign="top">
<td><a href="http://www.nofreelunch.org/aboutus.htm">nofreelunch.org</a></td>
<td>=de=Homepage der amerikanischen Initiative "<em>No free lunch</em>"=other="<span class="style19">We are</span> health care providers who believe that pharmaceutical&nbsp; promotion should not guide clinical practice. Our mission is to encourage health care providers to practice medicine on the basis of scientific evidence rather than on the basis of pharmaceutical promotion. We discourage the acceptance of <em>all</em> gifts from industry by health care providers, trainees, and students. Our goal is improved patient care."=all=</td></tr>
</tbody></table>

I've added screenshots of working 1.7 and of broken 2.2. My website is in en, fr, es and de. de is the default language of the website.

Comments

andy inman’s picture

StatusFileSize
new56.14 KB

No screen shots? I've tested your content on my system and it seems to work. Here is a screen shot for German.

ibex’s picture

StatusFileSize
new4.71 KB
new64.41 KB
new55.52 KB
new61.67 KB

It seems that this is not a general problem. Your output is ok.
I've added the screenshots. The language section filter is the first one on my system (-10 weight).

I'll look at my system when I find some time. Currently, I downgrade to version 1.7 and this works for me.

Thanks for your fast reply.

andy inman’s picture

Ok, when you get some time...

Please try version 2.4 - http://drupal.org/node/754696 - I've changed the regexp pattern to be almost the same as V1.7 (it cannot be exactly the same due to the way 2.x works.)

Can you give me the exact configuration of your input format? I will try with that. Maybe some other filter is interfering in some way.

My test filter is LS only, but I've tried adding other typical filters like line-break converter and HTML corrector and that doesn't seem to make any difference your content still appears correct to me.

ibex’s picture

I describe what I've tested:

  1. Update to 2.4. Problem still there.
  2. Creating another input format with the goal reproducing the problem. Initially no filters in the new input format. Problems not there. Adding step-by-step filters with the same configuration. Problem not reproducible that way.
  3. Suddenly, output of the problematic input format is ok. I haven't touched that input format. I've no explanation why. Problem not reproducible anymore.
  4. Downgrade language section module to 1.7. Run update.php. Output is ok.
  5. Upgrade language section module to 2.4. Run update.php. Output in one input format is broken. Other input formats are ok.
  6. Disable all filters in the problematic input format except language section filter. Problem occurs still in this input format.
  7. Disable all filters in the another input format ("good") except language section filter. I'm doing node previews. With problematic input format output is wrong, another preview with "good" input format and output is ok. Repeating. Results are reproducible.
  8. Disable language section filter in problematic input format. Output is not filtered (as expected).
  9. Enable language section filter in problematic input format. Output is again wrong.
  10. Output in "good" filter is ok.
  11. Testing with another node. The same "input filter dependent" behavior.

It seems that the problem is only "in" a specific input format. It seems that there is "some state" in the input format.

Do I have to flush some caches? Or to do something?

Maybe this information helps you.

andy inman’s picture

Thanks for that extensive research - it has given me an idea! Maybe the problem is simply that LS 2 is using the "pattern" setting from LS 1 - that may be the case if you have never visited (and saved) the configuration page for LS 2. In other words, all you have to do (after upgrading from 1.x to 2.x) is visit the configuration page and save the configuration. If that works, repeat the process for each filter format lat uses LS, as the configuration is saved per format (unless you activate the "shared configuration" option in "advanced" settings.)

I'm am not sure, but I think this may be the bug - it would seem consistent with your report above. In any case I will take a look at the code and try to confirm.

ibex’s picture

After saving LS configuration in the problematic input format it works!
Thanks for the hint!

That may also explain why it suddenly worked in step 3. I've looked through several configurations.

andy inman’s picture

Status: Active » Fixed

I checked the code - it turns out that all you need to do would be visit the config page (even without saving it.) Still, it's a bug - version 2.5 about to be released which fixes this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.