Topic on Extension talk:CategoryTree

CategoryTree broken after updating to 1.21.1 and installing new CategoryTree Snapshot

4
Afinderp (talkcontribs)

I had a mediawiki with version 1.20.3 and just updated to 1.21.1. The update was successful and I was able to restore my database and other extensions.

However CategoryTree was not working after installing new mediawiki version 1.21.1. The Category list populates, but you cannot drill down through the category lists. The category arrows/+ do not display AT ALL, it is just a straight list of categories I could not even try to expand them because there is no option available to do so.
SO I downloaded the new snapshot of category tree for version 1.21.
Installed the extension.
Confirmed LocalSettings are configured for CategoryTree as such:
require_once( "$IP/extensions/CategoryTree/CategoryTree.php" );
$wgUseAjax = true;
and to get it in sidebar:
$wgCategoryTreeSidebarRoot = 'Category:article_name';
$wgCategoryTreeForceHeaders = true;

I have even tried following previous guides and modifying my CategoryTreeFunctions.php (ref: )
from $linkattr['style'] = 'display: none;'; // Unhidden by JS
to
$linkattr['style'] = 'display: inline !important;'; // Unhidden by JS
and tried changing CategoryTree.php (ref:)
from
function efCategoryTreeParserOutput( $outputPage, $parserOutput ) { if ( !empty( $parserOutput->mCategoryTreeTag ) ) { CategoryTree::setHeaders( $outputPage ); } return true;
to
function efCategoryTreeParserOutput( $outputPage, $parserOutput ) { CategoryTree::setHeaders( $outputPage ); } return true;
but making those above changes to CategoryTree.php/CategoryTreeFunction.php causes the whole site to goto a Error 500 page, so I have undone the above two changes, but I am still back to the point where I cannot drill down thru the category tree it only shows the top level categories now. I have even tried running update.php again but still does not resolve the issue. I have tried to find other threads regarding this, but I could not find any. Any help will be greatly appreciated, thanks...

Renamed user G3DXr4qY3n (talkcontribs)

i'm having this same issue. upgrading from 1.19 to 1.23. upgraded mediawiki and database as well as moving from php 5.3 to php 5.6. pulled latest 1.23 code from here.

afinderp were you ever able to resolve this issue? it's pretty sad that no one ever responded to your post.

91.135.167.154 (talkcontribs)

Hi,

as I just ran into the same problem on my installation, please check the /var/log/apache2/[yourwikiname]-error.log

It might be that you get some pcfg_openfile: unable to check htaccess file, ensure it is readable errors. In that case, make sure the permissions for the folders of the extension are set correctly. I was able to overcome my problem by doing a chmod 755 /var/lib/mediawiki/extensions/CategoryTree/modules

You can check if that's your problem by issuing the following command: su – www-data -s /bin/bash -c “cd [replacebyyourextensionpath]/CategoryTree/modules; ls -la”

If that returns a "permission denied" on top of the results, then you have the same problem I had

~~----

Renamed user G3DXr4qY3n (talkcontribs)

so it turns out my issue was PEBCAK. my upgrade script had an error and i was actually pointing to the old 1.19 CatagoryTree code and not the new. once i fixed that and everything was running the new code it worked fine.

sorry it took me so long to report back.

Reply to "CategoryTree broken after updating to 1.21.1 and installing new CategoryTree Snapshot"