• Resolved luke630

    (@luke630)


    Hi,
    Receiving error :
    Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in public_html/mysitehere.com/wp-includes/kses.php on line 1805

    UpdraftPlus – Backup/Restore Version 1.25.2
    Server PHP Version: 8.1.31
    WordPress Version 6.7.2
    Theme: Hello Elementor Version: 3.3.0

    When I deactivate UpdraftPlus the error message goes away.

    I like your plugin and would appreciate help fixing this.
    Thank you,


Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support nrobertsudp

    (@nrobertsudp)

    Hi Luke,

    The deprecation messages are informative for developers, not a warning or error message.
    They highlight items which will be adjusted/removed in a future release. They are normal.
    The presence of these messages won’t affect the normal plugin operation in any way at all.

    Best regards,

    Nick

    Thread Starter luke630

    (@luke630)

    Thank you for the response.

    • This reply was modified 1 year, 3 months ago by luke630.
    Plugin Support nrobertsudp

    (@nrobertsudp)

    Hi Luke,

    Thank you very much, I’m happy to have helped.

    Best regards,

    Nick

    I am aware of one deprecation message on the bottom of the Updates page, which occurs because the $notice variable in admin.php might not be a string, and then it runs through wp_kses().

    sherriw6

    (@sherriw6)

    Deprecation messages do represent things that should be fixed, because they will break in future versions of PHP. This error is occurring on PHP 8.1 for us, and we’d like to upgrade. Is there an ETA on when this will be fixed? It’s also making our dev site spit out notices.

    Not sure why this is marked as resolved, but it was reported 3 months ago and is still not fixed.

    Stack trace:

    #0 /var/www/example.com/wp-content/plugins/updraftplus/admin.php(1215): wp_kses(NULL, Array) 
    #1 /var/www/example.com/wp-includes/class-wp-hook.php(324): UpdraftPlus_Admin->core_upgrade_preamble('')
    #2 /var/www/example.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #3 /var/www/example.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #4 /var/www/example.com/wp-admin/update-core.php(1139): do_action('...')

    Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/example.com/wp-includes/kses.php on line 1809
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Deprecated: preg_replace():’ is closed to new replies.