Title: PHP 8.2 warnings/errors in plugin
Last modified: September 6, 2024

---

# PHP 8.2 warnings/errors in plugin

 *  Resolved [dmpinder](https://wordpress.org/support/users/dmpinder/)
 * (@dmpinder)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-8-2-warnings-errors-in-plugin/)
 * Hi,
 * When checking your plugin for PHP 8.2 compatibility, these warnings and errors
   are found. Can you please update your plugin to be fully compatible with 8.2 
   and preferably 8.3 as well?
 *     ```wp-block-code
       FILE: public/app/plugins/patchstack/includes/2fa/polyfill/lib/byte_safe_strings.php------------------------------------------------------------------------------------------------------------------------FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 2 LINES------------------------------------------------------------------------------------------------------------------------ 33 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 and removed since PHP 8.0    |         | (PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecatedRemoved) 33 | ERROR   | The constant "MB_OVERLOAD_STRING" is removed since PHP 8.0    |         | (PHPCompatibility.Constants.RemovedConstants.mb_overload_stringRemoved) 87 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 and removed since PHP 8.0    |         | (PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecatedRemoved) 87 | ERROR   | The constant "MB_OVERLOAD_STRING" is removed since PHP 8.0    |         | (PHPCompatibility.Constants.RemovedConstants.mb_overload_stringRemoved)------------------------------------------------------------------------------------------------------------------------FILE: public/app/plugins/patchstack/includes/2fa/polyfill/lib/random_bytes_mcrypt.php------------------------------------------------------------------------------------------------------------------------FOUND 3 ERRORS AFFECTING 1 LINE------------------------------------------------------------------------------------------------------------------------ 60 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or    |       | OpenSSL instead (PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_create_ivDeprecatedRemoved) 60 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or    |       | pecl/mcrypt once available instead    |       | (PHPCompatibility.Extensions.RemovedExtensions.mcryptDeprecatedRemoved) 60 | ERROR | The constant "MCRYPT_DEV_URANDOM" is deprecated since PHP 7.1 and removed since PHP 7.2    |       | (PHPCompatibility.Constants.RemovedConstants.mcrypt_dev_urandomDeprecatedRemoved)------------------------------------------------------------------------------------------------------------------------
       ```
   

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

 *  Plugin Author [Patchstack](https://wordpress.org/support/users/patchstack/)
 * (@patchstack)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-8-2-warnings-errors-in-plugin/#post-18003239)
 * Hello,
 * The files that were detected with your script are part of a “polyfill”. The purpose
   of a polyfill is to provide backwards compatibility to older PHP versions which
   is why it is referencing to functions that may no longer be supported. It does
   not actually call these functions on newer PHP versions and should not be a cause
   of concern.
 *  Thread Starter [dmpinder](https://wordpress.org/support/users/dmpinder/)
 * (@dmpinder)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-8-2-warnings-errors-in-plugin/#post-18003999)
 * Thanks for the update!

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

The topic ‘PHP 8.2 warnings/errors in plugin’ is closed to new replies.

 * ![](https://ps.w.org/patchstack/assets/icon.svg?rev=2622691)
 * [Patchstack - WordPress & Plugins Security](https://wordpress.org/plugins/patchstack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/patchstack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/patchstack/)
 * [Active Topics](https://wordpress.org/support/plugin/patchstack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/patchstack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/patchstack/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dmpinder](https://wordpress.org/support/users/dmpinder/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/php-8-2-warnings-errors-in-plugin/#post-18003999)
 * Status: resolved