Support » Plugin: ManageWP Worker » PHP 7 Compatibility Errors

  • Resolved Curtis

    (@salsafire)


    Hello. Thank you for developing this plugin.

    I utilized the PHP Compatibility Plugin from the WordPress repository to check my site and test for PHP 7 compatible plugins. I received these errors regarding your plugin.

    plugins/worker/src/MMB/Backup.php
    ———————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————————
    4277 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    ———————————————————————————————

    plugins/worker/src/S3/Client.php
    ———————————————————————————————
    FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
    ———————————————————————————————
    395 | WARNING | Method name “S3_Client::__triggerError” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1660 | WARNING | Method name “S3_Client::__getCloudFrontInvalidationBatchXML” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1743 | WARNING | Method name “S3_Client::__getCloudFrontDistributionConfigXML” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1785 | WARNING | Method name “S3_Client::__parseCloudFrontDistributionConfig” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1844 | WARNING | Method name “S3_Client::__getCloudFrontResponse” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1878 | WARNING | Method name “S3_Client::__getMIMEType” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1925 | WARNING | Method name “S3_Client::__getTime” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1955 | WARNING | Method name “S3_Client::__getSignature” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1971 | WARNING | Method name “S3_Client::__getHash” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————————————

    plugins/worker/src/S3/Request.php
    ———————————————————————————————
    FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
    ———————————————————————————————
    423 | WARNING | Method name “S3_Request::__sortMetaHeadersCmp” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    447 | WARNING | Method name “S3_Request::__responseWriteCallback” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    465 | WARNING | Method name “S3_Request::__dnsBucketName” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    494 | WARNING | Method name “S3_Request::__responseHeaderCallback” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————————————

    plugins/worker/src/MWP/WordPress/Context.php
    ———————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————————
    26 | ERROR | Parameter shadowing super global ($globals) causes fatal error since PHP 5.4
    ———————————————————————————————

    plugins/worker/src/MWP/Backup/MysqlDump/DumpFactory.php
    ———————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————————————
    56 | WARNING | INI directive ‘safe_mode’ is deprecated from PHP 5.3 and forbidden from PHP 5.4.
    ———————————————————————————————

    plugins/worker/src/MWP/IncrementalBackup/Database/MysqlConnection.php
    ———————————————————————————————
    FOUND 11 ERRORS AFFECTING 9 LINES
    ———————————————————————————————
    33 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    39 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    43 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    43 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    46 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    47 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    56 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    58 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    62 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    62 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    75 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    ———————————————————————————————

    plugins/worker/src/MWP/IncrementalBackup/Database/MysqlStatement.php
    ———————————————————————————————
    FOUND 2 ERRORS AFFECTING 2 LINES
    ———————————————————————————————
    29 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    56 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    ———————————————————————————————

    plugins/worker/functions.php
    ———————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————————————
    402 | WARNING | INI directive ‘safe_mode’ is deprecated from PHP 5.3 and forbidden from PHP 5.4.
    ———————————————————————————————

    Curt

Viewing 1 replies (of 1 total)
  • Plugin Support Nemanja Aleksic

    (@kouteki)

    Hi Curt,

    I apologize for not getting back to you sooner, we support ManageWP through our service, so we rarely look at the .org support board. Before I get into the details, I just wanted to thank you for running the check and sending us the results.

    ManageWP is fully PHP7 compliant. The errors listed here are reporting the lines code that we intentionally in there to keep the plugin backward compatible. The PHP Compatibility Plugin can only see if there’s a particular line of code in there or not, it’s not capable of deducing how it’s being used.

    In summary, everything is in order, no need to worry 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘PHP 7 Compatibility Errors’ is closed to new replies.