Extension talk:CategoryTree/Archive 03

From mediawiki.org

2009[edit]

Error after Xampp-Upgrade[edit]

PHP 5.3 seems to be more strict with handing over of values/references. In this case the culprit probably is Language.php. see Special:Code/MediaWiki/55429 Try to change

- function getMagic( &$mw ) {
+ function getMagic( $mw ) {

in Languages.php and your problem might be solved.

Mathias Scheer, hallowelt.biz

--80.153.10.122 12:59, 14 October 2009 (UTC)Reply


Good news! I upgraded to MediaWiki 1.15.1 and the concurrent version of the extension and that solved my problem.

--Katwol 10:11, 18 August 2009 (UTC)Reply

After Upgrading from Xampp 1.7.1 to 1.7.2 I get the following error messages when the CategoryTree-extension is activated in LocalSettings.php:

 PHP Warning:  Parameter 1 to Language::getMagic() expected to be a reference, value given in /opt/lampp/htdocs/_fhbwiki/includes/StubObject.php on line 58, 
 referer: [...]/index.php/Hauptseite
 PHP Warning:  Parameter 2 to efCategoryTreeParserOutput() expected to be a reference, value given in /opt/lampp/htdocs/_fhbwiki/includes/Hooks.php on line 117, 
 referer: [...]/index.php/Hauptseite
 PHP Warning:  Parameter 1 to Language::getMagic() expected to be a reference, value given in /opt/lampp/htdocs/_fhbwiki/includes/StubObject.php on line 58, 
 referer: [...]/index.php/Hauptseite
 PHP Warning:  Parameter 1 to Language::getMagic() expected to be a reference, value given in /opt/lampp/htdocs/_fhbwiki/includes/StubObject.php on line 58, 
 referer: [...]/index.php/Hauptseite
 PHP Warning:  Parameter 1 to Language::getMagic() expected to be a reference, value given in /opt/lampp/htdocs/_fhbwiki/includes/StubObject.php on line 58, 
 referer: [...]/index.php/Hauptseite
 PHP Warning:  Parameter 1 to Language::getMagic() expected to be a reference, value given in /opt/lampp/htdocs/_fhbwiki/includes/StubObject.php on line 58, 
 referer: [...]/index.php/Hauptseite
 PHP Warning:  Parameter 1 to Language::getMagic() expected to be a reference, value given in /opt/lampp/htdocs/_fhbwiki/includes/StubObject.php on line 58, 
 referer: [...]/index.php/Hauptseite
 PHP Warning:  Parameter 1 to Language::getMagic() expected to be a reference, value given in /opt/lampp/htdocs/_fhbwiki/includes/StubObject.php on line 58, 
 referer: [...]/index.php/Hauptseite
Detected bug in an extension! Hook efCategoryTreeParserOutput failed to return a value; should return true to continue hook processing or false to abort.

Backtrace:
 #0 /opt/lampp/htdocs/_fhbwiki/includes/OutputPage.php(554): wfRunHooks('OutputPageParse...', Array)
 #1 /opt/lampp/htdocs/_fhbwiki/includes/OutputPage.php(562): OutputPage->addParserOutputNoText(Object(ParserOutput))
 #2 /opt/lampp/htdocs/_fhbwiki/includes/Article.php(3506): OutputPage->addParserOutput(Object(ParserOutput))
 #3 /opt/lampp/htdocs/_fhbwiki/includes/Article.php(900): Article->outputWikiText(''''Dies ist das...')
 #4 /opt/lampp/htdocs/_fhbwiki/includes/Wiki.php(447): Article->view()
 #5 /opt/lampp/htdocs/_fhbwiki/includes/Wiki.php(63): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
 #6 /opt/lampp/htdocs/_fhbwiki/index.php(114): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
 #7 {main}

Everything works ok with:
MediaWiki 1.14.0
PHP 5.2.9 (apache2handler)
MySQL 5.1.33

But the error occurs with:
MediaWiki 1.14.0
PHP 5.3.0 (apache2handler)
MySQL 5.1.37

I need help with fixing this.

--Katwol 12:17, 17 August 2009 (UTC)Reply

A little mistake at saving in RichEditor[edit]

When saving a page in RichEditor (MW 1.15, IE8), there is a small change that causes Categroytree not working.

From this:

<onlyinclude><categorytree mode="all" hideroot="on" showcount="off" depth="3">Theory</categorytree></onlyinclude><br>

It makes this:

<onlyinclude><categorytree mode="all" hideroot="on" showcount="off" depth="3"></categorytree>Theory</onlyinclude><br>

I have to go manually into Wikitext and move the word (Theory in this example) before categorytree tag

193.2.84.34 07:08, 15 July 2009 (UTC)Reply

Viewing the tree in multiple columns[edit]

I have the following code:

 <categorytree mode=pages>features</categorytree> 

Currently this generates a list that are subcategories to the category "features". But the output of it is in a single column, which can get very long if there is a lot of subcategories underneath "features". Is it possible to format the output so the list is in multiple columns? Also, can it be done so it's arranged alphabetically (like the subcategories list generated automatically by the wiki itself -> this is actually the desired output i am trying to get) Thanks in advance!! 128.189.248.8

Different spot in sidebar[edit]

Is there any way of making this be above some of the other items in the sidebar? - My Wiki

--38.98.7.10 02:45, 7 March 2009 (UTC)Reply

Go into:

MediaWiki:Sidebar

Put * categorytree-portlet into the list anywhere you want.

72.166.192.10 17:26, 27 April 2009 (UTC)Reply

This doesn't show any effect in my Wiki. Why?

?UNIQ385ee6e553c2262-h-0--QINU?[edit]

An error occured in German Wikipedia. The heading of section appear e.g. as ?UNIQ385ee6e553c2262-h-0--QINU? (cf. QINU fix). This happens if the tag <categorytree>missing category</categorytree> appears on the page (example). --WIKImaniac 19:59, 6 January 2009 (UTC)Reply

This also happens in hebrew mediawiki with this extension. --85.250.59.208 09:42, 24 February 2009 (UTC)Reply
Same problem in my wiki in French www.wikitau.org see http://www.wikitau.org/index.php5/Portail:Histoire but strangely not in http://www.wikitau.org/index.php5/Portail:Personnages see Extensions_FAQ#.22NaodW....22_or_.22UNIQ....22 FrViPofm 10:31, 3 March 2009 (UTC)Reply
Same problem in my german wiki. It's very strange. In some case it work without QINU errors, but in other case it dosn't work. That's approximately 50% of cases. What is the Problem? I have test it with version r46794 (Current) and r45462 (version for mediawiki 1.14.0). P. Vizeli 11:09, 4 March 2009 (UTC)
Same problem in MediaWiki 1.15.1 on Php 5.3.0 in situations where the category tree cannot be found (typo in the category named inside of the tag). No problem, if category can be found.

A request[edit]

Is there any way a switch can be added that will allow the function to be set to default to the collapsed state? I am referring to the {{#categorytree}} function. --Jerem43 06:13, 22 January 2009 (UTC)Reply

I'm using a very crude workaround. In wikia there is an js extension that is used to collapse / expand blocks, so what did I do? Nested the categorytree inside a Show/Hide container. http://dev.wikia.com/wiki/ShowHide
If you set depth to zero (<categorytree depth=0>SomeCat</categorytree>) it will only show the root element. 75.119.248.55 13:53, 3 August 2010 (UTC)Reply
yes but it show only the root element and when you click on the [+] it sais "loading" and don't show the subcategories...

A different display[edit]

Please take a look at en:Category:Application software. The category outline there was designed as a concise display of the category tree, intended for use by people categorizing articles and not knowledgeable of the existing categories. While that outline is hand-coded (and took advantage of some unique characteristics of that category), the rules for generating it were:

  • 1st level categories start a new line and are visually distinct (bold/higlighted/...)
  • 2nd and lower level categories follow on the same line without any indication of level
  • a category only appears once, whether the prior appearance was as a 1st or other level makes no difference
  • in general (it was hand-coded) the maximum depth was 4.

The resulting "outline" makes locating categories quick, usually at a glance. For many uses, it's not the tree structure that is important, but category existence, and the "outline" makes tree walking, expanding branches, unnecessary. Please consider such a display for future revisions. tooold00:36, 29 January 2009 (UTC)

Surely then if that were the case - you wouldn't be using Category Tree - which people are choosing to use because thats what they really want. Its a nice layout indeed, but we use Category Tree in the sidebar where such a layout would not function at all.

Nibb 16:17, 25 March 2009 (UTC)Reply

Special:Categories[edit]

Is it possible to change the defaults on the Special:Categories page - i.e. instead of seeing a list of categories, seeing them with the + next to the to see sub-categories / pages? How? --Robinson Weijman 08:50, 29 January 2009 (UTC)Reply

CategoryTree Does not show any Categories[edit]

Hi,

My wiki does not show Category Tree, eventhough it has categories. The categories pagge displays

Pages in category "Agile" There are 3 pages in this category.

A

Agile Challenges
Agile Resources
Agile Testing

But when i click on Show Tree it shows:"Category Agile not found "

Am using IE7 browser, and have JavaScript enabled.

Installed software

MediaWiki 1.12.0 
PHP 5.2.5 (apache2handler) 
MySQL 5.0.51a 

Installed extensions

CategoryTree (Version 2008-02-04) 

Can anyone help me out. pls.

Just saw something similar. Make sure the categories have category pages created, then Category Tree can see them. Using Media Wiki 1.14.0 and trunk version Category Tree.

FIXED: [+] in Category Tree stopped working with installation of V1.13.4[edit]

I use the Category Tree in the sidebar, and with an upgrade to the latest version, now, the [+] buttons no longer work. Also on category pages this feature has stopped working. Any ideas? Applicationswhisperer 23:21, 7 February 2009 (UTC)Reply

I found that I had set the permissions to the /extensions folder to 744 instead of 755. Now it's set properly and all is well.

Applicationswhisperer 18:14, 9 February 2009 (UTC)Reply

No Responses[edit]

Take a look at the subjects added so far this year. Many subjects but no responses. Does anyone monitor this page to help people using this extension? Please respond. (My question is above.) --Robinson Weijman 12:41, 10 February 2009 (UTC)Reply

Examples of class, style, id, etc[edit]

Examples of class, style, id would be grand. 69.138.163.138 17:10, 16 February 2009 (UTC)Reply

Second that. I tried to create a smaller font for my Portal, otherwise it would be long (because depth=2) Thanks. Bennylin 09:37, 9 April 2010 (UTC)Reply
Strike that:
Category(3 C, 4 P)
Category hooks(6 P)
Category extensions(2 C, 22 P, 1 F)
Hurrah. Bennylin 09:42, 9 April 2010 (UTC)Reply

parameter DEPTH[edit]

Depth requires only 1 number, but the default is shown as "1,0". A description would be nice, rather than our having to experiment. 69.106.246.15 19:30, 20 February 2009 (UTC)Reply

The depth is just 1 number. The description did read: "Default is 1, 0 means only the root node." I changed to remove the confusion - "Default is 1. 0 means only the root node." GarethLewis 05:11, 21 January 2010 (UTC)Reply

Category Page Trees only show subcategories, not pages[edit]

It took me a while to find $wgCategoryTreeCategoryPageOptions because it's not so obvious that this is the needed option. I searched google and found an old talk page for this extension which showed a few hacks to fix it. Anyways I finally did:

$wgCategoryTreeCategoryPageOptions['mode'] = 'all';

--85.250.59.208 09:41, 24 February 2009 (UTC)Reply

I also added the following which worked - sort of:

$wgCategoryTreeDefaultOptions['mode'] = 'all';

For some reason, though, this has no effect on the category tree that displays in the Sidebar.

What are MediaWiki.org's Settings? How to setup Category count and Page count in Tree View ie: (2 C, 10 P)?[edit]

What is the default setup in the MediaWiki.org LocalSettings.php for CategoryTree? I've tried about 12 different settings in my wiki and nothing behaves the same as this site, like on this MediaWiki.org page: Category:Top_level

I can't figure out how to configure two things:

  1. How to make category page display the statistics like: (2 C, 10 P) for 2 categories and 10 pages.
  2. My wiki also only shows [+] next to top level sub-categories, but not in secondary sub-categories.

Where is the documentation to show how to make these functions work with examples?

173.54.95.59 17:39, 10 March 2009 (UTC)Reply

About 1. thing: You need to edit follwing article in your wiki: "MediaWiki:categorytree-member-num". You can do this if you put this article name into your search field and push "Go". If do the same on this wiki, or any other Wiki you can copy the setting from there into your own wiki. When including the category tree into a page you need to add the "showcount" option. Hope it helps. Elch71 07:23, 15 April 2009 (UTC)Reply

Missing [+] signs[edit]

Got an odd error here, have recently upgraded to MW 1.14.0, I copied our existing virtual domain to a new one, did the upgrade - just being cautious now, and all works just fine. Rename the domain to the one we normally use - and whilst the Category tree loads just fine - I get no [+] signs at all - either in the sidebar or by calling the category tree for example in the Main_page. The list of categories is there, no errors are to be found the Apache log for missing images and so on. Anyone any ideas?

thanks Nibb 16:13, 25 March 2009 (UTC)Reply

Just fixed this for our installation. Looks like maintainers try to enable display of the [+] via javascript only and changed the default to display: none. I went into CategoryTreeFunctions.php and reset the linkattr to display: inline and after clearing browser cache, voila it now works as expected.

665c665
<                       $linkattr['style'] = 'display: inline;'; // Unhidden by JS
---
>                       $linkattr['style'] = 'display: none;'; // Unhidden by JS

72.166.192.10 17:31, 27 April 2009 (UTC)Reply

Dude, thats excellent and it worked perfectly, thanks for sharing!!Nibb 14:59, 8 June 2009 (UTC)Reply
Great, 10x! Khitrenovich 20:06, 20 June 2009 (UTC)Reply
A big thank you from my side as well ! 157.193.192.64 16:42, 2 August 2010 (UTC)Reply

Keep nodes expanded[edit]

How can I keep the nodes on a category page expanded by default? Can I control the depth, too?

Object expected[edit]

Hi, I've installed CategoryTree and it works till I wanna click the "expand node"=> an error occurs at the following line with errot exception: "object expected in line(following) character 48(position of keyword "style"):

<div class="CategoryTreeChildren" style="display:block"><div class="CategoryTreeSection"> <div class="CategoryTreeItem"><span class="CategoryTreeBullet"><span class="CategoryTreeToggle" onclick="if (this.href)this.href='javascript:void(0)'; categoryTreeExpandNode('TestA', {"mode":0,"hideprefix":20,"showcount":false,"namespaces":false},this); " title="expand">[<b>+</b>]</span> </span><a class="CategoryTreeLabel CategoryTreeLabelNs14 CategoryTreeLabelCategory"' href="/wiki/index.php/Kategorie:TestA">TestA</a></div>


in addition theres an error at the same page in line 7

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" dir="ltr">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta http-equiv="Content-Style-Type" content="text/css" />

<meta name="generator" content="MediaWiki 1.14.0" />

<meta name="keywords" content="Hauptseite,Haupt,TestA,TestC" />

<link rel="stylesheet" type="text/css" href="c:/xampp/htdocs/wikic:/xampp/htdocs/wiki/extensions/CategoryTree/CategoryTree.css?4" />

why is the href-link named with "CategoryTree.css?4 ?

can anybody help me please? Thanks in advance

Freezone 10:15, 06 April 2009 (UTC)Reply

Same error when clicking on the expand "[+]" button - Object required - CategoryTree.js - Line 32 Char 7.
Line 32 is " div.style.display= 'block';"
Error only occurs if the category list is in a sub-page. If in a normal page, it works OK.
MediaWiki 1.15.1
GarethLewis 05:17, 21 January 2010 (UTC)Reply

FIXED: mediawiki 1.14.0 upgrade and can't get past first level of the hierarchy[edit]

It used to be when there was an inline <categorytree> tag or when viewing the category page itself, then it would give you the + signs on all the categories and you could keep going deeper and deeper into the structure, for instance you could click the plus sign again to show the pages under the subcategories or more subcategories under a subcategory. We have not changed any settings at all on the wiki except upgrading to 1.14.0 and now we can only expand the first level. It doesn't work on the category page or on the inline tag. We can only see the first level of pages and subcategories and cannot go any farther down into it, there are no more + signs to go any deeper. I guess it looks like nobody is monitoring this page but if someone has an answer can you please post it? We would like this to work properly again. Thanks



yeah so does anybody answers this page ever please?

yeah we need an answer on this too? hello?

july/09: me too :(

Known bug, Source code for fixed CategoryTree.js (rev 51817)

redeclare function?[edit]

Getting this on a wiki i run. i've have changed the code at all. does anyone have this same problem? does anyone have a solution? please?

Fatal error: Cannot redeclare efcategorytree() (previously declared in $IP/extensions/CategoryTree/CategoryTree.php:151) in $IP/extensions/CategoryTree/CategoryTree.php on line 197. Bud0011 08:35, 15 June 2009 (UTC)Reply

Display Sortkey[edit]

Joolee 10:16, 16 June 2009 (UTC):Reply
I've long had the wish to define the page / category name myself when printing a Tree. I've made a couple of changes to my CategoryTree code (SVN Revision 51955) to display the sortkey.

CategoryTreeFunctions.php Line: ~466
 		$sql = "SELECT cat.page_namespace, cat.page_title,
 				cl_to, cl_from''', cl_sortkey'''
 					  $transFields
 					  $countFields
 				FROM $page as cat
 				$ctJoin $categorylinks ON $ctJoinCond
 				$transJoin
 				$countJoin
 				WHERE $ctWhere
 				$nsmatch
 				"./*AND cat.page_is_redirect = 0*/"
 				$transWhere
 				ORDER BY cl_sortkey
 				LIMIT " . (int)$wgCategoryTreeMaxChildren;
CategoryTreeFunctions.php Line: ~503
 			$s = $this->renderNodeInfo( $t, $cat, $depth-1, false''', $row->cl_sortkey''');
CategoryTreeFunctions.php Line: ~590
 	function renderNodeInfo( $title, $cat, $children = 0, $loadchildren = false''', $sortkey = NULL''' ) {
CategoryTreeFunctions.php Line: ~621 Insert the code
 		'''if( $sortkey != NULL ) {'''
 		'''	$label = $sortkey;'''
 		'''}'''
CategoryPageSubclass.php Line: ~46
 		$this->children[] = $tree->renderNodeInfo( $title, $cat, 0, false''', $sortkey ''');

Add in CategoryPageSubclass.php before the last } on the last line
 	'''function addPage( $title, $sortkey, $pageLength, $isRedirect = false ) {'''
 	'''	global $wgContLang;'''
 	'''	$titletext = $wgContLang->convert( $sortkey );'''
 	'''	$this->articles[] = $isRedirect'''
 	'''		? '<span class="redirect-in-category">' . $this->getSkin()->makeKnownLinkObj( $title, $titletext ) . '</span>''''
 	'''		: $this->getSkin()->makeSizeLinkObj( $pageLength, $title, $titletext );'''
 	'''	$this->articles_start_char[] = $wgContLang->convert( $wgContLang->firstChar( $sortkey ) );'''
 	'''}'''

There probably is a better way for doing this but this was what I could come up with, maby someone would like to pick this up and integrate it in CategoryTree as an option?

SelectCategory[edit]

I'm working on a combination of SelectCategory and CategoryTree. I'm trying to find a clean way, letting SelectCategory depend on a patched CategoryTree. Wondering if anyone has been doing the same. Guaka 20:55, 19 June 2009 (UTC)Reply

Child nodes not rendered correctly? (was: CategoryTree => Not supported!)[edit]

Yes I have problem making this extension working properly; I think to post here an help request but I've seen just peoples that answers themselves! Is this extension supported by it's developer??--Fpiraneo 18:32, 23 June 2009 (UTC)Reply

It doesn't look like it... however at this point it might as well be migrated into the core wiki functionality, being i see it used so often. Bud0011 19:13, 23 June 2009 (UTC)Reply
Bud, At first look inside the code it seem that there is lot of "TODO" labels about error handling and some code commented out (without any indication about).


Going straight to my problem, I met a rendering issue of the three: I have in my category plan:

Root->Cat00->Cat01->Cat02->Cat03->Cat04

When the tree is first displayed it displays Root->Cat00 with the "+" on the left; clicking on "+" it just shows the "Cat01" without the "+", compelling me to click on Cat01 where another tree of two childes is displayed (Cat01->Cat02) and stops again.
I'm pretty sure no error on category is presents because if I setup the depth property into the tag (see below) to higher value all the tree is shown correctly but open; I don't want the tree open but correctly browsable in all It's categories.


My function call: <categorytree mode=CT_MODE_ALL depth=1 TreeMaxDepth=10>Categorie</categorytree>


I'm pretty sure I have to play with parameters but which one it's not so clear.--Fpiraneo 09:45, 24 June 2009 (UTC)Reply
How soon do you need this? i might be able to do some serious work on it, when the summer semester is done. Bud0011 23:06, 24 June 2009 (UTC)Reply
Hi Bud, thank you for your answer; I'm just looking for the same behaviour of the demo on the documentation page of this extension (the tree on the right of the page), nothing more, nothing less; I think that all the job is already done and the problem is just my configuration; the point is that with the published documentation I cannot realise what is wrong. Answering your question, the answer is: "Very often!" :-) --Fpiraneo 07:24, 25 June 2009 (UTC)Reply
Fpiraneo, I found the fix to this issue: Source code for fixed CategoryTree.js (rev 51817). Was bugging me for a couple weeks. Sigh. -- Anonymous July 8/09

[+] functions on every Category page, why?[edit]

well I was wondering (after installing the extension) why this extension is visible on every category page? For example: Wiki Link

Is there a way to disable the function only on category pages?

namespaces="0" didn't work for me[edit]

namespaces="0" didn't work for me (but namespaces="-" did ). -Jlerner 14:57, 27 June 2009 (UTC)Reply

none of these works for me. "0" shows all namespaces, "-" shows nothing? Mitjad 23:29, 13 December 2009 (UTC)Reply

efCategoryTreeAjaxWrapper returned no data[edit]

Extension worked fine for more than a year, but without any change of installation (MediaWiki or extension) the Special page (Special:CategoryTree) returns at one (and only one) node when trying to extend with the + link:

500 Internal Error:
Internal Error
efCategoryTreeAjaxWrapper returned no data

The configuration is:

  • MediaWiki: 1.10.1
  • PHP: 5.1.2 (apache2handler)
  • MySQL: 5.0.26
  • Revision 52685

Thanks in advance for any help. --ThT 12:15, 2 July 2009 (UTC)Reply

Hi
I encountered the same problem.
I may have found a patch
Open CategoryTreeFunctions.php, method makeTitle (at the bottom), change :
strval($title) !==''
by
strval($title) == ''
It should now work.
Thibault Taillandier (talk) 10:40, 11 December 2012 (UTC)Reply

tree of category on another MW instance?[edit]

Is it possible to display a tree on Wikipedia of a category on wikimedia commons? Specifically, I want to display the tree of Commons:Category:Structural_Classification_of_Proteins_(SCOP) on Wikipedia:Portal:Gene Wiki. Thoughts? Cheers, AndrewGNF 16:30, 16 July 2009 (UTC)Reply

Hide paths for subpages[edit]

Two simple changes will enable you to hide the Subpage paths ('root/Pagename' displays 'Pagename')

Line 622 in CategoryTreeFunctions.php
if ($this->getOption('hidepath')) $label = basename($label);
Line 79 in CategoryTree.php
$wgCategoryTreeDefaultOptions['hidepath'] = false; # false means "don't hidepath"

--Frantik 13:59, 17 July 2009 (UTC)Reply

"What links here", "orphaned pages" not working[edit]

"What links here" doesn't show pages that link using categorytree tag. That means "special/orphaned pages" doesn't work too. Exe 21:15, 17 July 2009 (UTC)Reply

Links not functioning[edit]

I'm flummoxed. I have two instances, a lab and a production, of MW 1.14.0. The production instance was configured by copying the lab over. All works well except the CategoryTree extension. In Production, the [+] link doesn't show up at all. When I try the fix from 72.166.192.10 17:31, 27 April 2009 (UTC) in [[#Missing [+] signs]], I get the plus signs but they don't do anything (and they show up on every category, with or without sub-categories).

The source for example pages shows the same html on each with the exception of style="display: inline;" on Production with the fix in place. Clicking on the plus does nothing.

I have compared LocalSettings.php and checked my .css and .js for all MediaWiki NS and there are no relevant differences. The only difference I see at all is the PHP and MySQL versions are slightly (5.2.0-8+etch13 lab PHP versus 5.2.0 Production and 5.0.32-Debian_7etch8-log lab MySQL versus 5.0.33-log Production) but the pages are rendering the same.

I'm guessing I'm missing a style or Ajax module somewhere but haven't found it.

TIA for any help. - Eckster 13:41, 20 July 2009 (UTC)Reply

Hi Eckster - I have this as well (MW 1.15.4) - did you solve it? --Robinson Weijman 09:25, 27 July 2010 (UTC)Reply

Categorytree-parents[edit]

This message needs an argument. CategoryTreePage.php needs to be reworked to pass the number of parents found as that argument. This would allow the message to use PLURAL: to adjust itself accordingly. Urhixidur 13:43, 23 July 2009 (UTC)Reply

Categorytree-member-num et al.[edit]

The following messages appear in CategoryTreeFunctions.php but are omitted from the $messages array in CategoryTree.i18n.php. They need to be added so they will show up on translatewiki.net:

  • categorytree-collapse-bullet
  • categorytree-empty-bullet
  • categorytree-expand-bullet
  • categorytree-member-num
  • categorytree-page-bullet

Urhixidur 14:05, 23 July 2009 (UTC)Reply

No Screenshot for this extension?[edit]

Might be nice to have one, even if it's quite obvious how it'll look.

Intersection view?[edit]

Hi, is it possible to make CategoryTree show all pages in the intersection of two categories, i.e. only show pages that belong both to category A and category B?

Error : Magic word 'categorytree' not found[edit]

On installation the latest version, am getting the below error.

Magic word 'categorytree' not found

Backtrace:

  1. 0 /home/ahmedaba/public_html/wiki/includes/MagicWord.php(244): Language->getMagic(Object(MagicWord))
  2. 1 /home/ahmedaba/public_html/wiki/includes/MagicWord.php(197): MagicWord->load('categorytree')
  3. 2 /home/ahmedaba/public_html/wiki/includes/parser/Parser.php(4034): MagicWord::get('categorytree')
  4. 3 /home/ahmedaba/public_html/wiki/extensions/CategoryTree/CategoryTree.php(207): Parser->setFunctionHook('categorytree', 'efCategoryTreeP...')
  5. 4 /home/ahmedaba/public_html/wiki/includes/Hooks.php(117): efCategoryTreeSetHooks(Object(Parser))
  6. 5 /home/ahmedaba/public_html/wiki/includes/parser/Parser.php(178): wfRunHooks()
  7. 6 /home/ahmedaba/public_html/wiki/includes/parser/Parser.php(190): Parser->firstCallInit('efCategoryTreeS...', Array)
  8. 7 /home/ahmedaba/public_html/wiki/includes/parser/Parser.php(312): Parser->clearState('ParserFirstCall...', Array)
  9. 8 /home/ahmedaba/public_html/wiki/includes/StubObject.php(58): Parser->parse()
  10. 9 /home/ahmedaba/public_html/wiki/includes/StubObject.php(76): StubObject->_call()
  11. 10 [internal function]: StubObject->__call('A blend of Hind...', Object(Title), Object(ParserOptions), true, true, 25)
  12. 11 /home/ahmedaba/public_html/wiki/includes/Article.php(3557): StubObject->parse(Array, Array)
  13. 12 /home/ahmedaba/public_html/wiki/includes/Article.php(979): Article->outputWikiText('parse', Array)
  14. 13 /home/ahmedaba/public_html/wiki/includes/Wiki.php(450): Article->view('parse', Array)
  15. 14 /home/ahmedaba/public_html/wiki/includes/Wiki.php(63): MediaWiki->performAction('A blend of Hind...', Object(Title), Object(ParserOptions), true, true, 25)
  16. 15 /home/ahmedaba/public_html/wiki/index.php(116): MediaWiki->initialize('A blend of Hind...')
  17. 16 {main}

No pages or categories load

—The preceding unsigned comment was added by 59.95.220.35 (talkcontribs) 12:49, 23 August 2009. Please sign your posts with ~~~~!

I'm having the same error on my wiki. If anyone knows any solutions I'd be grateful. -- DavidSev 00:25, 4 September 2009 (UTC)Reply
For anyone else looking for the solution, svn HEAD doesn't work with older mediawiki's, r53180 works great. — DavidSev (talk) 20:17, 7 September 2009 (UTC)Reply
There is a report of this bug on bugzilla and the suggested fix, "Use a categorytree version suitable for your MediaWiki version" works for me — I'm using the REL1_15 branch with the latest stable release — ChrisC 12:27, 14 September 2009 (UTC)Reply
The REL1_15 branch works for me in my 1.15 mediawiki, thank you very much!! --Laquestianne 11:21, 5 March 2010 (UTC)Reply

Open up Sub-Subcategories on a Category Page[edit]

Hello,

I'm using Mediawiki 1.15.0 with the latest stable version of CategoryTree.

I've searched for a solution on google and in the history
of this talk but couldn't find an answer.

The problem is, that we want the ability to open also the
subcategories of the subcategories shown on the category page.
I managed to show the the pages in the subcategorie part. But I don't
get the plus for opening the sub subcategories like on
Category:Extensions
and then on the Extension by integration target

I would be very pleased if someone could help me.

Greets,

Tom

--Hi Tom, I think this is the same problem as 1.10 "Can't get past first level of hierarchy" listed above. Source code for fixed CategoryTree.js (rev 51817)

Expand tree to current page[edit]

Would it be possible to modify the extension to show all levels up to the current page (if it is contained in the tree). We have an encyclopedia of a technical system divided into systems, subsystems, subsubsystems, etc. and we display the CategoryTree on each of the pages to allow users easy navigation and orientation. It would be great to have the tree expanded to the current page so that the users can get a quick impression about the location of the current article in the overall context. Maybe the current page could also be printed in bold.

- Stefan

Missing [+] signs again[edit]

In the last few days the category extension has been missing [+] links in en.wikipedia.org and commons.wikimeda.org. The symptoms are as described in "Missing [+] signs" above. There are no recent bugs listed in bugzilla for this problem, does anyone know the status? -84user 02:03, 25 November 2009 (UTC)Reply

False alarm, I had Javascript disabled. -84user 02:53, 25 November 2009 (UTC)Reply

Pages in categories[edit]

I have installed and setup CategoryTree. MediaWiki 1.15. Trouble: CategoryTree shows pages only from 1 level of tree. Pages from the 2 and more level are not visible!! (mode=pages)!! I want to see all categories and all pages of the site! Help! --Андрей Краснобаев 20:11, 28 November 2009 (UTC)Reply

---I'm facing the same problem, my tree just show the pages of the first cat. level. I've tryied all LocalSettings parameters, but no one give me a positive result, I do need a help over here. --DiRaOL 18:06, 06 December 2009 (UTC-3)

---Same problem here... Any idea in how to add more levels than 3 in the tree?

--- I found the fix here... Thanks whom did that: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/CategoryTree/CategoryTree.js?view=markup&pathrev=51817

--- Hey thanks - It worked for me. Simply replace the CategoryTree.js file with this new one. --Givirus 16:18, 29 September 2010 (UTC)Reply