• Resolved Jarrod Whitley

    (@jarrodwhitley0518)


    I ran the PHP compatibility checker on my site and your plugin has a lot of errors. I’ve added the output below. There are 22 warnings where your code will be deprecated in PHP 7.2. My host and many others are requiring us to upgrade to PHP 7.2 by 12/31/18 since PHP 7 will be unsupported thereafter.

    When will your plugin be 7.2 ready?

    Deprecated code warnings:

    FILE: /nas/content/live/medicarebeauty/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.at.php
    ——————————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————————————–
    64 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ——————————————————————————————————————–

    FILE: /nas/content/live/medicarebeauty/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.ip.apnic.php
    ————————————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————————————————–
    76 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ————————————————————————————————————————–

    FILE: /nas/content/live/medicarebeauty/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.ip.afrinic.php
    —————————————————————————————————————————-
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    —————————————————————————————————————————-
    63 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    —————————————————————————————————————————-

    FILE: /nas/content/live/medicarebeauty/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.utils.php
    ———————————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————————————————————–
    116 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ———————————————————————————————————————–

    FILE: /nas/content/live/medicarebeauty/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.nu.php
    ——————————————————————————————————————–
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    ——————————————————————————————————————–
    46 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    54 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    66 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ——————————————————————————————————————–

    FILE: /nas/content/live/medicarebeauty/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.client.php
    ————————————————————————————————————————
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    ————————————————————————————————————————
    328 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    364 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    523 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ————————————————————————————————————————

    FILE: /nas/content/live/medicarebeauty/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.gtld.fastdomain.php
    ———————————————————————————————————————————
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ———————————————————————————————————————————
    51 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    68 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ———————————————————————————————————————————

    FILE: /nas/content/live/medicarebeauty/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.parser.php
    ————————————————————————————————————————
    FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
    ————————————————————————————————————————
    46 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    77 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    344 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    358 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    416 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    466 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    612 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    621 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    835 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ————————————————————————————————————————

    FILE: /nas/content/live/medicarebeauty/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.zanet.php
    ———————————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————————————————————–
    53 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ———————————————————————————————————————–

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor wpsolutions

    (@wpsolutions)

    Hi,
    Those warnings are for whois library (which is a third party library not maintained by us).
    This will not affect the other more important functional parts of the plugin.

    I will check whether that library has any updates for PHP7.x and if it doesn’t then I think I will remove that feature because it has limited value since you can easily do a whois lookup online.

    Thread Starter Jarrod Whitley

    (@jarrodwhitley0518)

    I think that’s actually a great idea. I don’t know anyone who doesn’t just go to whois.com. I didn’t even realize your plugin did that. lol

    wrong support
    sorry

    • This reply was modified 5 years, 11 months ago by caouic.
    • This reply was modified 5 years, 11 months ago by caouic.

    After updating to most recent version it works very well with php 5.6, but upon running compatibility of the plugin with php 7.2. i got the following warnings. please let me know how I could fix them, especially I am not very well versed in php.
    thank you.
    here are the errors i received:
    FILE: /homepages/13/d613915188/htdocs/greenviewpublishing/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.at.php
    —————————————————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    —————————————————————————————————————————————
    64 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    —————————————————————————————————————————————

    FILE: /homepages/13/d613915188/htdocs/greenviewpublishing/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.client.php
    ——————————————————————————————————————————————-
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    ——————————————————————————————————————————————-
    328 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    364 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    523 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ——————————————————————————————————————————————-

    FILE: /homepages/13/d613915188/htdocs/greenviewpublishing/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.gtld.fastdomain.php
    —————————————————————————————————————————————————-
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    —————————————————————————————————————————————————-
    51 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    68 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    —————————————————————————————————————————————————-

    FILE: /homepages/13/d613915188/htdocs/greenviewpublishing/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.ip.afrinic.php
    ———————————————————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————————————————————————————–
    63 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ———————————————————————————————————————————————–

    FILE: /homepages/13/d613915188/htdocs/greenviewpublishing/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.ip.apnic.php
    ———————————————————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————————————————————————————
    76 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ———————————————————————————————————————————————

    FILE: /homepages/13/d613915188/htdocs/greenviewpublishing/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.nu.php
    —————————————————————————————————————————————
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    —————————————————————————————————————————————
    46 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    54 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    66 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    —————————————————————————————————————————————

    FILE: /homepages/13/d613915188/htdocs/greenviewpublishing/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.parser.php
    ——————————————————————————————————————————————-
    FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
    ——————————————————————————————————————————————-
    46 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    77 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    344 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    358 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    416 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    466 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    612 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    621 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    835 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ——————————————————————————————————————————————-

    FILE: /homepages/13/d613915188/htdocs/greenviewpublishing/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.utils.php
    ——————————————————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————————————————————
    116 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ——————————————————————————————————————————————

    FILE: /homepages/13/d613915188/htdocs/greenviewpublishing/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.zanet.php
    ——————————————————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————————————————————
    53 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ——————————————————————————————————————

    This plugin is excellent and it is unfortunate that it is not updated to php 7.2.
    From the errors above, for someone who is adept at php 7.2, it would take him/her half an our to update the plugin and put back in the lead of security plugins.

    Anyone out there who can help would be very much appreciated?

    Plugin Contributor wpsolutions

    (@wpsolutions)

    Hi @andyrogers,
    As mentioned previously, those warnings pertain to the third party library (created and maintained by somebody else) which is used for the “whois” feature.
    I will be removing that feature because it adds no significant value and you can always perform a whois lookup easily online.

    please remove it as soon as possible because it is affecting the functionality of wordpress websites at some service providers where they stopped supporting php 5.6.

    Thank you for your good work. It is very much appreciated. ??

    Andy

    Hi @wpsolutions

    Thanks for a great plugin.

    I just ran an update for it today and am still seeing the errors indicated above.

    Can you estimate a time frame when we might see the whois functionality removed? I’ll know to check after that time and will stop bugging you.

    Thanks again!

    Bruce

    Plugin Contributor wpsolutions

    (@wpsolutions)

    Hi Bruce,
    I will do another update within the next day or two in which the whois feature will have been removed.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Plugin Not Compatible With PHP 7.2’ is closed to new replies.