• Hi, title says it all ??
    Can anyone tell me if the plugin compatible? It is not according to the PHP Compatibility Checker (WP Engine)

Viewing 4 replies - 1 through 4 (of 4 total)
  • For further detail, this is what the PHP7 Compatibility Checker is reporting:

    wp-content/plugins/dynamic-to-top/inc/cssmin-v3.0.1.php
    --------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    --------------------------------------------------------------------------------------------------------------------------
     3346 | ERROR | 'clone' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
     3353 | ERROR | 'clone' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
    --------------------------------------------------------------------------------------------------------------------------

    @webtaurus, did you upgrade your site since you posted here? Any results to report running this plugin version 4.6.1 on PHP7?

    I get the same error reported using siteground’s php7 compatibility checker with wordpress 4.7.3 installed.

    Yep, came to report the exact same 2 errors before attempting to upgrade to PHP7.

    The problem are at file wp-content/plugins/dynamic-to-top/inc/cssmin-v3.0.1.php. It’s because clone is a keyword, not a function, therefore:

    clone( $date ) ?
    clone $date ??

    It’s easy solve this error.

    In line 3346 you must change:
    $source[] = clone($tokens[$iii]);
    by:
    $source[] = clone $tokens[$iii];

    In line 3353 you must change:
    $t[] = clone($token);
    by:
    $t[] = clone $token;

    Let’s hope the author solves this problem soon.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP7 compatible?’ is closed to new replies.