Title: Parse error: syntax error, unexpected T_FUNCTION
Last modified: May 14, 2018

---

# Parse error: syntax error, unexpected T_FUNCTION

 *  [mamunchi](https://wordpress.org/support/users/mamunchi/)
 * (@mamunchi)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-35/)
 * Today I have upgraded TeachPress package to its newest version. Since then, my
   website cannot be accessed and it shows the following error: Parse error: syntax
   error, unexpected T_FUNCTION in /home/calatrav/public_html/auzinger.name/wordpress/
   wp-content/plugins/teachpress/teachpress.php on line 661
 * I wonder if somebody could provide any hint on the reason of the problem and 
   how to solve it? Is it perhaps a bug?
 * Thank you very much in advance for your support (and for the package)
 * Best regards,
    Mamen Ca
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-syntax-error-unexpected-t_function-35%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [jposterloh](https://wordpress.org/support/users/jposterloh/)
 * (@jposterloh)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-35/#post-10286437)
 * Hi,
 * I have the same problem. Probably this is a result of having a PHP version <5.3,
   which is now the new requirements. To bad the update process does not check this…
 * You have to update your PHP (which I can’t), or revert to a previous version.
 * Best regards
    Jan-Patrick

Viewing 1 replies (of 1 total)

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

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

 * 1 reply
 * 2 participants
 * Last reply from: [jposterloh](https://wordpress.org/support/users/jposterloh/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-35/#post-10286437)
 * Status: not resolved