Due to update server to php 7.2 I have checked the plugins in my clients website and came upon an compatibility issue.
FILE: /wp-content/plugins/wp-optimize/includes/class-updraft-smush-manager.phpFOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE 965 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4 965 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
Will this be updatet or what can I do to let it be compatible.
Please let me know.
Regards,
Ed Boon
www.visioned.net
File: wp-content/plugins/salon-booking-system/src/SLN/Third/GoogleScope.php
Error message: Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter \$file\” was changed on line 12.”
Is this anything to worry about?
]]>I received a report from my hosting provider that lists several potential errors with WordPress and PHP 7.2. These errors seem to be related to core WordPress files, not plugins.
See report (I have deleted errors relating to plugins and kept only errors relating to WordPress files in the report): https://leveluplifecoaching.com/wp-content/uploads/WP-PHP-7.2-errors.csv
Please advise.
]]>See report: https://leveluplifecoaching.com/wp-content/uploads/W3-Total-Cache-errors.csv
]]>/wp-content/plugins/wp-super-cache/wp-cache.php
————————————————————————————-
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 2 LINES
————————————————————————————-
239 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
239 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
244 | WARNING | INI directive ‘safe_mode_gid’ is deprecated since PHP 5.3 and removed since PHP 5.4
Please fix this to next update.
Thanks.
This is the warning I received about Fast Velocity Minify
FILE: /nas/content/live/condati/wp-content/plugins/fast-velocity-minify/inc/functions.php
————————————————————————————————-
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
————————————————————————————————-
35 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
327 | ERROR | The constant “PHP_OS_FAMILY” is not present in PHP version 7.1 or earlier
————————————————————————————————-
After update JetPack to 6.6.1 suddenly my site showed this ugly error:
Fatal error: Uncaught Error: Call to undefined method Jetpack_Widget_Conditions::migrate_post_type_rules() in /home/xxxxx/public_html/wp-content/plugins/jetpack/class.jetpack.php:425 Stack trace: #0 /home/xxxxx/public_html/wp-includes/class-wp-hook.php(286): Jetpack::upgrade_on_load('') #1 /home/xxxx/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /home/xxxx/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/xxxx/public_html/wp-settings.php(471): do_action('wp_loaded') #4 /home/xxxx/public_html/wp-config.php(84): require_once('/home/xxxx/...') #5 /home/xxxx/public_html/wp-load.php(37): require_once('/home/xxxx/...') #6 /home/xxxx/public_html/wp-blog-header.php(13): require_once('/home/xxxx/...') #7 /home/xxxx/public_html/index.php(17): require('/home/xxxx/...') #8 {main} thrown in /home/xxxxx/public_html/wp-content/plugins/jetpack/class.jetpack.php on line 425
Downgrading to Jetpack 6.6 solved the issue. Downgrading to PHP 7.1 solve the issue. It appears to be a problem with some sensitive functions of the plugin (good with 7.1, not working with 7.2)
]]>FILE: /home/wordpress/wp-content/plugins/bwp-recaptcha/includes/class-bwp-recaptcha.php
————————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
————————————————————————————————————
1572 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
————————————————————————————————————
FILE: /home/wordpress/wp-content/plugins/bwp-recaptcha/includes/provider/recaptcha/recaptchalib.php
——————————————————————————————————————————————————-
FOUND 4 ERRORS AFFECTING 3 LINES
——————————————————————————————————————————————————-
210 | ERROR | The constant “MCRYPT_MODE_CBC” is deprecated since PHP 7.1 and removed since PHP 7.2
211 | ERROR | The constant “MCRYPT_RIJNDAEL_128” is deprecated since PHP 7.1 and removed since PHP 7.2
213 | ERROR | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
213 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
——————————————————————————————————————————————————-
FILE: /home/wordpress/wp-content/plugins/bwp-recaptcha/bwp-recaptcha.php
———————————————————————————————————-
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————————————————-
40 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
———————————————————————————————————-
FILE: /home/wordpress/wp-content/plugins/bwp-recaptcha/vendor/kminh/bwp-framework/src/phpunit/unit-testcase.php
—————————————————————————————————————-
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
—————————————————————————————————————-
70 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
71 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
—————————————————————————————————————-