Last modified: 2008-07-02 10:00:12 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 13028 - error with the parser function with CategoryTree
error with the parser function with CategoryTree
Product: MediaWiki extensions
Classification: Unclassified
CategoryTree (Other open bugs)
All All
: High critical with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: 13268 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2008-02-15 16:59 UTC by Minh Truong
Modified: 2008-07-02 10:00 UTC (History)
3 users (show)

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


Description Minh Truong 2008-02-15 16:59:51 UTC
I have it working with the xml format like:

but if I want to use the parser function syntax like
I get this on the page instead of the category tree.

[<a href="#" onclick="this.href='javascript:void(0)'; categoryTreeCollapseNode('P\x26G','0',this);" title="collapse" class="CategoryTreeLoaded">–</a>] <a class="CategoryTreeLabel CategoryTreeLabelNs14 CategoryTreeLabelCategory" href="/wiki/index.php?title=Category:MyCategory">MyCategory</a>
[<a href="#" onclick="this.href='javascript:void(0)'; categoryTreeExpandNode('Soap','0',this);" title="expand">+</a>] <a class="CategoryTreeLabel CategoryTreeLabelNs14 CategoryTreeLabelCategory" href="/wiki/index.php?title=Category:Soap">Soap</a>
Comment 1 Minh Truong 2008-02-15 23:36:15 UTC
I think i fixed it...
in the function     ...   function efCategoryTreeParserFunction( &$parser )
in CategoryTree.php

return array( $html, 'isHTML' => true );

return array( $html, 'noparse' => true, 'isHTML' => true );

Comment 2 Brion Vibber 2008-02-26 00:48:56 UTC
Seems fine without this with MediaWiki trunk... what version of MW are you using?
Comment 3 Minh Truong 2008-02-28 03:22:09 UTC
I'm using the current version MW 1.11.1
Comment 4 KP Nichols 2008-03-01 12:10:37 UTC
(In reply to comment #3)
> I'm using the current version MW 1.11.1

Same problem here with 1.11.1. Gives similar HTML error type output with the parser, but works with the XML syntax.
Comment 5 Brion Vibber 2008-03-06 21:00:53 UTC
*** Bug 13268 has been marked as a duplicate of this bug. ***
Comment 6 jeff cropp 2008-03-13 04:42:19 UTC
I have the same problem running MW 1.11.1.  The fix suggested in Comment #1 works for me.  Does it have a downside?
Comment 7 Minh Truong 2008-03-23 22:52:18 UTC
(In reply to comment #6)
> I have the same problem running MW 1.11.1.  The fix suggested in Comment #1
> works for me.  Does it have a downside?

the fix works fine.
Comment 8 Daniel Kinzler 2008-07-02 10:00:12 UTC
Fixed in r36894 i suppose. I have added the "noparse" flag, even though it seems redundant. And the fix is probably mute, since the problem appears only to exist with 1.11, and the latest version of CT doesn't work with 1.11 anyway. But adding the flag didn't seem to hurt :)

If anyone is still having this problem with a recent version of CategoryTree and MediaWiki, please reopen this bug report.

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