Title: PHP Deprecated: preg_replace()
Last modified: April 10, 2024

---

# PHP Deprecated: preg_replace()

 *  Resolved [dev](https://wordpress.org/support/users/devksec/)
 * (@devksec)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-preg_replace-2/)
 * Hello,
 * 
   We’re getting a lot of these on the latest version:PHP Deprecated:  preg_replace():
   Passing null to parameter #3 ($subject) of type array|string is deprecated in/
   home/SITE/wp-content/plugins/woo-cart-abandonment-recovery/modules/cart-abandonment/
   classes/class-cartflows-ca-tracking.php on line 370

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

 *  Plugin Support [Sravan Bhaskaravajjula](https://wordpress.org/support/users/bhshravankumar/)
 * (@bhshravankumar)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-deprecated-preg_replace-2/#post-17704167)
 * Hello [@devksec](https://wordpress.org/support/users/devksec/),
 * Please check if you have disabled tracking for any user role. This issue may 
   have started once you enabled this option. Please share a screenshot of your 
   cart abandonment exclude tracking settings so that we can gain a better understanding
   and provide you with an accurate answer.
 *  Thread Starter [dev](https://wordpress.org/support/users/devksec/)
 * (@devksec)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-deprecated-preg_replace-2/#post-17704239)
 * Hello,
 * Yes we have it disabled for “administrator” and “Shop manager”.
 * Emails excluded are “Processing” and “completed”
 *  Plugin Support [Sravan Bhaskaravajjula](https://wordpress.org/support/users/bhshravankumar/)
 * (@bhshravankumar)
 * [2 years ago](https://wordpress.org/support/topic/php-deprecated-preg_replace-2/#post-17750089)
 * Hello [@devksec](https://wordpress.org/support/users/devksec/),
 * Please check if your recovery emails are missing the subject. The error message
   you shared indicates that the $subject is null, which occurs when the recovery
   email subject is not available. Please check accordingly.
 * Let us know if we could be of any further assistance. 

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

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

 * ![](https://ps.w.org/woo-cart-abandonment-recovery/assets/icon-256x256.gif?rev
   =3370405)
 * [Cart Abandonment Recovery for WooCommerce – Recover Lost Sales with Automated Emails](https://wordpress.org/plugins/woo-cart-abandonment-recovery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-cart-abandonment-recovery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-cart-abandonment-recovery/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-cart-abandonment-recovery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-cart-abandonment-recovery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-cart-abandonment-recovery/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Sravan Bhaskaravajjula](https://wordpress.org/support/users/bhshravankumar/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/php-deprecated-preg_replace-2/#post-17750089)
 * Status: resolved