Last modified: 2008-07-02 10:00:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T15028, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13028 - error with the parser function with CategoryTree
error with the parser function with CategoryTree
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CategoryTree (Other open bugs)
unspecified
All All
: High critical with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 13268 (view as bug list)
Depends on:
Blocks:
  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: ---


Attachments

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


but if I want to use the parser function syntax like
{{#categorytree:MyCategory}}
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

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

after:
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.


Navigation
Links