Title: PHP Deprecated: str_replace()
Last modified: January 18, 2024

---

# PHP Deprecated: str_replace()

 *  [Snakeman](https://wordpress.org/support/users/snakeman/)
 * (@snakeman)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-str_replace-3/)
 * Hi there,
 * got a huge amount of erros in my debug.log from wordpress with wp-appbox
 * `PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type
   array|string is deprecated in /www/htdocs/******/******/blog/wp-content/plugins/
   wp-appbox/inc/createoutput.class.php on line 670`

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Marcelismus](https://wordpress.org/support/users/marcelismus/)
 * (@marcelismus)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-str_replace-3/#post-17356051)
 * Please check 4.4.17. (Slight fix for PHP 8.1, I don’t think it will be fully 
   compatible).
 *  Thread Starter [Snakeman](https://wordpress.org/support/users/snakeman/)
 * (@snakeman)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-str_replace-3/#post-17357413)
 * after the update I got the following errors in the debug:
 * [19-Jan-2024 14:55:43 UTC] PHP Deprecated: unserialize(): Passing null to parameter#
   1 ($data) of type string is deprecated in /www/htdocs/blog/wp-content/plugins/
   wp-appbox/inc/getappinfo.class.php on line 341
   [19-Jan-2024 14:55:43 UTC] PHP
   Warning: Undefined array key “style” in /www/blog/wp-content/plugins/wp-appbox/
   wp-appbox.php on line 701[19-Jan-2024 14:55:43 UTC] PHP Warning: Undefined array
   key “style” in /www/htdocs//blog/wp-content/plugins/wp-appbox/wp-appbox.php on
   line 701[19-Jan-2024 14:55:43 UTC] PHP Deprecated: unserialize(): Passing null
   to parameter #1 ($data) of type string is deprecated in /www/htdocs//blog/wp-
   content/plugins/wp-appbox/inc/getappinfo.class.php on line 341[19-Jan-2024 14:
   55:49 UTC] PHP Deprecated: unserialize(): Passing null to parameter #1 ($data)
   of type string is deprecated in /www/htdocs//blog/wp-content/plugins/wp-appbox/
   inc/getappinfo.class.php on line 341[19-Jan-2024 14:55:56 UTC] PHP Deprecated:
   unserialize(): Passing null to parameter #1 ($data) of type string is deprecated
   in /www/htdocs//blog/wp-content/plugins/wp-appbox/inc/getappinfo.class.php on
   line 341
 *  Plugin Author [Marcelismus](https://wordpress.org/support/users/marcelismus/)
 * (@marcelismus)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-str_replace-3/#post-17359153)
 * PHP 8.1 _deprecates_ these calls, it does not make them _errors_.
 * I’ll have a look, PHP 8.1 has deprecated passing null as parameters to a lot 
   of core functions. However, this will not happen in the short term for private
   reasons.

Viewing 3 replies - 1 through 3 (of 3 total)

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

 * ![](https://ps.w.org/wp-appbox/assets/icon-256×256.png?rev=976882)
 * [WP-Appbox](https://wordpress.org/plugins/wp-appbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-appbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-appbox/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-appbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-appbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-appbox/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Marcelismus](https://wordpress.org/support/users/marcelismus/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-str_replace-3/#post-17359153)
 * Status: not a support question