• Resolved Ov3rfly

    (@ov3rfly)


    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 be null depending on server setup and is passed to htmlspecialchars() 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)
  • Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Hi,

    Thanks for the report. This is already previously adjusted in our development version and there will be no deprecation notice in subsequent releases.

    David

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 …’ is closed to new replies.