Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

After Upgrading to PHP8.1: PHP Deprecated: str_replace(): …

Home / Forums / Virtue Theme / After Upgrading to PHP8.1: PHP Deprecated: str_replace(): …

This topic is: Needs Developer Feedback
[Needs Developer Feedback]
Posted in: Virtue Theme
September 28, 2022 at 1:10 am

After upgrading from php 7.3 to 8.1 I see lots of PHP Deprecated warnings like

PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/wp-content/themes/virtue_premium/themeoptions/inc/class.redux_helpers.php on line 684

During development of my child theme I follow the WordPress best practices

/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*/
define('WP_DEBUG', true);

However, now my logs are full of these Deprecated messages. Would be nice if these could be fixed in a future release.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.