• Resolved VentureCore

    (@manakio2k)


    We are upgrading our systems to php 7 and we encountered the following issues when running ‘PHP Compatibility Checker’

    FILE: /nas/content/live/my-site/wp-content/plugins/threewp-broadcast/src/traits/admin_menu.php

    FOUND 1 ERROR AFFECTING 1 LINE
    612 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4

    FILE: /nas/content/live/my-site/wp-content/plugins/threewp-broadcast/src/sdk/traits/db_aware_object.php

    FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
    76 | WARNING | Method name “db_aware_object::__db_delete” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    95 | WARNING | Method name “db_aware_object::__db_insert” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    114 | WARNING | Method name “db_aware_object::__db_load” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    133 | WARNING | Method name “db_aware_object::__db_update” is discouraged; PHP has reserved all method names with a double underscore prefix for future use

    FILE: /nas/content/live/my-site/wp-content/plugins/threewp-broadcast/src/sdk/form2/inputs/traits/container.php

    FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
    80 | WARNING | Method name “container::__toString_after_container” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    90 | WARNING | Method name “container::__toString_after_inputs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    100 | WARNING | Method name “container::__toString_before_container” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    110 | WARNING | Method name “container::__toString_before_inputs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use

    FILE: /nas/content/live/my-site/wp-content/plugins/threewp-broadcast/src/sdk/form2/inputs/inputfieldset.php

    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    19 | WARNING | Method name “inputfieldset::__toString_before_container” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    30 | WARNING | Method name “inputfieldset::__toString_before_inputs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use

    FILE: /nas/content/live/my-site/wp-content/plugins/threewp-broadcast/src/sdk/form2/inputs/fieldset.php

    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    22 | WARNING | Method name “fieldset::__toString_before_inputs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use

    FILE: /nas/content/live/data360masters/wp-content/plugins/threewp-broadcast/src/sdk/wordpress/traits/db_aware_object.php

    FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
    14 | WARNING | Method name “db_aware_object::__db_delete” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    23 | WARNING | Method name “db_aware_object::__db_update” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    41 | WARNING | Method name “db_aware_object::__db_insert” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    53 | WARNING | Method name “db_aware_object::__db_load” is discouraged; PHP has reserved all method names with a double underscore prefix for future use

    FILE: /nas/content/live/my-site/wp-content/plugins/threewp-broadcast/src/sdk/wordpress/updater/edd.php

    FOUND 1 ERROR AFFECTING 1 LINE
    291 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0

    I will post this to you from your main site as well. We’re looking at upgrading but need to find out if this can be setup to post to separate networks.

    THanks

Viewing 1 replies (of 1 total)
  • Plugin Author edward_plainview

    (@edward_plainview)

    The above is no problem.

    I have PHP7 myself (7.0.19-1) for quite a while now. If there were a PHP7 incompatibility, it would have been noticed. ??

    Go ahead and use Broadcast on PHP7 and you’ll do just fine.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP 7.0 (15) Warnings (2) Errors’ is closed to new replies.