Title: New Version crashed my site: Parse error: syntax error, unexpected T_FUNCTION..
Last modified: June 14, 2018

---

# New Version crashed my site: Parse error: syntax error, unexpected T_FUNCTION..

 *  Resolved [arssenior](https://wordpress.org/support/users/arssenior/)
 * (@arssenior)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/new-version-crashed-my-site-parse-error-syntax-error-unexpected-t_function/)
 * Running WordPress 4.9.6 and using my-calendar. Just updated to latest version
   and lost control of wp-admin with only this shown on the website home URL:
 * Parse error: syntax error, unexpected T_FUNCTION in /home/content/94/4245094/
   html/wp-content/plugins/my-calendar/my-calendar-styles.php on line 465
 * Had to rename the wp-content->plugins->my-calendar folder to get back to wp-admin.
   Now running without any calendar. At least it is running…
 * Any ideas?
 * Also, can I get back to the old version somehow (sorry..no backup…my bad)?
    Maybe
   install again fresh and use files out of the renamed folder?
 * Thanks…

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

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/new-version-crashed-my-site-parse-error-syntax-error-unexpected-t_function/#post-10401774)
 * What version of PHP are you running? There’s an anonymous function on that line,
   but it shouldn’t cause any problems in PHP 5.3 or later. If you’re still on PHP
   5.2, that isn’t a supported version of PHP for My Calendar.
 *  Thread Starter [arssenior](https://wordpress.org/support/users/arssenior/)
 * (@arssenior)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/new-version-crashed-my-site-parse-error-syntax-error-unexpected-t_function/#post-10401802)
 * Thanks for the fast reply!!!
 * PHP 5.2 is the current. So maybe I just change to 5.4 or 5.6 and then rename 
   the folder?
    Then it all would work again…?
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/new-version-crashed-my-site-parse-error-syntax-error-unexpected-t_function/#post-10401822)
 * Yes; switching your PHP version and changing the folder name back would do it.
 *  Thread Starter [arssenior](https://wordpress.org/support/users/arssenior/)
 * (@arssenior)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/new-version-crashed-my-site-parse-error-syntax-error-unexpected-t_function/#post-10401857)
 * I am on PHP 5.6 now and the website runs. When I changed the folder name back
   it fails again and says plugin does not exist. Must I start over and re-install
   and remake my events?
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/new-version-crashed-my-site-parse-error-syntax-error-unexpected-t_function/#post-10401863)
 * Do you have the plug-in active already with the folder name you changed it to?
 * The events are stored in the database; no need to worry about those, they’ll 
   still be there wherever the plugin files are located.
 *  Thread Starter [arssenior](https://wordpress.org/support/users/arssenior/)
 * (@arssenior)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/new-version-crashed-my-site-parse-error-syntax-error-unexpected-t_function/#post-10401876)
 * I returned the folder name to [my-calendar] and then activate the plugin. It 
   then says the “Plugin file does not exist” on a blank screen. Back arrow to the
   update screen and on the top says:
 * The plugin my-calendar/my-calendar.php has been deactivated due to an error: 
   Plugin file does not exist.
 * Appreciate the help…
 *  Thread Starter [arssenior](https://wordpress.org/support/users/arssenior/)
 * (@arssenior)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/new-version-crashed-my-site-parse-error-syntax-error-unexpected-t_function/#post-10401987)
 * fixed…updated to 3.02. Then it started working. All events still in-place.
 * Thanks for the great support!!!

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

The topic ‘New Version crashed my site: Parse error: syntax error, unexpected T_FUNCTION..’
is closed to new replies.

 * ![](https://ps.w.org/my-calendar/assets/icon-256x256.png?rev=1097576)
 * [My Calendar - Accessible Event Manager](https://wordpress.org/plugins/my-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/my-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-calendar/reviews/)

## Tags

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

 * 7 replies
 * 2 participants
 * Last reply from: [arssenior](https://wordpress.org/support/users/arssenior/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/new-version-crashed-my-site-parse-error-syntax-error-unexpected-t_function/#post-10401987)
 * Status: resolved