Title: PHP 8 compatibility
Last modified: January 13, 2023

---

# PHP 8 compatibility

 *  Resolved [Frank Gomez](https://wordpress.org/support/users/frank6tg/)
 * (@frank6tg)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-8-compatibility-93/)
 *     ```wp-block-code
       I had problems with PHP 8 on this website and the report shows these problems.
   
       ..aikidosarasota.com/html/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.php
   
       FOUND 26 ERRORS AFFECTING 20 LINES
   
       1142 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       1174 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       1177 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       1182 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       1190 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       1199 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       1201 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       1504 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       1531 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       1536 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       1546 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       2053 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       2150 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       2151 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       2155 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       2251 | ERROR | The constant "MCRYPT_MODE_ECB" is deprecated since PHP 7.1 and removed since PHP 7.2
       2251 | ERROR | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2
       2251 | ERROR | The constant "MCRYPT_MODE_CFB" is deprecated since PHP 7.1 and removed since PHP 7.2
       2251 | ERROR | The constant "MCRYPT_MODE_NOFB" is deprecated since PHP 7.1 and removed since PHP 7.2
       2251 | ERROR | The constant "MCRYPT_MODE_OFB" is deprecated since PHP 7.1 and removed since PHP 7.2
       2251 | ERROR | The constant "MCRYPT_MODE_STREAM" is deprecated since PHP 7.1 and removed since PHP 7.2
       2252 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       2253 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       2258 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       2258 | ERROR | The constant "MCRYPT_MODE_ECB" is deprecated since PHP 7.1 and removed since PHP 7.2
       2263 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
       | | instead
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-8-compatibility-93%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [contemplate](https://wordpress.org/support/users/contemplate/)
 * (@contemplate)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-8-compatibility-93/#post-16373533)
 * Same here. Just ran a PHP 8 compatibility scan on numerous client sites that 
   use this plugin. This file come up with 26 errors:
   /wp-mail-smtp/vendor_prefixed/
   phpseclib/phpseclib/phpseclib/Crypt/Common/SymmetricKey.phpWhen will this be 
   ready for PHP 8?
 *  [contemplate](https://wordpress.org/support/users/contemplate/)
 * (@contemplate)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-8-compatibility-93/#post-16373545)
 * OK apparently this was asked on this thread and the advise was to ignore the 
   errors: [https://wordpress.org/support/topic/php-8-0-compatibility-20/](https://wordpress.org/support/topic/php-8-0-compatibility-20/)
   
   Odd this library hasn’t been removed yet from the plugin.
 *  [contemplate](https://wordpress.org/support/users/contemplate/)
 * (@contemplate)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-8-compatibility-93/#post-16373553)
 * Well I attempted to upgrade to PHP 8 and the site gave me a critical error so
   I had to downgrade again.
 *  Thread Starter [Frank Gomez](https://wordpress.org/support/users/frank6tg/)
 * (@frank6tg)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-8-compatibility-93/#post-16373554)
 * This is explains why it still works on PHP 8. So I guess it has some reverse 
   compatibility for users who are still using PHP 7.4
 *  [contemplate](https://wordpress.org/support/users/contemplate/)
 * (@contemplate)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-8-compatibility-93/#post-16375573)
 * Nevermind I had another snippet causing the PHP 8 error. This plugin can safely
   allow for PHP 8.

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

The topic ‘PHP 8 compatibility’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [contemplate](https://wordpress.org/support/users/contemplate/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/php-8-compatibility-93/#post-16375573)
 * Status: resolved