Title: PHP Warning
Last modified: March 9, 2018

---

# PHP Warning

 *  Resolved [mookie4a4](https://wordpress.org/support/users/mookie4a4/)
 * (@mookie4a4)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-warning-156/)
 * PHP Warning: str_replace() expects at least 3 parameters, 2 given in /wp-content/
   plugins/jetpack/modules/woocommerce-analytics/classes/wp-woocommerce-analytics-
   universal.php on line 182
 * Seems to be thrown in all pages.

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

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-warning-156/#post-10056555)
 * Thanks for the report! We’ll get this fixed in the next release. If you’d like
   and if you feel comfortable editing PHP files, you can apply the patch on your
   own site already:
    [https://github.com/Automattic/jetpack/pull/9021](https://github.com/Automattic/jetpack/pull/9021)
 * I would also recommend that you set `WP_DEBUG` to false in your site’s `wp-config.
   php` file if you currently see those warnings on your production site.
 *  Thread Starter [mookie4a4](https://wordpress.org/support/users/mookie4a4/)
 * (@mookie4a4)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-warning-156/#post-10056761)
 * Hello
 * Thanks for the quick response and fix!
 * I’ve patched the PHP code for now.
 * Cheers
    Matt
 *  [cskhello](https://wordpress.org/support/users/cskhello/)
 * (@cskhello)
 * [8 years ago](https://wordpress.org/support/topic/php-warning-156/#post-10102051)
 * I had a same warning and have replaced with ‘$url = str_replace( ‘href=’, $new_attributes,
   $url );
 * The error message has disappeared on the cart section but it won’t remove the
   item in the cart. Also sometime it directed to 404 page error.
 * Would you help me to fix this issue?
 * Thank you in advance.
 *  Plugin Support [KokkieH](https://wordpress.org/support/users/kokkieh/)
 * (@kokkieh)
 * [8 years ago](https://wordpress.org/support/topic/php-warning-156/#post-10102610)
 * [@cskhello](https://wordpress.org/support/users/cskhello/)
 * The issue leading to that PHP error will be fixed with the next version of Jetpack,
   so please update the plugin when the next version is released to apply that fix.
 * We cannot help with the cart-issue, though. Please post in the WooCommerce forums
   instead so they can help you debug that issue.
 * [https://wordpress.org/support/plugin/woocommerce](https://wordpress.org/support/plugin/woocommerce)
 *  [cskhello](https://wordpress.org/support/users/cskhello/)
 * (@cskhello)
 * [8 years ago](https://wordpress.org/support/topic/php-warning-156/#post-10148094)
 * I have deactivated Jetpack plugin and it works fine with my site. I suggest to
   review your source codes.

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

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [cskhello](https://wordpress.org/support/users/cskhello/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/php-warning-156/#post-10148094)
 * Status: resolved