Title: Parse error: syntax error, unexpected T_FUNCTION
Last modified: October 19, 2016

---

# Parse error: syntax error, unexpected T_FUNCTION

 *  Resolved [justo8484](https://wordpress.org/support/users/justo8484/)
 * (@justo8484)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-27/)
 * When trying to install SinglePlatform running WP 4.6.1 and the TwentyFifteen 
   default theme, I’m presented with the error:
 * `Parse error: syntax error, unexpected T_FUNCTION in /home/SITE_NAME/public_html/
   beta/wp-content/plugins/singleplatform/singleplatform.php on line 107`
 * The remote server is running php 5.2. I’ve tested this locally with MAMP running
   php 5.5 and have had no issues installing the plugin. Maybe answering my own 
   question here, but is it a fair assumption that this is just an issue with php
   versions, as I’ve seen discussed elsewhere regarding other plugins encountering
   the same or similar errors? My host has php 5.4 available to me, but I’d like
   to verify that that will in fact fix my issue before just flipping the switch.
   They also have 5.6 beta, but I’m a bit hesitant to run a beta version in production.
   Any help or suggestions are much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Eric Kuznacic](https://wordpress.org/support/users/kuznacic/)
 * (@kuznacic)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-27/#post-8355062)
 * My best guess is that you are correct in your assumption about the PHP version
   issue.
 * FWIW you should really upgrade to 5.6 or later, as that is what WP recommends:
   [WordPress requirements](https://wordpress.org/about/requirements/)
 *  Plugin Contributor [crussellwalker](https://wordpress.org/support/users/crussellwalker/)
 * (@crussellwalker)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-27/#post-8411378)
 * Hi [@justo8484](https://wordpress.org/support/users/justo8484/) – did you get
   the information you needed?
    Has an upgrade solved your issue?
 * Thanks in advance for your reply.
    -Chris
 *  Thread Starter [justo8484](https://wordpress.org/support/users/justo8484/)
 * (@justo8484)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-27/#post-8417292)
 * [@crussellwalker](https://wordpress.org/support/users/crussellwalker/) I actually
   ended up just embedding the SinglePlatform page directly into the site. It’s 
   an overhaul of an existing site, so I’m hesitant to bump the version of php on
   the webserver for a site that’s currently in production. I’ll give it a shot 
   once I launch the new version, when I can be sure I won’t have issues with the
   theme/WP version running a different version of php.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Parse error: syntax error, unexpected T_FUNCTION’ is closed to new replies.

 * ![](https://ps.w.org/singleplatform/assets/icon-256x256.png?rev=1462368)
 * [SinglePlatform](https://wordpress.org/plugins/singleplatform/)
 * [Support Threads](https://wordpress.org/support/plugin/singleplatform/)
 * [Active Topics](https://wordpress.org/support/plugin/singleplatform/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/singleplatform/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/singleplatform/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 3 participants
 * Last reply from: [justo8484](https://wordpress.org/support/users/justo8484/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-27/#post-8417292)
 * Status: resolved