• Resolved arssenior

    (@arssenior)


    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

    (@joedolson)

    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

    (@arssenior)

    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

    (@joedolson)

    Yes; switching your PHP version and changing the folder name back would do it.

    Thread Starter arssenior

    (@arssenior)

    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

    (@joedolson)

    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

    (@arssenior)

    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

    (@arssenior)

    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.