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-1/)
 * 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/
   wpcontent/themes/storefront/inc/customizer/class-storefront-customizer.php on
   line 74.
 * 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.)? Unfortunately my webhost doesn’t 
   upgrade the PHP version (at least not for my package). Is it another way to work
   this out?
 * Thank you for your help.

Viewing 1 replies (of 1 total)

 *  [James Koster](https://wordpress.org/support/users/jameskoster/)
 * (@jameskoster)
 * [10 years ago](https://wordpress.org/support/topic/php-parse-error-unexpected-t_function-1/#post-7436637)
 * Hey there,
 * It’s the PHP version. WordPress itself [recommends 5.6](https://wordpress.org/about/requirements/)
   and Storefront requires 5.3.
 * If your host isn’t even prepared to update to the WordPress recommended version
   I would personally switch.

Viewing 1 replies (of 1 total)

The topic ‘PHP parse 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [James Koster](https://wordpress.org/support/users/jameskoster/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/php-parse-error-unexpected-t_function-1/#post-7436637)
 * Status: not resolved