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.