Title: Deprecated: preg_replace():
Last modified: March 2, 2025

---

# Deprecated: preg_replace():

 *  Resolved [luke630](https://wordpress.org/support/users/luke630/)
 * (@luke630)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/deprecated-preg_replace-4/)
 * 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.2Server
   PHP Version: 8.1.31WordPress Version 6.7.2Theme: 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](https://wordpress.org/support/users/nrobertsudp/)
 * (@nrobertsudp)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/deprecated-preg_replace-4/#post-18339301)
 * 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](https://wordpress.org/support/users/luke630/)
 * (@luke630)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/deprecated-preg_replace-4/#post-18341683)
 * Thank you for the response.
    -  This reply was modified 1 year, 3 months ago by [luke630](https://wordpress.org/support/users/luke630/).
 *  Plugin Support [nrobertsudp](https://wordpress.org/support/users/nrobertsudp/)
 * (@nrobertsudp)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/deprecated-preg_replace-4/#post-18343438)
 * Hi Luke,
 * Thank you very much, I’m happy to have helped.
   Best regards,Nick
 *  [Stephen Bernhardt](https://wordpress.org/support/users/sabernhardt/)
 * (@sabernhardt)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/deprecated-preg_replace-4/#post-18432449)
 * I am aware of one deprecation message on the bottom of the Updates page, which
   occurs because the [`$notice` variable in `admin.php`](https://plugins.trac.wordpress.org/browser/updraftplus/tags/1.25.5/admin.php?marks=1203-1213#L1203)
   might not be a string, and then it runs through `wp_kses()`.
 *  [sherriw6](https://wordpress.org/support/users/sherriw6/)
 * (@sherriw6)
 * [1 year ago](https://wordpress.org/support/topic/deprecated-preg_replace-4/#post-18500993)
 * 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:
 *     ```wp-block-code
       #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.

 * ![](https://ps.w.org/updraftplus/assets/icon-256x256.jpg?rev=1686200)
 * [UpdraftPlus: WP Backup & Migration Plugin](https://wordpress.org/plugins/updraftplus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/updraftplus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/updraftplus/)
 * [Active Topics](https://wordpress.org/support/plugin/updraftplus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/updraftplus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/updraftplus/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 5 replies
 * 6 participants
 * Last reply from: [sherriw6](https://wordpress.org/support/users/sherriw6/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/deprecated-preg_replace-4/#post-18500993)
 * Status: resolved