Title: PHP parse error, unexpected  T_FUNCTION
Last modified: August 31, 2016

---

# PHP parse error, unexpected T_FUNCTION

 *  [maxianna](https://wordpress.org/support/users/maxianna/)
 * (@maxianna)
 * [10 years ago](https://wordpress.org/support/topic/php-parse-error-unexpected-t_function/)
 * Hello,
 * I just uploaded a website ( WooCommerce/Storefront) on my webhost server.The 
   site doesn’t show and I have this error:
 * Parse error: syntax error, unexpected T_FUNCTION in /home/a6518565/public_html/
   wp-content/themes/storefront/inc/customizer/class-storefront-customizer.php on
   line 74.
 * Anyone can help me, please?
 * Thank you.

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [10 years ago](https://wordpress.org/support/topic/php-parse-error-unexpected-t_function/#post-7433345)
 * Try re-uploading that file.
 *  Thread Starter [maxianna](https://wordpress.org/support/users/maxianna/)
 * (@maxianna)
 * [10 years ago](https://wordpress.org/support/topic/php-parse-error-unexpected-t_function/#post-7433407)
 * Thanks for your answer.
 * Unfortunately, after re-uploading the file, the error is still there.
 * Is it something I could change in that file or in wp-config? Or it might be the
   PHP version used by the webhost (5.2.)?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [10 years ago](https://wordpress.org/support/topic/php-parse-error-unexpected-t_function/#post-7433408)
 * That’s entirely possible. PHP 5.2 is quite out of date. Does your host allow 
   you to choose something more modern?
 * You might ask here: [https://wordpress.org/support/theme/storefront](https://wordpress.org/support/theme/storefront)

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

The topic ‘PHP parse error, unexpected T_FUNCTION’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/php-parse-error-unexpected-t_function/#post-7433408)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
