Thread:Extension talk:Widgets/Parse error: syntax error, unexpected T FUNCTION on WidgetRenderer.php on line 142/reply

I'm pretty sure it's because you're using PHP 5.2, an old version (from 2006) that doesn't fully support preg_replace_callback; you should upgrade if possible.