• Resolved panoreel

    (@panoreel)


    Hi,
    I have been using Plainview Protect Passwords with our WordPress site with no problems. At present the site is running under WorPress 4.7.9 and php 7.0.28. I intend to update to latest php (7.2) and WordPress (4.9.4) versions as soon as possible. When I have checked the php compatibility of Plainview Protect Passwords using the WordPress plugin ‘PHP Compatibility Checker’ by WPengine I receive a report with 15 warnings and 3 errors.
    Please can you tell me if the plugin will work correctly under php 7.1 /php 7.2 ?

    Thanks in advance

    The output from the report is:

    Name: Plainview Protect Passwords

    FILE: wp-content/plugins/plainview-protect-passwords/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: wp-content/plugins/plainview-protect-passwords/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: wp-content/plugins/plainview-protect-passwords/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: wp-content/plugins/plainview-protect-passwords/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: wp-content/plugins/plainview-protect-passwords/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: wp-content/plugins/plainview-protect-passwords/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
    ————————————————————————————————————————-

    FILE: wp-content/plugins/plainview-protect-passwords/src/traits/admin_menu.php
    ————————————————————————————————————
    FOUND 2 ERRORS AFFECTING 2 LINES
    ————————————————————————————————————
    37 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
    136 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
    ————————————————————————————————————

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author edward_plainview

    (@edward_plainview)

    Those PHP compatibility test things aren’t 100%.

    I’ve got the plugin activated on my install and I’m on PHP 7.0.27-0+deb9u1.

    So don’t worry about it. ??

    Thread Starter panoreel

    (@panoreel)

    Hi Edward,

    Thanks for the quick reply. I intend initially to upgrade our php from current version 7.0.28 to version 7.1. You think I should have no issues with your plugin? It is indeed ‘lighter’ compared to a couple of other plugins I must check before upgrading, so can I mark you plugin as compatible ? ??

    Kind Regards

    Plugin Author edward_plainview

    (@edward_plainview)

    I don’t see any reason to worry. And if you do encounter problems, just write me and I’ll see if I can scrounge together a php 7.1.

    Thread Starter panoreel

    (@panoreel)

    Thanks again for the reply – I’ll mark plugin as probably compatible. Hopefully, I’ll get no issues and I’ll let you know if anything crops up.

    Kind Regards

    Plugin works fine for me, using PHP 7.2.8.

    Best Regards

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