Title: JS error
Last modified: April 6, 2020

---

# JS error

 *  Resolved [arunschandran](https://wordpress.org/support/users/arunschandran/)
 * (@arunschandran)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/js-error-100/)
 * I am getting a JS error like this
 *     ```
       jquery.yith-wcwl.js?ver=3.0.9:1 Uncaught TypeError: Cannot read property 'contains' of undefined
           at jquery.yith-wcwl.js?ver=3.0.9:1
           at NodeList.forEach (<anonymous>)
           at MutationObserver.observe.childList (jquery.yith-wcwl.js?ver=3.0.9:1)
       ```
   
 * I saw many people mentioning the same error, but I couldn’t find the solution
   in any of those threads.
 * I tried disabling all plugins except Woocommerece and YITH WooCommerce Wishlist
   and changing the theme. Then I found out I can see this error only if “Google
   tag manager” is present. I can’t disable Tag manager. Can you please help me 
   to fix this error?

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/js-error-100/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/js-error-100/page/2/?output_format=md)

 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/js-error-100/#post-12633566)
 * Hi
 * I cannot replicate the issue on a vanilla installation of YITH WooCommerce Wishlist
 * Do you experience this problem with a specific WordPress plugin for Google Tag
   Manager (in this case, please, provide us a link to the plugin), or whenever 
   you add custom js code needed to enable tag manager on your site?
 *  Thread Starter [arunschandran](https://wordpress.org/support/users/arunschandran/)
 * (@arunschandran)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/js-error-100/#post-12634410)
 * I used 3 different tag manager plugins. I didn’t add any custom code to enable
   tag manager. If you share email address i will send the site link
 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/js-error-100/#post-12638943)
 * Unfortunately, due to forum regulations, I cannot ask you for informations over
   private email
 * Anyway, you can enter url in dedicated input here on the forum: only logged users
   will be able to see it
 *  Thread Starter [arunschandran](https://wordpress.org/support/users/arunschandran/)
 * (@arunschandran)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/js-error-100/#post-12643366)
 * This is the link of the site [http://p68850-144-14577.s144.upress.link/](http://p68850-144-14577.s144.upress.link/)
 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/js-error-100/#post-12644424)
 * Hi there
 * I visited your shop, navigated to many product pages, added a couple of items
   to the wishlists and visited the wishlist itself, but I was never able to trigger
   a js error in console
    I couldn’t replicate the issue that you reported
 * Could you please explain me how to proceed in order to see the error?
 *  Thread Starter [arunschandran](https://wordpress.org/support/users/arunschandran/)
 * (@arunschandran)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/js-error-100/#post-12648660)
 * The error is not showing all the time. Open the website and enable developer 
   tool and view console. And try to navigate through different pages. You will 
   see it. If you don’t see it, try in incognito. Here is the screenshot of the 
   error [https://prnt.sc/rvtjqh](https://prnt.sc/rvtjqh)
 *  [mandipluitel](https://wordpress.org/support/users/mandipluitel/)
 * (@mandipluitel)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/js-error-100/#post-12649341)
 * I am having the same issue with one of my sites, the issue is only seen on the
   console when you are logged in, that’s the reason why the author is not able 
   to see the issue. I too am looking for the solution. Hope to get a solution soon.
 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/js-error-100/#post-12677266)
 * Hi again guys
 * I’m still unable to reproduce the issue on my end, but I anyway added an additional
   check in plugin js code, in order to hopefully solve the problem
 * Do you mind downloading attached files, and upload them on your server as follows?
 * [https://we.tl/t-vdnrtyesH8](https://we.tl/t-vdnrtyesH8) -> wp-content/plugins/
   yith-woocommerce-wishlist/assets/js/
    [https://we.tl/t-gYrsPbyJGQ](https://we.tl/t-gYrsPbyJGQ)-
   > wp-content/plugins/yith-woocommerce-wishlist/assets/js/unminified/
 * Please, make sure to have a backup copy of the plugin ready to be deployed, just
   in case something is wrong with the beta code that I sent you
 * Please, let me know if this fix the issue
 *  [mandipluitel](https://wordpress.org/support/users/mandipluitel/)
 * (@mandipluitel)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/js-error-100/#post-12677338)
 * Worked Perfectly thanks 🙂
 *  [andreeapomirleanu](https://wordpress.org/support/users/andreeapomirleanu/)
 * (@andreeapomirleanu)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/js-error-100/#post-12685441)
 * Hi [@yithemes](https://wordpress.org/support/users/yithemes/) , I had the exact
   same issue, tried replacing the files according to your instructions and the 
   error is gone. Do you plan on including this fix into a plugin update soon?
 * Thank you!
 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/js-error-100/#post-12688004)
 * Hi guys
 * [@mandipluitel](https://wordpress.org/support/users/mandipluitel/) Great news!
   
   [@andreeapomirleanu](https://wordpress.org/support/users/andreeapomirleanu/) 
   Sure, this fix will be released with next version of the plugin, hopefully in
   the early days of next week [@arunschandran](https://wordpress.org/support/users/arunschandran/)
   Do you have some news for us? Did the fix solved th issue? I’ll wait for your
   answer to set this topic as solved
 *  Thread Starter [arunschandran](https://wordpress.org/support/users/arunschandran/)
 * (@arunschandran)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/js-error-100/#post-12724481)
 * Sorry for the delayed response. It worked perfectly. Thank you so much
 *  [Superpigdots](https://wordpress.org/support/users/natip100/)
 * (@natip100)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/js-error-100/#post-12733357)
 * I am having the same error. I see that you updated the plugin 4 days ago and 
   that you deleted the files above so I am assuming you think that the problem 
   is fixed but it isn’t. I have flushed all of my caches multiple times and the
   error is still consistently present.
 * I also use the Google Tag Manager plugin. I read above that this may be the problem
   area.
    -  This reply was modified 6 years, 1 month ago by [Superpigdots](https://wordpress.org/support/users/natip100/).
 *  [maria1astronautdev](https://wordpress.org/support/users/maria1astronautdev/)
 * (@maria1astronautdev)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/js-error-100/#post-12769047)
 * I fixed the error two weeks ago with these new files, and now it’s happening 
   again to me, too.
    -  This reply was modified 6 years, 1 month ago by [maria1astronautdev](https://wordpress.org/support/users/maria1astronautdev/).
 *  [Superpigdots](https://wordpress.org/support/users/natip100/)
 * (@natip100)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/js-error-100/#post-12770686)
 * Yeah, idk why they would fix the problem and then it comes right back. Follow
   my separate topic started [here](https://wordpress.org/support/topic/continuing-to-have-an-error-in-google-inspect-console/).
   They re-posted the files there.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/js-error-100/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/js-error-100/page/2/?output_format=md)

The topic ‘JS error’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-wishlist/assets/icon-128x128.gif?rev=3129302)
 * [YITH WooCommerce Wishlist](https://wordpress.org/plugins/yith-woocommerce-wishlist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-wishlist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/reviews/)

## Tags

 * ["js error"](https://wordpress.org/support/topic-tag/js-error/)

 * 17 replies
 * 8 participants
 * Last reply from: [Ankit Shah](https://wordpress.org/support/users/ankitshah1602/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/js-error-100/page/2/#post-13564452)
 * Status: resolved