Support » Plugin: Sunny » Parse error when activate

  • Resolved ludoviccharlier

    (@ludoviccharlier)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tang Rufus

    (@tangrufus)

    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

    (@tangrufus)

    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

    (@ludoviccharlier)

    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

    (@tangrufus)

    Simply update to version 1.5.0
    see this thread

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Parse error when activate’ is closed to new replies.