• Resolved Robbie_berns

    (@robbernsteinzgmailcom)


    What a great plugin – best one around!

    I have upgraded my server to php7. I have run a compatibility check and the following errors and warnings have appeared. Any suggestions?

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/class-updraftplus.php
    —————————————————————————————————————–
    FOUND 1 ERROR AND 2 WARNINGS AFFECTING 2 LINES
    —————————————————————————————————————–
    949 | WARNING | INI directive ‘safe_mode’ is deprecated from PHP 5.3 and forbidden from PHP 5.4.
    949 | WARNING | INI directive ‘safe_mode’ is deprecated from PHP 5.3 and forbidden from PHP 5.4.
    2596 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    —————————————————————————————————————–

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/File/X509.php
    ——————————————————————————————————————
    FOUND 5 ERRORS AFFECTING 5 LINES
    ——————————————————————————————————————
    320 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    4442 | ERROR | Using a call-time pass-by-reference is prohibited since php 5.4
    4467 | ERROR | Using a call-time pass-by-reference is prohibited since php 5.4
    4534 | ERROR | Using a call-time pass-by-reference is prohibited since php 5.4
    4606 | ERROR | Using a call-time pass-by-reference is prohibited since php 5.4
    ——————————————————————————————————————

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/File/ASN1.php
    ——————————————————————————————————————
    FOUND 2 ERRORS AFFECTING 2 LINES
    ——————————————————————————————————————
    134 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    248 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    ——————————————————————————————————————

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/File/ANSI.php
    ————————————————————————————————————————-
    FOUND 6 ERRORS AFFECTING 6 LINES
    ————————————————————————————————————————-
    182 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    191 | ERROR | ‘clone’ is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
    192 | ERROR | ‘clone’ is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
    333 | ERROR | ‘clone’ is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
    403 | ERROR | ‘clone’ is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
    422 | ERROR | ‘clone’ is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
    ————————————————————————————————————————-

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/Net/SCP.php
    —————————————————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————————————————-
    125 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    —————————————————————————————————————-

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/Net/SFTP.php
    —————————————————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————————————————–
    291 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    —————————————————————————————————————–

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/Net/SSH1.php
    —————————————————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————————————————–
    518 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    —————————————————————————————————————–

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/Net/SFTP/Stream.php
    ————————————————————————————————————————
    FOUND 2 ERRORS AFFECTING 2 LINES
    ————————————————————————————————————————
    149 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    200 | ERROR | Global with variable variables are not allowed since PHP 7.0
    ————————————————————————————————————————

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/Net/SSH2.php
    —————————————————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————————————————–
    886 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    —————————————————————————————————————–

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/Crypt/TripleDES.php
    ————————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ————————————————————————————————————————
    199 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    ————————————————————————————————————————

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/Crypt/RC4.php
    ——————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ——————————————————————————————————————
    164 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    ——————————————————————————————————————

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/Crypt/Hash.php
    ——————————————————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    ——————————————————————————————————————-
    154 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    ——————————————————————————————————————-

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/Crypt/RSA.php
    ——————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ——————————————————————————————————————
    494 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    ——————————————————————————————————————

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/Crypt/RC2.php
    ——————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ——————————————————————————————————————
    358 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    ——————————————————————————————————————

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/Crypt/Base.php
    ——————————————————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    ——————————————————————————————————————-
    506 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    ——————————————————————————————————————-

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/Crypt/Rijndael.php
    ———————————————————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————————————————–
    267 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    ———————————————————————————————————————–

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/Math/BigInteger.php
    ————————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ————————————————————————————————————————
    246 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    ————————————————————————————————————————

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/phpseclib/System/SSH/Agent.php
    ————————————————————————————————————————-
    FOUND 2 ERRORS AFFECTING 2 LINES
    ————————————————————————————————————————-
    133 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    272 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    ————————————————————————————————————————-

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/includes/S3.php
    ————————————————————————————————————————————————————————————–
    FOUND 0 ERRORS AND 12 WARNINGS AFFECTING 12 LINES
    ————————————————————————————————————————————————————————————–
    231 | WARNING | Method name “UpdraftPlus_S3::__triggerError” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1603 | WARNING | Method name “UpdraftPlus_S3::__getCloudFrontInvalidationBatchXML” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1683 | WARNING | Method name “UpdraftPlus_S3::__getCloudFrontDistributionConfigXML” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1723 | WARNING | Method name “UpdraftPlus_S3::__parseCloudFrontDistributionConfig” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1783 | WARNING | Method name “UpdraftPlus_S3::__getCloudFrontResponse” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1812 | WARNING | Method name “UpdraftPlus_S3::__getMimeType” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1863 | WARNING | Method name “UpdraftPlus_S3::__getSignature” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1878 | WARNING | Method name “UpdraftPlus_S3::__getHash” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    2168 | WARNING | Method name “UpdraftPlus_S3Request::__sortMetaHeadersCmp” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    2186 | WARNING | Method name “UpdraftPlus_S3Request::__responseWriteCallback” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    2202 | WARNING | Method name “UpdraftPlus_S3Request::__dnsBucketName” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    2226 | WARNING | Method name “UpdraftPlus_S3Request::__responseHeaderCallback” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ————————————————————————————————————————————————————————————–

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/restorer.php
    —————————————————————————————————————–
    FOUND 12 ERRORS AND 2 WARNINGS AFFECTING 13 LINES
    —————————————————————————————————————–
    1329 | WARNING | INI directive ‘safe_mode’ is deprecated from PHP 5.3 and forbidden from PHP 5.4.
    1329 | WARNING | INI directive ‘safe_mode’ is deprecated from PHP 5.3 and forbidden from PHP 5.4.
    1385 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    1429 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    1432 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    1433 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    1461 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    1464 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    1465 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    1826 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    1829 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    1847 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    1952 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    1953 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    —————————————————————————————————————–

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/vendor/rackspace/php-opencloud/lib/OpenCloud/OpenStack.php
    ——————————————————————————————————————————————–
    FOUND 7 ERRORS AFFECTING 7 LINES
    ——————————————————————————————————————————————–
    132 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    136 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    206 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    210 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    396 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    397 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    400 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    ——————————————————————————————————————————————–

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/vendor/rackspace/php-opencloud/lib/OpenCloud/Common/Collection.php
    —————————————————————————————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————————————————————————————-
    306 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    —————————————————————————————————————————————————-

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/vendor/rackspace/php-opencloud/lib/OpenCloud/Common/Service/AbstractService.php
    —————————————————————————————————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————————————————————————————————–
    142 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword ‘resource’ (since version 7.0)
    —————————————————————————————————————————————————————–

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/vendor/rackspace/php-opencloud/lib/OpenCloud/Common/Base.php
    ———————————————————————————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————————————————————————-
    312 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    ———————————————————————————————————————————————-

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/vendor/rackspace/php-opencloud/lib/OpenCloud/Common/Collection/ResourceIterator.php
    ———————————————————————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————————————————————————————————
    200 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    ———————————————————————————————————————————————————————

    FILE: /var/www/example.com/htdocs/wp-content/plugins/updraftplus/vendor/rackspace/php-opencloud/lib/OpenCloud/Identity/Service.php
    —————————————————————————————————————————————————
    FOUND 5 ERRORS AFFECTING 5 LINES
    —————————————————————————————————————————————————
    94 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    121 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    135 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    164 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    192 | ERROR | ‘resource’ is a reserved keyword introduced in PHP version 7.0 and cannot be invoked as a function (T_STRING)
    —————————————————————————————————————————————————

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Your compatibility checker is reading branches that don’t executed on PHP 7. Please let us know if you find any errors in actual operation – we’ve supported PHP 7 for around a year, and have no known issues.

    David

    Thread Starter Robbie_berns

    (@robbernsteinzgmailcom)

    Thanks for the quick response.

    I have never had a problem with UpdraftPlus, so this was only a general query. It works perfectly

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