Title: PHP 7 errors with the plugin
Last modified: October 18, 2016

---

# PHP 7 errors with the plugin

 *  Resolved [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-errors-with-the-plugin/)
 * I’ve tested all my plugins with this PHP linter:
    [https://wordpress.org/plugins/php-compatibility-checker/](https://wordpress.org/plugins/php-compatibility-checker/)
 * Unfortunately I found many problems with your plugin to use PHP 7
 * Thank you for help

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

 *  Plugin Author [KeyCDN](https://wordpress.org/support/users/keycdn/)
 * (@keycdn)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-errors-with-the-plugin/#post-8324749)
 * Many? Please provide more details.
 *  Thread Starter [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-errors-with-the-plugin/#post-8324810)
 * Hi, here are more details:
 * FILE: …/wp-content/plugins/cache-enabler/inc/cache_enabler.class.php
    —————————————————————————————
   FOUND 1 ERROR AFFECTING 1 LINE ————————————————————————————— 1328 | ERROR | preg_replace()–/
   e modifier is forbidden since PHP 7.0 —————————————————————————————
 * Thanks for help
 *  Plugin Author [KeyCDN](https://wordpress.org/support/users/keycdn/)
 * (@keycdn)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-errors-with-the-plugin/#post-8324841)
 * That is a false-positive.
    [https://github.com/wimg/PHPCompatibility/pull/266](https://github.com/wimg/PHPCompatibility/pull/266)
   [https://wordpress.org/support/topic/wrong-error-preg_replace-e-modifier-is-forbidden-since-php-7-0/](https://wordpress.org/support/topic/wrong-error-preg_replace-e-modifier-is-forbidden-since-php-7-0/)
 * The Cache Enabler is fully compliant with PHP 7.
 *  Thread Starter [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-errors-with-the-plugin/#post-8324853)
 * Thank you for the fast reply. Your plugin is very good. I used before cachify…
 *  Thread Starter [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-errors-with-the-plugin/#post-8324922)
 * Hi, I have tested your plugin with PHP Compatibility Checker for php7 and the
   plugin found some errors and warnings about use with php7:
 * FILE: …/plugins/wp-survey-and-quiz-tool/lib/Wpsqt/Widget.php
    ————————————————————————————————–
   FOUND 1 ERROR AFFECTING 1 LINE ————————————————————————————————– 10 | ERROR |
   Use of deprecated PHP4 style class constructor is not supported since PHP 7 ————————————————————————————————–
 * FILE: …/plugins/wp-survey-and-quiz-tool/lib/Wpsqt/Page/Main/Results/Mark.php
   ——————————————————————————————————————
   FOUND 1 ERROR AFFECTING 1 LINE —————————————————————————————————————— 86 | ERROR
   | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – 
   use mysqli instead. ——————————————————————————————————————
 * FILE: …/plugins/wp-survey-and-quiz-tool/lib/Wpsqt/Page/Maintenance/backupfunction.
   php
    ———————————————————————————————————————————————— FOUND 11 ERRORS AFFECTING
   9 LINES ———————————————————————————————————————————————— 7 | ERROR | Extension‘
   mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
   8 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since 
   PHP 7.0 – use mysqli instead. 14 | ERROR | Extension ‘mysql_’ is deprecated since
   PHP 5.5 and removed since PHP 7.0 – use mysqli instead. 15 | ERROR | Extension‘
   mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
   28 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since
   PHP 7.0 – use mysqli instead. 29 | ERROR | Extension ‘mysql_’ is deprecated since
   PHP 5.5 and removed since PHP 7.0 – use mysqli instead. 32 | ERROR | Extension‘
   mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
   32 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since
   PHP 7.0 – use mysqli instead. 37 | ERROR | Extension ‘mysql_’ is deprecated since
   PHP 5.5 and removed since PHP 7.0 – use mysqli instead. 43 | ERROR | Extension‘
   ereg’ is deprecated since PHP 5.3 and removed since PHP 7.0 – use pcre instead.
   43 | ERROR | The use of function ereg_replace is discouraged from PHP version
   5.3 and forbidden from PHP version 7.0; use preg_replace instead ——————————————————————————————-
 * Tahnk you for help
 *  Plugin Author [KeyCDN](https://wordpress.org/support/users/keycdn/)
 * (@keycdn)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-errors-with-the-plugin/#post-8324952)
 * That is a different plugin.
 *  Thread Starter [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-errors-with-the-plugin/#post-8324980)
 * Sorry for the wrong post.

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

The topic ‘PHP 7 errors with the plugin’ is closed to new replies.

 * ![](https://ps.w.org/cache-enabler/assets/icon.svg?rev=2442383)
 * [Cache Enabler](https://wordpress.org/plugins/cache-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-enabler/reviews/)

## Tags

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

 * 7 replies
 * 2 participants
 * Last reply from: [mustermann](https://wordpress.org/support/users/mustermann/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-errors-with-the-plugin/#post-8324980)
 * Status: resolved