Title: TypeError: t.replace is not a function
Last modified: May 24, 2021

---

# TypeError: t.replace is not a function

 *  Resolved [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [5 years ago](https://wordpress.org/support/topic/typeerror-t-replace-is-not-a-function/)
 * We are getting a console error which seems to be related to (not sure if it’s
   caused by) Feed Them Social. First, here is the error notification:
 *     ```
       TypeError: t.replace is not a function -   jquery-3.3.1.min.js:2:12327
   
       Uncaught TypeError: t.replace is not a function
           at Function.oe.matchesSelector (jquery-3.3.1.min.js:2)
           at Object.add (jquery-3.3.1.min.js:2)
           at jquery-3.3.1.min.js:2
           at Function.each (jquery-3.3.1.min.js:2)
           at w.fn.init.each (jquery-3.3.1.min.js:2)
           at De (jquery-3.3.1.min.js:2)
           at w.fn.init.on (jquery-3.3.1.min.js:2)
           at fts-global.js?ver=1621634071:1
       ```
   
 * This error goes away if I disable the Feed Them Social plugin. We are running
   FTS plugin version 2.9.6.1 which I think is the latest version.
 * We load jquery from the official jquery CDN:
    [https://code.jquery.com/jquery-3.3.1.min.js](https://code.jquery.com/jquery-3.3.1.min.js)
 * The site’s scripts are minified and concatenated, so you won’t see this just 
   the same if you visit. Let me know if you’d like a guest login so that you can
   view the unminified site. Or any other info that would help with an answer!
 * Any guess what might be causing this? Or how I can troubleshoot it?
    -  This topic was modified 5 years ago by [hommealone](https://wordpress.org/support/users/hommealone/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftypeerror-t-replace-is-not-a-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [5 years ago](https://wordpress.org/support/topic/typeerror-t-replace-is-not-a-function/#post-14477692)
 * Thanks for all the info. I took a look and the file that has the that is the 
   jscolor.js file in our plugin. That file should only be loading on the backend.
   Is that were you are getting the error, can you please tell us the steps you 
   took to get the error too? And are you getting the same error if you just use
   the wordpress default jquery file?
 * Spencer
 *  Thread Starter [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [5 years ago](https://wordpress.org/support/topic/typeerror-t-replace-is-not-a-function/#post-14477726)
 * Hi Spencer,
 * Thanks for your quick reply! No, I am seeing that console error on all front-
   end pages of the website. I don’t do anything to get the error. Just loading 
   any webpage in the site shows that error message in the console.
 * Let me know anything else that might help us with troubleshooting. I can send
   you a guest login as mentioned, so you can bypass the minification. (The error
   shows up with or without the minification, but on public, non-logged in page 
   views, the file names in the error notice reflect the minified and concatenated
   file name.) Also happy to send you a list of enabled plugins or any other info
   that might be helpful!
 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [5 years ago](https://wordpress.org/support/topic/typeerror-t-replace-is-not-a-function/#post-14482585)
 * And are you getting the same error if you just use the wordpress default jquery
   file and not the jquery one you are adding?
 * Please also deactivate all other plugins besides ours too and see if the error
   persists, if not then active each plugin one by one until the error occurs again.
 *  Thread Starter [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [5 years ago](https://wordpress.org/support/topic/typeerror-t-replace-is-not-a-function/#post-14487165)
 * Thanks. Your hunch was right. Updating jquery from 3.4.x to 3.6.0 cleared everything
   up. Much appreciated!

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

The topic ‘TypeError: t.replace is not a function’ is closed to new replies.

 * ![](https://ps.w.org/feed-them-social/assets/icon-256x256.jpg?rev=998039)
 * [Feed Them Social - Social Media Feeds, Video, and Photo Galleries](https://wordpress.org/plugins/feed-them-social/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/feed-them-social/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/feed-them-social/)
 * [Active Topics](https://wordpress.org/support/plugin/feed-them-social/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/feed-them-social/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/feed-them-social/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [hommealone](https://wordpress.org/support/users/hommealone/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/typeerror-t-replace-is-not-a-function/#post-14487165)
 * Status: resolved