Page MenuHomePhabricator

AjaxResponse error
Closed, InvalidPublic

Description

Author: btaylor

Description:
I have a 1.8 install of mediawiki. I have following the install docs for
CategoryTree and all seems to be working like the Special Page for CategoryTree.

Main issue I am seeing is that when I place my tag in a new or currently used
page like this.

<category>documents</category>

I get the following

[-]documents

[+]IT Documents

now when I try to click the + I don't see anything other than "loading"

when I tail -f logs/httpd/error.log I see the following

PHP Fatal error: Class 'AjaxResponse' not found in
/var/www/html/wiki/extensions/CategoryTree/CategoryTreeFunctions.php on line 92

the above line in the php file is.

this is the first line - $response = new AjaxResponse();

the below is what comes right after the above line in the php file

if ( $response->checkLastModified( $touched ) ) {
        return $response;
}

Version: unspecified
Severity: normal
OS: Linux
Platform: PC

Details

Reference
bz8745

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:30 PM
bzimport set Reference to bz8745.
bzimport added a subscriber: Unknown Object (MLST).

AjaxResponse was not autoloaded before r16815 but
1.8 was branched from the later r16913 anyway.

btaylor wrote:

Ok, so then I need the r16813 release of CategoryTree?

It is always a good idea to get the latest extension version.
The issue in comment #1 was only for 1.8alpha. It should not
occur with 1.8.

btaylor wrote:

when I mentioned 1.8, I was referring to Mediawiki version not the Category
Version. The Version of Category I have is the main one from the extensions list
on mediawiki.org so whatever version that is, that's what I'm using.

Upgrade MediaWiki to a current release version which includes the relevant fix.