• Resolved Barn2Media

    (@barn2media)


    ​Hi, I need to update my server to PHP7 and there’s an error with the WC Weight Based Shipping plugin when I run WP Engine’s PHP7 compatibility checker – please could you fix this. The errors are:

    FILE: /nas/content/live/dressdifferent/wp-content/plugins/weight-based-shipping-for-woocommerce/WC_Weight_Based_Shipping.php
    —————————————————————————————————————————-
    FOUND 2 ERRORS AFFECTING 2 LINES
    —————————————————————————————————————————-
    67 | ERROR | ‘clone’ is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
    319 | ERROR | ‘clone’ is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
    —————————————————————————————————————————-

    Many thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Dan

    (@dangoodman)

    Hi,

    ‘clone’ is a reserved keyword which can be invoked as a function, like many other php language constructs including ‘echo’, ‘print’, ‘require’, etc.

    So, you’d better report a bug to your sniffer tool.

    Thanks, WP Engine have confirmed that you are correct and they will fix this in their plugin.

    Plugin Author Dan

    (@dangoodman)

    Thank you for the update.

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