Title: Compatibility PHP 7.1 errors
Last modified: March 1, 2018

---

# Compatibility PHP 7.1 errors

 *  [Fafiou](https://wordpress.org/support/users/fafiou/)
 * (@fafiou)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/compatibility-php-7-1-errors/)
 * Hello,
 * I’ve seen in a post on the forum that W3 is PHP 7.1 compatible.
    I’ve run the
   PHP Compatibility Checker plugin.
 * RESULT: 4 warnings, 8 errors
 * REPORT:
 * /wp-content/plugins/w3-total-cache/lib/Azure/MicrosoftAzureStorage/Common/Internal/
   Utilities.php
    ——————————————————————————————————————————————————– FOUND 0 ERRORS
   AND 4 WARNINGS AFFECTING 3 LINES ——————————————————————————————————————————————————–
   710 | WARNING | Function mcrypt_encrypt() is deprecated since PHP 7.1; Use OpenSSL
   instead 710 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl(
   preferred) or pecl/mcrypt once available instead 711 | WARNING | The constant“
   MCRYPT_RIJNDAEL_128” is deprecated since PHP 7.1 714 | WARNING | The constant“
   MCRYPT_MODE_ECB” is deprecated since PHP 7.1 ——————————————————————————————————————————————————–
 * FILE: /wp-content/plugins/w3-total-cache/ConfigDbStorage.php
    ————————————————————————————————————–
   FOUND 8 ERRORS AFFECTING 8 LINES ————————————————————————————————————– 227 | 
   ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 
   7.0; Use mysqli instead 229 | ERROR | Extension ‘mysql_’ is deprecated since 
   PHP 5.5 and removed since PHP 7.0; Use mysqli instead 250 | ERROR | Extension‘
   mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
   289 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since
   PHP 7.0; Use mysqli instead 326 | ERROR | Extension ‘mysql_’ is deprecated since
   PHP 5.5 and removed since PHP 7.0; Use mysqli instead 347 | ERROR | Extension‘
   mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
   365 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since
   PHP 7.0; Use mysqli instead 379 | ERROR | Extension ‘mysql_’ is deprecated since
   PHP 5.5 and removed since PHP 7.0; Use mysqli instead ————————————————————————————————————–
 * I hope this may help you.
 * Fabien
    -  This topic was modified 8 years, 4 months ago by [Fafiou](https://wordpress.org/support/users/fafiou/).

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

 *  [dadaas](https://wordpress.org/support/users/dadaas/)
 * (@dadaas)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/compatibility-php-7-1-errors/#post-10047919)
 * Yes, confirmed by me.
 * And maybe this incompatibility with php 7.0 is triggering my error from different
   topic:
    [https://wordpress.org/support/topic/error-in-wp-db-php/](https://wordpress.org/support/topic/error-in-wp-db-php/)
 *  [panoreel](https://wordpress.org/support/users/panoreel/)
 * (@panoreel)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/compatibility-php-7-1-errors/#post-10120317)
 * Hi,
 * I would also like a definitive answer on this. I would like to upgrade to php
   7.2 or at least 7.1 At the moment a couple of plugins are preventing me from 
   doing this.
 * Report from compatibility checker gives the following for W3TC:
 * Name: W3 Total Cache
 * FILE: wp-content/plugins/w3-total-cache/lib/Azure/GuzzleHttp/Promise/functions.
   php
    ———————————————————————————————————— FOUND 0 ERRORS AND 3 WARNINGS AFFECTING
   3 LINES ———————————————————————————————————— 222 | WARNING | Function each() 
   is deprecated since PHP 7.2; Use a foreach loop instead 257 | WARNING | Function
   each() is deprecated since PHP 7.2; Use a foreach loop instead 313 | WARNING 
   | Function each() is deprecated since PHP 7.2; Use a foreach loop instead ————————————————————————————————————
 * FILE: wp-content/plugins/w3-total-cache/lib/Azure/MicrosoftAzureStorage/Common/
   Internal/Utilities.php
    ——————————————————————————————————————————————————- FOUND
   4 ERRORS AFFECTING 3 LINES ——————————————————————————————————————————————————-
   710 | ERROR | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed
   since PHP 7.2; Use OpenSSL instead 710 | ERROR | Extension ‘mcrypt’ is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 711 | ERROR | The constant “MCRYPT_RIJNDAEL_128” is deprecated
   since PHP 7.1 and removed since PHP 7.2 714 | ERROR | The constant “MCRYPT_MODE_ECB”
   is deprecated since PHP 7.1 and removed since PHP 7.2 ——————————————————————————————————————————————————-
 * FILE: wp-content/plugins/w3-total-cache/lib/CSSTidy/class.csstidy.php
    ———————————————————————————————–
   FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ———————————————————————————————–
   1083 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop
   instead 1122 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach
   loop instead ———————————————————————————————–
 * FILE: wp-content/plugins/w3-total-cache/lib/Minify/HTTP/Encoder.php
    ———————————————————————————————
   FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ———————————————————————————————
   92 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP
   7.2 93 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since
   PHP 7.2 ———————————————————————————————
 * FILE: wp-content/plugins/w3-total-cache/lib/Minify/Minify/Cache/W3TCDerived.php
   ———————————————————————————————————
   FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ———————————————————————————————————
   56 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP
   7.2 ———————————————————————————————————
 * FILE: wp-content/plugins/w3-total-cache/lib/Minify/Minify/JS/ClosureCompiler.
   php
    ———————————————————————————————————- FOUND 0 ERRORS AND 1 WARNING AFFECTING
   1 LINE ———————————————————————————————————- 52 | WARNING | INI directive ‘mbstring.
   func_overload’ is deprecated since PHP 7.2 ———————————————————————————————————-
 * FILE: wp-content/plugins/w3-total-cache/lib/Minify/Minify/YUI/CssCompressor.php
   ———————————————————————————————————
   FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ———————————————————————————————————
   104 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP
   7.2 ———————————————————————————————————
 * FILE: wp-content/plugins/w3-total-cache/lib/Minify/JSMin.php
    ————————————————————————————–
   FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ————————————————————————————– 116
   | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2————————————————————————————–
 * FILE: wp-content/plugins/w3-total-cache/lib/Minify/Minify.php
    —————————————————————————————
   FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ————————————————————————————— 350
   | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2—————————————————————————————
 * FILE: wp-content/plugins/w3-total-cache/ConfigDbStorage.php
    ————————————————————————————————————
   FOUND 8 ERRORS AFFECTING 8 LINES ———————————————————————————————————— 227 | ERROR
   | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use
   mysqli instead 229 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and
   removed since PHP 7.0; Use mysqli instead 250 | ERROR | Extension ‘mysql_’ is
   deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead 289 | 
   ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 
   7.0; Use mysqli instead 326 | ERROR | Extension ‘mysql_’ is deprecated since 
   PHP 5.5 and removed since PHP 7.0; Use mysqli instead 347 | ERROR | Extension‘
   mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
   365 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since
   PHP 7.0; Use mysqli instead 379 | ERROR | Extension ‘mysql_’ is deprecated since
   PHP 5.5 and removed since PHP 7.0; Use mysqli instead ————————————————————————————————————
 *  [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/compatibility-php-7-1-errors/#post-10645102)
 * [@fafiou](https://wordpress.org/support/users/fafiou/) – Saw the same warnings,
   but here are my thoughts, may be wrong but based on the locations of the potential
   issues you may not have trouble if:
 * – Your not using Azure for any caching methods.
    – You are not using the DB caching
   methods – You are not using minify (use AutoOptimize instead).
 * Disk: Enhanced, Memcache & Redis for instance seem untouched by the issues listed
   in our reports.
 * Will be testing it today on 7.1 & maybe 7.2 once I clear up other potential issues.
    -  This reply was modified 7 years, 10 months ago by [Daniel Iser](https://wordpress.org/support/users/danieliser/).

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

The topic ‘Compatibility PHP 7.1 errors’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

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

 * 3 replies
 * 4 participants
 * Last reply from: [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/compatibility-php-7-1-errors/#post-10645102)
 * Status: not resolved