Parse error: Unexpected T_FUNCTION

The error:

Parse error: syntax error, unexpected T_FUNCTION in/PATH_TO_WORDPRESS/wp-content/plugins/PATH_TO/file.php on line 41

Typically, we see these types of errors when your server is running an older version of php and certain versions of our plugins.

Update PHP to Current Version

You can check the version of php your webhost has installed on your server by adding a phpinfo file as described in this article or by contacting your webhost support team for assistance. If you confirm the server is running a version earlier than php 5.3, upgrading to a current php version will immediately resolve the issue.

Update Plugin to Current Version

As WordPress has a minimum requirement of PHP 5.2, we accidentally used a feature not available in PHP 5.2. This usually is reported and fixed in an update. Please manually update your plugin to the current version to see if the issue goes away. An update guide is available for the free plugins and the premium plugins. If you are running the current version, please report the issue in the appropriate channel.