Title: Plugin Not Compatible With PHP 7.2
Last modified: November 13, 2018

---

# Plugin Not Compatible With PHP 7.2

 *  Resolved [Jarrod Whitley](https://wordpress.org/support/users/jarrodwhitley0518/)
 * (@jarrodwhitley0518)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-7-2/)
 * 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](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-7-2/#post-10877790)
 * 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](https://wordpress.org/support/users/jarrodwhitley0518/)
 * (@jarrodwhitley0518)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-7-2/#post-10880138)
 * 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
 *  [caouic](https://wordpress.org/support/users/caouic/)
 * (@caouic)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-7-2/#post-11012852)
 * wrong support
    sorry
    -  This reply was modified 7 years, 5 months ago by [caouic](https://wordpress.org/support/users/caouic/).
    -  This reply was modified 7 years, 5 months ago by [caouic](https://wordpress.org/support/users/caouic/).
 *  [andyrogers](https://wordpress.org/support/users/andyrogers/)
 * (@andyrogers)
 * [7 years ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-7-2/#post-11521236)
 * 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 ——————————————————————————————————————
 *  [andyrogers](https://wordpress.org/support/users/andyrogers/)
 * (@andyrogers)
 * [7 years ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-7-2/#post-11522910)
 * 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](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [7 years ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-7-2/#post-11523761)
 * Hi [@andyrogers](https://wordpress.org/support/users/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.
 *  [andyrogers](https://wordpress.org/support/users/andyrogers/)
 * (@andyrogers)
 * [7 years ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-7-2/#post-11523808)
 * 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
 *  [bruceschwalm](https://wordpress.org/support/users/bruceschwalm/)
 * (@bruceschwalm)
 * [7 years ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-7-2/#post-11557111)
 * Hi [@wpsolutions](https://wordpress.org/support/users/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](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [7 years ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-7-2/#post-11557606)
 * 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.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

## Tags

 * [firewall](https://wordpress.org/support/topic-tag/firewall/)
 * [PHP 5.6](https://wordpress.org/support/topic-tag/php-5-6/)
 * [PHP 7.2](https://wordpress.org/support/topic-tag/php-7-2/)
 * [security plugin](https://wordpress.org/support/topic-tag/security-plugin/)

 * 9 replies
 * 5 participants
 * Last reply from: [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-7-2/#post-11557606)
 * Status: resolved