Just ran into this myself. Server was running PHP 5.2 which doesn’t support closures. Commented this function out and it worked fine. Then updated server to PHP 5.4, uncommented and reloaded; this resolved the issue. See more here: https://stackoverflow.com/questions/4949573/parse-error-syntax-error-unexpected-t-function-line-10-help