Title: Parse error: syntax error, unexpected T_FUNCTION
Last modified: August 31, 2016

---

# Parse error: syntax error, unexpected T_FUNCTION

 *  Resolved [Carles Chan](https://wordpress.org/support/users/carleschan/)
 * (@carleschan)
 * [10 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-22/)
 * Hi guys,
 * I’m getting this fatal error after updating Storefront from 1.6.1 to 2.0.0. The
   error message is like “Parse error: syntax error, unexpected T_FUNCTION in /home1/
   user/public_html/mysite.com/wp-content/themes/storefront/inc/customizer/class-
   storefront-customizer.php on line 73”. Glad I have a full backup of the site.
   Any solution to fix it please?

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

 *  [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * (@jaycbrf)
 * [10 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-22/#post-7365530)
 * not without seeing the site…
 *  [votion](https://wordpress.org/support/users/votion/)
 * (@votion)
 * [10 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-22/#post-7365561)
 * I am getting the same error. It seems to of started when the site did an automatic
   update on Saturday morning 06.05.16. I presume it was Storefront being updated.
 * Did you find a way to fix it?
 * This was my error message:
    Parse error: syntax error, unexpected T_FUNCTION 
   in /home4/mysite/public_html/wp-content/themes/storefront/inc/customizer/class-
   storefront-customizer.php on line 73
 * many thanks
 * Votion
 *  [James Koster](https://wordpress.org/support/users/jameskoster/)
 * (@jameskoster)
 * [10 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-22/#post-7365562)
 * Hey,
 * I saw this crop up in the beta test. Turned out to be an old version of PHP in
   that case. Please check your version and perhaps get in touch with your host 
   to update it if it’s very old.
 * Cheers
 *  [votion](https://wordpress.org/support/users/votion/)
 * (@votion)
 * [10 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-22/#post-7365563)
 * OK thanks for the prompt response.
    Its running PHP 5.4.24
 * What version does it need to run?
 *  [votion](https://wordpress.org/support/users/votion/)
 * (@votion)
 * [10 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-22/#post-7365576)
 * I updated it to Version 6 and it seems to be working now.
 * Thanks for your help
 *  [kategorgeous](https://wordpress.org/support/users/kategorgeous/)
 * (@kategorgeous)
 * [10 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-22/#post-7365612)
 * Hi – I am also getting this error but it is on a live site on 123-reg hosted 
   server – should I contact 123-reg?
 *  [kategorgeous](https://wordpress.org/support/users/kategorgeous/)
 * (@kategorgeous)
 * [10 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-22/#post-7365613)
 * in the meantime – how do I revert back to the previous version – I need to get
   the site back up – thanks
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [10 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-22/#post-7365616)
 * **[@kategorgeous](https://wordpress.org/support/users/kategorgeous/)**: If you
   require assistance then, as per the [Forum Welcome](https://codex.wordpress.org/Forum_Welcome#Where_To_Post),
   please post your own topic.
 *  [James Koster](https://wordpress.org/support/users/jameskoster/)
 * (@jameskoster)
 * [10 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-22/#post-7365617)
 * [@kategorgeous](https://wordpress.org/support/users/kategorgeous/) old versions
   can be downloaded from [github](https://github.com/woothemes/storefront/releases).
 * Yes, you’ll likely need to contact your host about updating your PHP version.
 *  [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * (@jaycbrf)
 * [10 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-22/#post-7365629)
 * There should be an option in your hosting cpanel to select PHP version
 *  Thread Starter [Carles Chan](https://wordpress.org/support/users/carleschan/)
 * (@carleschan)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-22/#post-7365720)
 * Update Host PHP to 5.6.16, problem resolved. Thanks to jameskoster.

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

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/storefront/4.6.2/screenshot.png)
 * Storefront
 * [Support Threads](https://wordpress.org/support/theme/storefront/)
 * [Active Topics](https://wordpress.org/support/theme/storefront/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/storefront/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/storefront/reviews/)

 * 11 replies
 * 6 participants
 * Last reply from: [Carles Chan](https://wordpress.org/support/users/carleschan/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-22/#post-7365720)
 * Status: resolved