Hi Courtney,
I had this problem too.. in the docs I I mention that I had to do patch adding an include statement to the old Category.php file.
http://www.mediawiki.org/wiki/Extension:SplitCategoryPage#Installation
This seems to be a problem with getting class autoloading to work properly. I may have not registered something properly... I don't understand the autoload well enough to figure out what to change.
We're working on a version that uses the AJAX category tree from CategoryTree. "We" means Daniel Renfro, who is working on the EcoliWiki project with me. To see the test version of that, check out:
http://gowiki.tamu.edu/dev/index.php/Category:GO:0008150_%21_biological_proc...
Note that unlike original CategoryTree, it tells you how many children and disables the + if there aren't any. Feedback would be useful for getting it to the point where we can release the code. One kind of feedback that would be especially useful: what should we name the extension. SplitCategoryPage is really a pretty awful and uninformative name, which probably meant that some people who could use it never found it. The page isn't split, after all, it's the queries. But CategoryPageThatShowsAllSubcategoriesAndCounts.php seemed kinda long, and so does SlowerButMoreCompleteCategoryPage.php.
Jim Hu
On Mar 4, 2008, at 9:06 AM, Christensen, Courtney wrote:
Hi All,
I'm trying to write a hook extension using CategoryPageView. We want the category page customized for certain categories. I'm using Jim Hu's SplitCategoryPage extension as sort of a model. However, when I include my extension I get a blank screen and when I check my logs I get the following error:
[04-Mar-2008 09:22:40] PHP Fatal error: Class 'Article' not found in C:\wiki\includes\CategoryPage.php on line 15
Is there something I should consider about the order of includes?
We're using: MW 1.9.2 PHP 5 MySQL 5 IIS (I know we need to upgrade, but we need to find all the places we have changed core code first.)
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054