Title: Deprecated PHP
Last modified: May 2, 2025

---

# Deprecated PHP

 *  [Malae](https://wordpress.org/support/users/malae/)
 * (@malae)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/deprecated-php-16/)
 * Hello, Can you fix the following deprecated PHP?
 *     ```wp-block-code
       FILE: third-party/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php FOUND 26 ERRORS AND 0 WARNINGS AFFECTING 20 LINES1144 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead1176 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead1179 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead1184 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead1192 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead1201 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead1203 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead1506 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead1533 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead1538 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead1548 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead2055 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead2152 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead2153 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead2157 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead2253 | ERROR | The constant "MCRYPT_MODE_ECB" is deprecated since PHP 7.1 and removed since PHP 7.22253 | ERROR | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.22253 | ERROR | The constant "MCRYPT_MODE_CFB" is deprecated since PHP 7.1 and removed since PHP 7.22253 | ERROR | The constant "MCRYPT_MODE_NOFB" is deprecated since PHP 7.1 and removed since PHP 7.22253 | ERROR | The constant "MCRYPT_MODE_OFB" is deprecated since PHP 7.1 and removed since PHP 7.22253 | ERROR | The constant "MCRYPT_MODE_STREAM" is deprecated since PHP 7.1 and removed since PHP 7.22254 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead2255 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead2260 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead2260 | ERROR | The constant "MCRYPT_MODE_ECB" is deprecated since PHP 7.1 and removed since PHP 7.2 2265 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
       ```
   

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

 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/deprecated-php-16/#post-18446459)
 * Thanks for reaching out [@malae](https://wordpress.org/support/users/malae/).
   The deprecation error you highlighted is coming from a third party resource we
   use within Site Kit. Such deprecation error shouldn’t have any impact on Site
   Kit functionality.
 * While I will check this specific error with the team, it’s also possible that
   we can’t update the library just yet, to ensure users of PHP 7.1 or below don’t
   face any errors.
 * I’ll report back to you here once I have any update, which may be next week at
   some stage. As mentioned, you shouldn’t be facing any loss of functionality, 
   but if you do have any questions on this in the meantime, be sure to let me know.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/deprecated-php-16/#post-18447227)
 * Just to make you aware that we’re already using the latest version of [that library](https://github.com/phpseclib/phpseclib).
   This means that any updates to that library must be done from those maintaining
   the library. As mentioned above, this shouldn’t impact any Site Kit functionality,
   and hopefully there will be an update shortly. If you find otherwise, let me 
   know and I’d be happy to review.

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

The topic ‘Deprecated PHP’ is closed to new replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

## Tags

 * [deprecated.php](https://wordpress.org/support/topic-tag/deprecated-php/)

 * 2 replies
 * 2 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [11 months, 3 weeks ago](https://wordpress.org/support/topic/deprecated-php-16/#post-18447227)
 * Status: not resolved