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

---

# Parse error: syntax error, unexpected T_FUNCTION

 *  [borislav663](https://wordpress.org/support/users/borislav663/)
 * (@borislav663)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-30/)
 * Today 19.07.2017 at 23:55 after update the plugin to the last version I have 
   this error:
    Parse error: syntax error, unexpected T_FUNCTION in /wp-content/
   plugins/wp-super-cache/rest/load.php on line 144 How can I fix the problem?

Viewing 4 replies - 1 through 4 (of 4 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-30/#post-9334951)
 * What version of WordPress are you using? Please upgrade to 4.8 as that should
   fix the problem.
 *  [mjswart](https://wordpress.org/support/users/mjswart/)
 * (@mjswart)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-30/#post-9334976)
 * Hi Donncha,
 * I posted this on another thread, but I wanted to include it here.
 * I think that those who administer updates via the update-core.php page find suddenly
   that they can no longer access _any_ page at all including admin pages. And now
   have to troubleshoot things via FTP or something. There are many many admins 
   who know how to do one but not the other. (I’m one of them. My site was down 
   for nearly an hour)
 * It should not be possible to upgrade the WPSC plugin when the WP prerequisite
   is not present. I think you’re going to have a busy time answering these forum
   topics until you pull 1.5.0 and find a way to roll it out safely.
 *  [tokkonopapa](https://wordpress.org/support/users/tokkonopapa/)
 * (@tokkonopapa)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-30/#post-9335005)
 * Hi,
 * WPCS 1.5.0 seems to require PHP 5.3.0 and up because it uses an anonymous function
   and __DIR__ magic constant.
 * At least, it’s not compatible with “Requires WordPress Version: 3.0”.
 *  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-30/#post-9335882)
 * This has been fixed in 1.5.1. Thanks for the feedback.

Viewing 4 replies - 1 through 4 (of 4 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/)

 * 4 replies
 * 4 participants
 * Last reply from: [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-30/#post-9335882)
 * Status: not resolved