Title: Parse error when activate
Last modified: August 22, 2016

---

# Parse error when activate

 *  Resolved [ludoviccharlier](https://wordpress.org/support/users/ludoviccharlier/)
 * (@ludoviccharlier)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-when-activate/)
 * Hello,
 * We tried to activate your plugin but we receive this error message :
    Parse error:
   syntax error, unexpected T_FUNCTION in /home/creativede/www/wp-content/plugins/
   sunny/includes/class-sunny-helper.php on line 105
 * How could we solve that please ?
 * Thank you.
 * [https://wordpress.org/plugins/sunny/](https://wordpress.org/plugins/sunny/)

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

 *  Plugin Author [Tang Rufus](https://wordpress.org/support/users/tangrufus/)
 * (@tangrufus)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-when-activate/#post-5563436)
 * I have fixed this issue on version 1.5.0 which will be released in the next few
   hours.
 * For the time being, deactivate Sunny and wait for the update.
 * Thanks for reporting.
 *  Plugin Author [Tang Rufus](https://wordpress.org/support/users/tangrufus/)
 * (@tangrufus)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-when-activate/#post-5563488)
 * After deeper investigation, line 105 used an anonymous function which wasn’t 
   available until PHP 5.3
 * As WP Human has no plan to support PHP 5.2 or earlier, please upgrade your PHP.
 * This requirement is added to the readme since v1.5.0
 * Sunny v1.5.0 **won’t** resolve this issue.
 * Thanks for reporting!
 *  Thread Starter [ludoviccharlier](https://wordpress.org/support/users/ludoviccharlier/)
 * (@ludoviccharlier)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-when-activate/#post-5563491)
 * Ok, you’re right, we were using PHP 5.2. Now we upgrade to PHP 5.3 but now we
   have this error message in the top :
    Warning: call_user_func_array() expects
   parameter 1 to be a valid callback, class ‘Sunny_Activator’ not found in /home/
   creativede/www/wp-includes/plugin.php on line 505
 * How can we solve that ?
 * Thank you.
 *  Plugin Author [Tang Rufus](https://wordpress.org/support/users/tangrufus/)
 * (@tangrufus)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-when-activate/#post-5563518)
 * Simply update to version 1.5.0
    see [this thread](https://wordpress.org/support/topic/error-on-activation-30?replies=3)

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

The topic ‘Parse error when activate’ is closed to new replies.

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

 * 4 replies
 * 2 participants
 * Last reply from: [Tang Rufus](https://wordpress.org/support/users/tangrufus/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-when-activate/#post-5563518)
 * Status: resolved