• Resolved actronab

    (@actronab)


    The latest plugin update breaks WordPress installations running on old PHP versions:

    Parse error: syntax error, unexpected ‘[‘ in /foobar/wp-content/plugins/easy-fancybox/inc/class-easyfancybox-admin.php on line 21

    Please replace this line:

    public static function register_settings( $args = [] ) {

    with this code:

    public static function register_settings( $args = array() ) {

    I know that the current implementation is valid code with PHP 7.x, but it will not work on older PHP versions, which – apparently – are still around.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter actronab

    (@actronab)

    Whoops, just noticed that this issue has already been reported.

    There are so many sticky posts…

    However, good to see that I am not the only one, who is stuck with an old PHP installation.

    Hi @actronab are you really not able to get a PHP version of 5.4 or above? You should contact your hosting provider about this as even PHP 5.6 will reach end of life soon. This means you are not getting any security updates and you site is at risk.

    Thread Starter actronab

    (@actronab)

    No, unfortunately my hoster is not able (or willing?) to upgrade to PHP 7+ as of now.

    But this is beyond of this post’s topic. ??

    Had the same. My webhost upgraded from 5.3.29 to PHP 5.6.33 and now the problem is solved.

    Version 1.7 should be downward compatible again… Please let me know if you still run into trouble.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Latest update breaks downward compatibility’ is closed to new replies.