Title: Parse error: syntax error, unexpected T_FUNCTION
Last modified: July 21, 2017

---

# Parse error: syntax error, unexpected T_FUNCTION

 *  Resolved [adhaxvp](https://wordpress.org/support/users/adhaxvp/)
 * (@adhaxvp)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-31/)
 * Hi,
 * I need help in solving this problem. Suddenly, when I opened my website, the 
   following message was displayed.
 * Parse error: syntax error, unexpected T_FUNCTION in */wp-content/plugins/wp-super-
   cache/rest/load.php on line 144
 * Is this an error from the plugin itself? how do I fix this?
 * Thank you.

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

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-31/#post-9339205)
 * Upgrade to version 1.5.1 which has fixed this problem. If you can’t access your
   site to upgrade, then download it from the plugin homepage, unzip it and copy
   the files in wp-super-cache/rest/ into the same directory on your web server.
   It’ll probably be wp-content/plugins/wp-super-cache/rest/.
 * You’re running an old version of PHP which is why this error is showing up. WordPress
   supports this version of PHP but your site will run faster if you can upgrade
   to PHP 7.
 *  Thread Starter [adhaxvp](https://wordpress.org/support/users/adhaxvp/)
 * (@adhaxvp)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-31/#post-9339250)
 * Hi,
 * Thank you very much for the solution.
 * I will consider to upgrade to PHP 7 as suggested too.

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

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

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [T_FUNCTION](https://wordpress.org/support/topic-tag/t_function/)

 * 2 replies
 * 2 participants
 * Last reply from: [adhaxvp](https://wordpress.org/support/users/adhaxvp/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-31/#post-9339250)
 * Status: resolved