Title: Parse error: syntax error, unexpected T_FUNCTION
Last modified: September 1, 2016

---

# Parse error: syntax error, unexpected T_FUNCTION

 *  Resolved [dhazard](https://wordpress.org/support/users/dhazard/)
 * (@dhazard)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-24/)
 * Any ideas? Plugin incompatability? :
 * Plugin could not be activated because it triggered a fatal error.
 * Parse error: syntax error, unexpected T_FUNCTION in /home/content/58/9085658/
   html/wp-content/plugins/wp-ical-availability/include/class.iCalReader.php on 
   line 420
 * [https://wordpress.org/plugins/wp-ical-availability/](https://wordpress.org/plugins/wp-ical-availability/)

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

 *  Plugin Author [wpicalavailability](https://wordpress.org/support/users/wpicalavailability/)
 * (@wpicalavailability)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-24/#post-7566153)
 * Hi, hmm… this is strange. Can you send us an email at [support@wpicalavailability.com](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-24/support@wpicalavailability.com?output_format=md)?
   We want to check this out.
 *  Thread Starter [dhazard](https://wordpress.org/support/users/dhazard/)
 * (@dhazard)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-24/#post-7566154)
 * Actually I figured it out! I upgraded the php version – Godaddy had 5.2 installed
   but had 5.3 and 5.4 available so I switched the host to 5.4 and it worked!
 *  Plugin Author [wpicalavailability](https://wordpress.org/support/users/wpicalavailability/)
 * (@wpicalavailability)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-24/#post-7566169)
 * Ah, great to hear that!

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/wp-ical-availability.svg)
 * [WP iCal Availability](https://wordpress.org/plugins/wp-ical-availability/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ical-availability/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ical-availability/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ical-availability/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ical-availability/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ical-availability/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [wpicalavailability](https://wordpress.org/support/users/wpicalavailability/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-24/#post-7566169)
 * Status: resolved