PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 …
-
Getting these warnings in
debug.log
when in UpdraftPlus backend:[05-Feb-2024 20:51:47 UTC] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in ../wp-content/plugins/updraftplus/templates/wp-admin/advanced/site-info.php on line 67
Reason is result of
$wpdb->get_var('SELECT @@GLOBAL.sql_mode')
can benull
depending on server setup and is passed tohtmlspecialchars()
without checking content of result.67: $updraftplus_admin->settings_debugrow(__('Current SQL mode:', 'updraftplus'), htmlspecialchars($wpdb->get_var('SELECT @@GLOBAL.sql_mode')));
UpdraftPlus 1.23.16, WordPress 6.4.3, PHP 8.1.x
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 …’ is closed to new replies.