• Resolved danbrady

    (@danbrady)


    Is Booster for WooCommerce compatible with PHP 7.1/7.2?

    The PHP compatibility checker plugin declares that it is not compatible.

    PHP 5.6 (and 7.0) end of life is Dec 2018, so sites need to upgrade in the coming months. Also, some newer plugins have 7.1 as a minimum requirement.

    Please can you confirm when Booster for WooCommerce will be PHP 7.1 compatible?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @danbrady,

    Actually when developing Booster, we use test server with PHP v7.1.9, so there should be no real issues. However I will check it with compatibility checker plugin. What plugin did you use, is it this one – https://www.ads-software.com/plugins/php-compatibility-checker/ ?

    Best regards,
    Tom

    Thread Starter danbrady

    (@danbrady)

    Yes, that’s the plugin I used. I think it actually just gave an ‘unknown’, because the process cancelled checking the booster plugin becuase of its size

    Good to know you are already using PHP 7.1.9 for testing

    Thanks

    Hi @danbrady,

    Thanks for the info. I’ve just run compatibility check for PHP v7.2, and there were some issues, however all of them are coming from an external library we are using – TCPDF. It is loaded only if you are using Booster’s “PDF Invoicing” module. Other than that there were no issues detected in plugin itself. We are going to update TCPDF to newest version soon, so hopefully plugin will fully pass PHP v7.2 check then.

    Best regards,
    Tom

    Thread Starter danbrady

    (@danbrady)

    Hi Tom, thanks for checking and for your detailed response.

    We don’t use the PDF invoicing module, though we do use TCPDF on other projects, but it’s good that you’re upgrading it soon

    PHP 7.1 is our goal at the moment (as I suspect too many other plugins won’t work with 7.2), but 7.2 will be a priority soon.

    Hi danbrandy and thank you for this super plugin!

    Same topic, my PHP checker is from my hosting SiteGround.
    They reports these errors for upgrade to PHP 7.1:

    FILE: /home/capacit2/public_html/wp-content/plugins/woocommerce-jetpack/includes/lib/tcpdf/include/tcpdf_static.php
    —————————————————————————————
    FOUND 2 ERRORS AND 13 WARNINGS AFFECTING 8 LINES
    —————————————————————————————
    143 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
    335 | ERROR | ‘clone’ is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
    453 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    453 | WARNING | Function mcrypt_create_iv() is deprecated since PHP 7.1; use OpenSSL instead
    453 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    453 | WARNING | Function mcrypt_get_iv_size() is deprecated since PHP 7.1; use OpenSSL instead
    454 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    454 | WARNING | Function mcrypt_encrypt() is deprecated since PHP 7.1; use OpenSSL instead
    475 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    475 | WARNING | Function mcrypt_get_iv_size() is deprecated since PHP 7.1; use OpenSSL instead
    476 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    476 | WARNING | Function mcrypt_encrypt() is deprecated since PHP 7.1; use OpenSSL instead
    493 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    493 | WARNING | Function mcrypt_encrypt() is deprecated since PHP 7.1; use OpenSSL instead
    1934 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4.
    —————————————————————————————

    FILE: /home/capacit2/public_html/wp-content/plugins/woocommerce-jetpack/includes/lib/tcpdf/tcpdf.php
    —————————————————————————————
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
    —————————————————————————————
    10870 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    10870 | WARNING | Function mcrypt_get_cipher_name() is deprecated since PHP 7.1; use OpenSSL instead
    —————————————————————————————

    FILE: /home/capacit2/public_html/wp-content/plugins/woocommerce-jetpack/includes/lib/FPDI/src/PdfParser/Filter/Lzw.php
    —————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————————
    185 | ERROR | Bitwise shifts by negative number will throw an ArithmeticError in PHP 7.0
    —————————————————————————————

    What do you think? May I ignore them?

    Regards

    Hi @telengo,

    Thanks.

    All this comes from external libraries we use, and both libraries are loaded/used only in Booster’s “PDF Invoicing” module. We have latest versions of both libraries included. Our development server, which we use for Booster development, has PHP v7.1 installed and there are no issues (nothing in log or on frontend). So to sum up – there should be no issues transferring your site to PHP v7.1.

    Hope that helps.

    P.S. If you like Booster, please leave us a rating.

    Best regards,
    Tom

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP 7 compatibility’ is closed to new replies.