I'm seeing this error with MW 1.21 and UserFunctions 2.4.2:
PHP Fatal error: Call to a member function getNamespace() on a non-object in /usr/share/mediawiki/extensions/UserFunctions/UserFunctions.php on line 69
It looks like what's failing is this:
$cur_ns = RequestContext::getMain()->getTitle()->getNamespace();
Apparently getTitle() is not returning an object.