PHP Parse error: syntax error, unexpected T_FUNCTION in redhen_activity.module on line 608 After migrating from dev to prod on Bluehost when I run update.php I get a 500 error and I get the below error in error in error_log.


  PHP Parse error: syntax error, unexpected T_FUNCTION in
  redhen_activity.module on line 608


This is D7 with the latest update to the Open Outreach Distribution. The odd thing is that my dev site (running as a subdomain) works just fine.
I think you're using PHP 5.2 or earlier, which doesn't support closures. You can find out which version of PHP you're using  phpinfo().

Lindly upgrade to PHP 5.3+, or use create_function, or write a static function and pass it as a callback.