Title: Error upon activation
Last modified: October 12, 2018

---

# Error upon activation

 *  Resolved [chania06](https://wordpress.org/support/users/chania06/)
 * (@chania06)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-upon-activation-9/)
 * Аn error occurred while activating the plugin – Fatal error: Can’t use method
   return value in write context in /wp-content/plugins/simply-schedule-appointments/
   includes/lib/td-util/extended-cpts/src/class-extended-cpt-admin.php on line 682
    -  This topic was modified 7 years, 8 months ago by [chania06](https://wordpress.org/support/users/chania06/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-upon-activation-9%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [NSquared](https://wordpress.org/support/users/croixhaug/)
 * (@croixhaug)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-upon-activation-9/#post-10776018)
 * Hi there, sorry you’re having trouble with our plugin. Can you tell us what version
   of php you are running on your site? (There are also plugins that can tell you
   this, just search the plugin directory for “phpinfo”)
 * Thanks,
    Nathan
 *  Plugin Author [Natalie MacLees](https://wordpress.org/support/users/nataliemac/)
 * (@nataliemac)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/error-upon-activation-9/#post-10808343)
 * Hello [@chania06](https://wordpress.org/support/users/chania06/),
 * Did you still need help getting this sorted out?
 *  [doctor17](https://wordpress.org/support/users/doctor17/)
 * (@doctor17)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/error-upon-activation-9/#post-10818219)
 * Hy,
    I have a similar problem during activation.
 * syntax error at /simply-schedule-appointments/includes/lib/td-util/extended-cpts/
   functions.php on line 59
 * Thanks
    A.
 *  Plugin Author [NSquared](https://wordpress.org/support/users/croixhaug/)
 * (@croixhaug)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/error-upon-activation-9/#post-10819154)
 * Hi [@doctor17](https://wordpress.org/support/users/doctor17/), is there any more
   information on screen associated with that error? And do you happen to know what
   version of PHP you are running?
 * Thanks,
    Nathan
 *  [doctor17](https://wordpress.org/support/users/doctor17/)
 * (@doctor17)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/error-upon-activation-9/#post-10825558)
 * Error is:
    Plugin could not be activated because it triggered a fatal error. 
   Parse error: syntax error, unexpected ‘[‘ in wp-content/plugins/simply-schedule-
   appointments/includes/lib/td-util/extended-cpts/functions.php on line 59
 * php version is 5.3.3
 * Thanks,
    Antonio
 *  Plugin Author [NSquared](https://wordpress.org/support/users/croixhaug/)
 * (@croixhaug)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/error-upon-activation-9/#post-10826905)
 * Thank you [@doctor17](https://wordpress.org/support/users/doctor17/), we will
   look at the compatibility on PHP 5.3.3.
 * PHP 5.6 is about to reach end of life, so for security, it would be best to update
   to PHP 7.0 (and it happens to be a lot faster too) Your host should be able to
   upgrade you to 7.0, or at least 5.6, pretty easily.
 * I believe SSA should work on PHP 5.3 still, so we will see about releasing a 
   fix for that
 * Thanks,
    Nathan
 *  Plugin Author [NSquared](https://wordpress.org/support/users/croixhaug/)
 * (@croixhaug)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/error-upon-activation-9/#post-10839884)
 * Hi [@doctor17](https://wordpress.org/support/users/doctor17/), I found the source
   of this error, our code that checks for your server’s PHP version wasn’t running.
   Simply Schedule Appointments supports PHP 5.6+
 * PHP 5.6 is actually going to be insecure (no longer updated with security patches
   by the PHP project) within a few months.
 * Web hosts are upgrading their servers to 7.0, 7.1, 7.2 – if you send an email
   to your web host, they’ll probably be happy to upgrade you. 7.0 can require some
   older plugins to break, but you should be able to upgrade to at least PHP 5.6
   with very little risk.
 * Simply Schedule Appointments uses some code libraries that require PHP 5.6, so
   unfortunately we can’t support an earlier version.
 * We just pushed a new release (v1.2.1.7) that checks compatibility and shows a
   more informative error message instead of the one you saw. Thanks for letting
   us know!
 * Best,
    Nathan

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

The topic ‘Error upon activation’ is closed to new replies.

 * ![](https://ps.w.org/simply-schedule-appointments/assets/icon.svg?rev=2926807)
 * [Appointment Booking Calendar — Simply Schedule Appointments Booking Plugin](https://wordpress.org/plugins/simply-schedule-appointments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simply-schedule-appointments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simply-schedule-appointments/)
 * [Active Topics](https://wordpress.org/support/plugin/simply-schedule-appointments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simply-schedule-appointments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simply-schedule-appointments/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [NSquared](https://wordpress.org/support/users/croixhaug/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/error-upon-activation-9/#post-10839884)
 * Status: resolved