PHP 7 errors with the plugin
-
I’ve tested all my plugins with this PHP linter:
https://ww.wp.xz.cn/plugins/php-compatibility-checker/Unfortunately I found many problems with your plugin to use PHP 7
Thank you for help
-
Many? Please provide more details.
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
That is a false-positive.
https://github.com/wimg/PHPCompatibility/pull/266
https://ww.wp.xz.cn/support/topic/wrong-error-preg_replace-e-modifier-is-forbidden-since-php-7-0/The Cache Enabler is fully compliant with PHP 7.
Thank you for the fast reply. Your plugin is very good. I used before cachify …
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
That is a different plugin.
Sorry for the wrong post.
The topic ‘PHP 7 errors with the plugin’ is closed to new replies.