Last modified: 2010-05-15 15:48:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 9235 - UseTidy breaks code generated by Gallery tag
UseTidy breaks code generated by Gallery tag
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-03-09 02:57 UTC by Dallas Warren
Modified: 2010-05-15 15:48 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Dallas Warren 2007-03-09 02:57:09 UTC
Due to current rendering issues with tables / if statements etc, needed to
enable $UseTidy.

When this is done, the image table generated by the <gallery></gallery> tag gets
messed up.  It is also a problem with the RandomImages extension (suspect they
use the same code somewhere).

What appears to be happening is that some of the opening and closing tags of the
code is generated as & gt; or & lt;. Which then means that things fail, get
funny bits of code appearing on the page etc. The gallery generating code was
working fine before enabling $wgUseTidy.

Because of the tags being messed up, the following is visible under the
thumbnails generated by the gallery tag (as well as with RandomImage):

More details of it are documented here -

Problem since noticed it with 1.8.2.

What it looks like when viewed using Firefox:

What it looks like when viewed using IE:
Comment 1 Brion Vibber 2007-03-09 17:27:49 UTC
It looks like you're missing the tidy configuration file.
The default one we provide is in the extensions module, in extensions/tidy.
Comment 2 Dallas Warren 2007-03-13 03:21:13 UTC
Sorry if this is a stupid question, but I have been searching high and low
(Google, MediaWiki, MetaWiki) for a default tidy configuration file in the
extensions module, and have found nothing.  Not even really a mention of one.

Where is this meant to be obtained from?

FYI, Tidy is working, and it is using the configuration file that is the default
for Tidy on the server itself.  The configuration file exists, it is in the
default location that tidy looks for the configuration file etc.

Ahh, think I have finally found it: under
the heading "After I run importDump.php or mwdumper, the articles are messed up.
Templates are skewed and do not display properly. what can I do?"

Seeing if that is appropriate and fixes the issue.
Comment 3 Dallas Warren 2007-03-13 03:32:31 UTC
That appears to be it!

Damit, something so simple.  I have updated the various locations where i have
made comments about this, that a tidy.conf needs to be included.  Will update
some details in the manual about tidy to note that as well.
Comment 4 Brion Vibber 2007-03-13 15:42:10 UTC
Note that I've moved the default location for the tidy.conf into
includes/tidy.conf, so as of MediaWiki 1.10 it won't be necessary to fetch
extensions files separately for this.

Note You need to log in before you can comment on or make changes to this bug.