Title: Passing null to parameter errors PHP 8.2.20
Last modified: June 16, 2024

---

# Passing null to parameter errors PHP 8.2.20

 *  Resolved [paulroberts](https://wordpress.org/support/users/paulroberts/)
 * (@paulroberts)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/passing-null-to-parameter-errors-php-8-2-20/)
 * I’m getting these errors in the log with PHP 8.2.20
 * `[16-Jun-2024 03:01:33] 1. Trying to create a WordPress export to XML file …
   [
   16-Jun-2024 03:01:34] DEPRECATED: strlen(): Passing null to parameter #1 ($string)
   of type string is deprecated[16-Jun-2024 03:01:34] DEPRECATED: preg_replace():
   Passing null to parameter #3 ($subject) of type array|string is deprecated[16-
   Jun-2024 03:01:34] DEPRECATED: strlen(): Passing null to parameter #1 ($string)
   of type string is deprecated[16-Jun-2024 03:01:34] DEPRECATED: preg_replace():
   Passing null to parameter #3 ($subject) of type array|string is deprecated[16-
   Jun-2024 03:01:34] DEPRECATED: strlen(): Passing null to parameter #1 ($string)
   of type string is deprecated[16-Jun-2024 03:01:34] DEPRECATED: preg_replace():
   Passing null to parameter #3 ($subject) of type array|string is deprecated[16-
   Jun-2024 03:01:34] DEPRECATED: strlen(): Passing null to parameter #1 ($string)
   of type string is deprecated[16-Jun-2024 03:01:34] DEPRECATED: preg_replace():
   Passing null to parameter #3 ($subject) of type array|string is deprecated[16-
   Jun-2024 03:01:34] DEPRECATED: strlen(): Passing null to parameter #1 ($string)
   of type string is deprecated[16-Jun-2024 03:01:34] DEPRECATED: preg_replace():
   Passing null to parameter #3 ($subject) of type array|string is deprecated[16-
   Jun-2024 03:01:34] DEPRECATED: strlen(): Passing null to parameter #1 ($string)
   of type string is deprecated[16-Jun-2024 03:01:34] DEPRECATED: preg_replace():
   Passing null to parameter #3 ($subject) of type array|string is deprecated

Viewing 1 replies (of 1 total)

 *  Plugin Support [Saransh](https://wordpress.org/support/users/saranshwpm/)
 * (@saranshwpm)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/passing-null-to-parameter-errors-php-8-2-20/#post-17831854)
 * Hello,
 * Thank you for reaching out.
 * Regarding the warnings you mentioned, please do not worry as they won’t affect
   your backup files. These warnings are caused by the latest PHP 8.2, which even
   WordPress itself does not fully support yet(you can take a look [here](https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/)).
   This means that WordPress, your themes, or plugins might have random issues with
   this PHP version.
 * I would suggest you ignore the warnings or consider changing the PHP version 
   to a more well-supported one like 8.0 or 8.1.
 * Let us know if you need any further assistance.
 * Best regards,

Viewing 1 replies (of 1 total)

The topic ‘Passing null to parameter errors PHP 8.2.20’ is closed to new replies.

 * ![](https://ps.w.org/backwpup/assets/icon-256x256.png?rev=3236141)
 * [BackWPup – WordPress Backup & Restore Plugin](https://wordpress.org/plugins/backwpup/)
 * [Support Threads](https://wordpress.org/support/plugin/backwpup/)
 * [Active Topics](https://wordpress.org/support/plugin/backwpup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/backwpup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/backwpup/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Saransh](https://wordpress.org/support/users/saranshwpm/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/passing-null-to-parameter-errors-php-8-2-20/#post-17831854)
 * Status: resolved