Jump to content

Topic on Extension talk:PageInCat/Flow

Peachey88 (Flood) (talkcontribs)

Using MediaWiki 1.17.0 I get a "Fatal error: Class 'RequestContext' not found in /var/www/wiki/extensions/PageInCat/PageInCat_body.php on line 231" with the extension installed whenever I try to preview any edit on any page (doesn't matter if it uses {{#incat: or not). I can still save page edits. Other than that the extension works great.

This post was posted by Peachey88 (Flood), but signed as Ned Scott.

Peachey88 (Flood) (talkcontribs)
Bawolff (talkcontribs)

Honestly none of this really depends on stuff in 1.19. Replacing the line:

$curUser = RequestContext::getMain()->getUser()

with

$curUser = $GLOBALS['wgUser'];

would in all probability make it work (of course I haven't tested that).

Bawolff (talkcontribs)

Or apparently not as its also dependant on wfMsg stuff.

Anyhow, I did some checking. This extension should work with any version of MediaWiki greater than or equal to 1.18. I've updated the doc page accordingly

Reply to "Fatal error"