Title: PHP7: Deprecated error
Last modified: March 8, 2017

---

# PHP7: Deprecated error

 *  Resolved [graafg](https://wordpress.org/support/users/graafg/)
 * (@graafg)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php7-deprecated-error/)
 * I am getting these errors:
 * PHP Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; Math_BigInteger has a deprecated constructor in /
   www/wp-content/plugins/loginizer/IPv6/BigInteger.php on line 190
 * Can this be fixed?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [pufik](https://wordpress.org/support/users/pufik/)
 * (@pufik)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php7-deprecated-error/#post-8897338)
 * Oh, Yes! (php=7.2;WP=4.7.3;loginizer=1.3.3) The same errors:
    Deprecated: Methods
   with the same name as their class will not be constructors in a future version
   of PHP; Math_BigInteger has a deprecated constructor in …../wp-content/plugins/
   loginizer/IPv6/BigInteger.php on line 190
 *  [pufik](https://wordpress.org/support/users/pufik/)
 * (@pufik)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php7-deprecated-error/#post-8901705)
 * Loginizer on PHP 7+ need same updates
    in file “wp-content/plugins/loginizer/
   IPv6/BigInteger.php” : // on line 267 change ‘**function Math_BigInteger(**‘ 
   to ‘**function __construct(**‘
 *  // on line 448 (after body of function Math_BigInteger ) insert
    **public function
   Math_BigInteger($x = 0, $base = 10){self::__construct($x,$base);}**
 * P.S. It’s seems that Loginizer use “Math_BigInteger 1.0.2” for 5 and 6 PHP. There
   is a new version “Math_BigInteger 1.0.3”, but it have to many strange & amazing
   changes (OpenSSL, phpinfo, 64bits…). This really should be checked before use.
 * Maybe it’s time to leave work. We’ll need to look at the behavior of the developers.))))
 *  [stopspazzing](https://wordpress.org/support/users/stopspazzing/)
 * (@stopspazzing)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php7-deprecated-error/#post-8903691)
 * /wp-content/plugins/loginizer/IPv6/BigInteger.php
    ———————————————————————————————-
   FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ———————————————————————————————-
   267 | WARNING | Use of deprecated PHP4 style class constructor is not supported
   since PHP 7. ———————————————————————————————-
 * Please fix so I can safely upgrade to php7 or ill just not support this plugin
   anymore.
 *  Plugin Contributor [loginizer](https://wordpress.org/support/users/loginizer/)
 * (@loginizer)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php7-deprecated-error/#post-8914829)
 * Hi,
 * I will fix this ASAP.
 * Regards
 *  Plugin Contributor [loginizer](https://wordpress.org/support/users/loginizer/)
 * (@loginizer)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php7-deprecated-error/#post-8924934)
 * Hi,
 * I have launched a new version to fix this.
 * Regards
 *  Thread Starter [graafg](https://wordpress.org/support/users/graafg/)
 * (@graafg)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php7-deprecated-error/#post-8925818)
 * Thx

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PHP7: Deprecated error’ is closed to new replies.

 * ![](https://ps.w.org/loginizer/assets/icon-256x256.png?rev=1381093)
 * [Loginizer](https://wordpress.org/plugins/loginizer/)
 * [Support Threads](https://wordpress.org/support/plugin/loginizer/)
 * [Active Topics](https://wordpress.org/support/plugin/loginizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/loginizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/loginizer/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [graafg](https://wordpress.org/support/users/graafg/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/php7-deprecated-error/#post-8925818)
 * Status: resolved