Topic on Extension talk:CategoryTree

68.189.49.12 (talkcontribs)

I try to view a tree of categories, nothing works. I have followed all the instructions; I can go to Special:CategoryTree but when I enter a category name, it doesn't exist.

Pages are created for all categories.

Help... Any help...

I'm hosted on HostGator using these versions: MediaWiki v1.20.0 PHP v5.3.15 (cgi-fcgi) MySQL v5.5.23-55

I downloaded CategoryTree just today as instructed.

Axanon (talkcontribs)

I have the same problem with CategoryTree (ac61645). I'm running Mediawiki 1.20.1, PHP 5.4.9, MySQL 5.5.28. In addition to Special:CategoryTree not working, I cannot use the <categorytree> tag either. Axanon (talk) 21:49, 3 December 2012 (UTC)

Axanon (talkcontribs)

I just realized that this extension is not currently supported on Mediawiki versions > 1.18 (yet?) Edit: This snapshot appears to be working 75d974a. It is the same version used by this wiki. Axanon (talk) 22:57, 3 December 2012 (UTC)

81.92.239.5 (talkcontribs)

I am using Strict Standards: Declaration of CategoryTreeCategoryViewer::addSubcategoryObject() should be compatible with that of CategoryViewer::addSubcategoryObject() in C:\PlayNet\Wiki4Playout\extensions\CategoryTree\CategoryPageSubclass.php on line 14 Catchable fatal error: Argument 2 passed to CategoryViewer::__construct() must implement interface IContextSource, null given, called in C:\PlayNet\Wiki4Playout\extensions\CategoryTree\CategoryPageSubclass.php on line 9 and defined in C:\PlayNet\Wiki4Playout\includes\CategoryViewer.php on line 78

Banaticus (talkcontribs)

Darn, so it was sort of a waste of time for me to install it then? I just came here looking for help to get it working, but if it's not working for more recent Mediawiki installations, then there's no real point in continuing with it.

81.92.239.5 (talkcontribs)

I get version from July 2010 and that works almost! In order to makes click on categ and sub categ working I add on CategoryPageSubclass.php on class CategoryTreeCategoryPage in function closeShowCategory a test for on both variables $from and $until then I let call of new CategoryTreeCategoryViewer. but it lets destruction of css style and sidebar is not working also anymore

2600:1010:B11D:5C3B:9856:A19B:66B6:DB14 (talkcontribs)

I'm not sure I understand what you did. I don't need sidebar or anything like that working, I'd like to implement your fix. Could you post a little more detail on it or perhaps the modified file (or a link to it)?

Jm.lefevre (talkcontribs)

I also get the version 75d974a and it work in any page with mediawiki 1.20.2, but not into sidebar. I've tries to debug it, but didn't find the problem. Anyone have an idea where to look at ?

Daniel K. Schneider (talkcontribs)

Same here:

  • the default current (Dec 11 2012 snapshot) doesn't work at all
  • Version 75d974a works, but not in the sidebar.

MediaWiki 1.20.2 PHP 5.3.2-1ubuntu4.18 (apache2handler) MySQL 5.1.66-0ubuntu0.10.04.1

However:

  • An old version I used with 1.18.x version does work :) But I can't figure out the version number..
Jm.lefevre (talkcontribs)

Can you post it somewhere ... maybe a diff will make me find how to make it work with sidebar

Tiggerjay (talkcontribs)

I am new to using GIT and older versions, can someone help direct me how to download the older 75d974a version? Thanks

Jm.lefevre (talkcontribs)

You can use the link from Axanon (talk) on the ‎3 décembre 2012 à 22:45 just above. Then click on snapshot link on the opened page

Daniel K. Schneider (talkcontribs)

Working solution fo MediaWiki 1.20 !

Sorry, I didn't follow this thread, therefore I didn't post a diff. Anyhow, today (6 month later) I tried again

Same problem as before. After upgrading the categories would not show in the sidebar. Since there wasn't any code change with respect to this JavaScript "error:categoryTreeLoadChildren is not defined", I played with all sorts of config settings and bingo I found one that works:

# Extension: Categorytree
$wgUseAjax = true;
require_once("{$IP}/extensions/CategoryTree/CategoryTree.php");
$wgCategoryTreeSidebarRoot = "Contents";
$wgCategoryTreeForceHeaders = true;
$wgCategoryTreeSidebarOptions['mode']=CT_MODE_CATEGORIES;
$wgCategoryTreeDynamicTag = false;
$wgCategoryTreeDisableCache = false;
$wgCategoryTreeMaxDepth = array(CT_MODE_PAGES => 2, CT_MODE_ALL => 2, CT_MODE_CATEGORIES => 3);

See http://edutechwiki.unige.ch/en/

BTW this also makes the category tree work with Semantic Forms. My prior config did not !!

http://edutechwiki.unige.ch/mediawiki/index.php?title=Semantic_Form_demo_page&action=formedit

Edga~mediawikiwiki (talkcontribs)

Hi,

I tried your solution which still doesn't work for me. I do not see "categoryTreeLoadChildren is not defined" anymore, but my <categorytree> tag is still not being replaced with the actual tree. However if I go to Special Pages -> Category Tree and put my category name, the preview will show it just fine. What can be the reason?

And it also works if I use this syntax on a page

Category Foo not found
 but it doesn't on sidebar. What could be the reason?

This post was posted by Edga~mediawikiwiki, but signed as Edga.

Daniel K. Schneider (talkcontribs)

Sorry I can't help here since I run MW 1.22 now and the latest GIT code for all extensions. However, the setting above is still the same :)

Reply to "no categories!"