• Resolved nathanuk

    (@nathanuk)


    Hey Alain,

    I am trying to use this with PHP 7.0, but it seems the version of swiftmail you use is too old. Would you mind bumping that?

    This is the results I got from the wp-php-compatability plugin:

    Name: WP Cassify

    FILE: /path/to/wp/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php
    ———————————————————————————————————————————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————————————————————————————————————————–
    526 | ERROR | Bitwise shifts by negative number will throw an ArithmeticError in PHP 7.0
    ———————————————————————————————————————————————————————————————–

    FILE: /path/to/wp/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/SimpleMailInvoker.php
    ————————————————————————————————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————————————————————————————————————
    33 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
    ————————————————————————————————————————————————————————————

    FILE: /path/to/wp/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/lib/classes/Swift/KeyCache/DiskKeyCache.php
    ——————————————————————————————————————————————————————————
    FOUND 4 ERRORS AFFECTING 4 LINES
    ——————————————————————————————————————————————————————————
    180 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4
    187 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4
    207 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4
    213 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4
    ——————————————————————————————————————————————————————————

    FILE: /path/to/wp/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php
    ———————————————————————————————————————————————————————————-
    FOUND 2 ERRORS AFFECTING 2 LINES
    ———————————————————————————————————————————————————————————-
    87 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4
    91 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4
    ———————————————————————————————————————————————————————————-

    Thanks,

    Nathan.

    • This topic was modified 7 years ago by nathanuk.
    • This topic was modified 7 years ago by nathanuk.
Viewing 5 replies - 1 through 5 (of 5 total)
  • george504

    (@george504)

    Hello,

    I’ve tested against PHP 7.1 and came up with similar issues in swiftmailer. If you could bump that up it will probably fix issues with PHP 7 compatibility.

    Thanks, George

    =========================

    Results against PHP 7.1:

    FILE: /code/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php
    ——————————————————————————————————————————————————————————
    FOUND 2 ERRORS AFFECTING 2 LINES
    ——————————————————————————————————————————————————————————
    87 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4
    91 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4
    ——————————————————————————————————————————————————————————

    FILE: /code/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php
    ——————————————————————————————————————————————————————————————-
    FOUND 1 ERROR AND 12 WARNINGS AFFECTING 4 LINES
    ——————————————————————————————————————————————————————————————-
    526 | ERROR | Bitwise shifts by negative number will throw an ArithmeticError in PHP 7.0
    578 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead
    578 | WARNING | Function mcrypt_module_open() is deprecated since PHP 7.1; Use OpenSSL instead
    578 | WARNING | The constant “MCRYPT_DES” is deprecated since PHP 7.1
    579 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead
    579 | WARNING | Function mcrypt_generic_init() is deprecated since PHP 7.1; Use OpenSSL instead
    579 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead
    579 | WARNING | Function mcrypt_create_iv() is deprecated since PHP 7.1; Use random_bytes() or OpenSSL instead
    579 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead
    579 | WARNING | Function mcrypt_enc_get_iv_size() is deprecated since PHP 7.1; Use OpenSSL instead
    579 | WARNING | The constant “MCRYPT_DEV_RANDOM” is deprecated since PHP 7.1
    581 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead
    581 | WARNING | Function mcrypt_generic() is deprecated since PHP 7.1; Use OpenSSL instead
    ——————————————————————————————————————————————————————————————-

    FILE: /code/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/SimpleMailInvoker.php
    ——————————————————————————————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————————————————————————————————–
    33 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
    ——————————————————————————————————————————————————————————–

    FILE: /code/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/lib/classes/Swift/KeyCache/DiskKeyCache.php
    ————————————————————————————————————————————————————————–
    FOUND 4 ERRORS AFFECTING 4 LINES
    ————————————————————————————————————————————————————————–
    180 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4
    187 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4
    207 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4
    213 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4
    ————————————————————————————————————————————————————————–

    FILE: /code/wp-content/plugins/wp-cassify/classes/wp_cassify_utils.php
    ——————————————————————————————————————————-
    FOUND 0 ERRORS AND 22 WARNINGS AFFECTING 14 LINES
    ——————————————————————————————————————————-
    508 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead
    508 | WARNING | Function mcrypt_encrypt() is deprecated since PHP 7.1; Use OpenSSL instead
    509 | WARNING | The constant “MCRYPT_RIJNDAEL_256” is deprecated since PHP 7.1
    512 | WARNING | The constant “MCRYPT_MODE_ECB” is deprecated since PHP 7.1
    513 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead
    513 | WARNING | Function mcrypt_create_iv() is deprecated since PHP 7.1; Use random_bytes() or OpenSSL instead
    514 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead
    514 | WARNING | Function mcrypt_get_iv_size() is deprecated since PHP 7.1; Use OpenSSL instead
    514 | WARNING | The constant “MCRYPT_RIJNDAEL_256” is deprecated since PHP 7.1
    514 | WARNING | The constant “MCRYPT_MODE_ECB” is deprecated since PHP 7.1
    515 | WARNING | The constant “MCRYPT_RAND” is deprecated since PHP 7.1
    536 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead
    536 | WARNING | Function mcrypt_decrypt() is deprecated since PHP 7.1; Use OpenSSL instead
    537 | WARNING | The constant “MCRYPT_RIJNDAEL_256” is deprecated since PHP 7.1
    540 | WARNING | The constant “MCRYPT_MODE_ECB” is deprecated since PHP 7.1
    541 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead
    541 | WARNING | Function mcrypt_create_iv() is deprecated since PHP 7.1; Use random_bytes() or OpenSSL instead
    542 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead
    542 | WARNING | Function mcrypt_get_iv_size() is deprecated since PHP 7.1; Use OpenSSL instead
    543 | WARNING | The constant “MCRYPT_RIJNDAEL_256” is deprecated since PHP 7.1
    544 | WARNING | The constant “MCRYPT_MODE_ECB” is deprecated since PHP 7.1
    546 | WARNING | The constant “MCRYPT_RAND” is deprecated since PHP 7.1
    ——————————————————————————————————————————-

    Plugin Author Alain-Aymerick FRANCOIS

    (@aaf017)

    Hi,

    Please upgrade to last version. SwiftMailer is upgraded to 6.2.0.

    Best regards

    george504

    (@george504)

    Thanks for the update,

    George

    Just curious if the upgrade fixed your errors with running wp-cassify with PHP 7.1? Getting similar errors when I run the PHP Compatibility checker. I am at WP-CASSIFY version 2.1.4 and getting the same errors for PHP 7.1.

    I still get the error: Bitwise shifts by negative number will throw an ArithmeticError in PHP 7.0 and one of the warnings about something being “deprecated since PHP 5.3” errors. I assume that one is okay since I am on PHP 5.6, but what about the “bitwise shift” error?

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