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

---

# Parse error: syntax error, unexpected T_FUNCTION

 *  Resolved [thejameswilliam](https://wordpress.org/support/users/thejameswilliam/)
 * (@thejameswilliam)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-13/)
 * This plugin is a perfect solution for my site! But I am getting this error when
   installing:
 * Plugin could not be activated because it triggered a fatal error.
    Parse error:
   syntax error, unexpected T_FUNCTION in /home/*****/wp-content/plugins/gravity-
   forms-post-updates/gravityforms-update-post.php on line 920
 * I’ve done the usual check of deactivating all my plugins (except one, Advanced
   Custom Fields, as its required for my site to load). Could ACF plugin have a 
   conflict?
 * Thanks for your help!
 * [https://wordpress.org/plugins/gravity-forms-post-updates/](https://wordpress.org/plugins/gravity-forms-post-updates/)

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

 *  Plugin Author [Jupitercow](https://wordpress.org/support/users/jcow/)
 * (@jcow)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-13/#post-5136060)
 * You will need to update your version PHP. If that is not possible, and you don’t
   need to allow list fields to be updated, you can delete lines 906 – 922 or just
   920 even.
 * You will need to keep deleting that each time you upgrade. I have tried to replace
   that anonymous function, but I can find a way around it, and it requires PHP 
   5.3 or greater.
 * It is ideal to keep PHP up-to-date though.
 *  Thread Starter [thejameswilliam](https://wordpress.org/support/users/thejameswilliam/)
 * (@thejameswilliam)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-13/#post-5136117)
 * Thanks for the reply!
    Yeah, I continued my research and found that. Curious 
   why godaddy isnt using at least 5.3 by default. All upgraded now!

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/gravity-forms-post-updates/assets/icon-256x256.jpg?rev=1180041)
 * [Gravity Forms: Post Updates](https://wordpress.org/plugins/gravity-forms-post-updates/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-post-updates/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-post-updates/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-post-updates/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-post-updates/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-post-updates/reviews/)

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