
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Troubleshooting | 79mplus</title>
	<atom:link href="https://www.79mplus.com/tag/troubleshooting/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.79mplus.com</link>
	<description>Top-Tier WordPress Development Company for Custom, Scalable Solutions</description>
	<lastBuildDate>Fri, 17 Aug 2018 10:24:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>

<image>
	<url>https://www.79mplus.com/assets/cropped-favicon2-32x32.png</url>
	<title>Troubleshooting | 79mplus</title>
	<link>https://www.79mplus.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Updating WooCommerce Shows cart-fragments.js Error and Cannot Add to Cart</title>
		<link>https://www.79mplus.com/updating-woocommerce-shows-cart-fragments-js-error-and-cannot-add-to-cart/</link>
		
		<dc:creator><![CDATA[Adnan Shameem]]></dc:creator>
		<pubDate>Tue, 03 Apr 2018 08:04:09 +0000</pubDate>
				<category><![CDATA[79mplus blog]]></category>
		<category><![CDATA[Form Field]]></category>
		<category><![CDATA[Gravity Forms]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[WooCommerce]]></category>
		<guid isPermaLink="false">http://79mplus.com/?p=494629</guid>

					<description><![CDATA[<p><a rel="nofollow" href="https://www.79mplus.com">79mplus</a><br />
<img src="https://www.79mplus.com/assets/ideas-gf-fields-invisible-header.jpg" style="display: block; margin: 1em auto"><br />
<a rel="nofollow" href="https://www.79mplus.com/updating-woocommerce-shows-cart-fragments-js-error-and-cannot-add-to-cart/">Updating WooCommerce Shows cart-fragments.js Error and Cannot Add to Cart</a></p>
<p>We were in a dilemma with a recent problem with Gravity Forms and WooCommerce. One of our clients sells memberships online. He takes membership information with a Gravity Form when selling the membership. Our client was using Gravity Forms, WooCommerce and WooCommerce Gravity Forms Product Add-Ons &#8211; together to sell this membership. Suddenly, an update [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.79mplus.com/updating-woocommerce-shows-cart-fragments-js-error-and-cannot-add-to-cart/">Updating WooCommerce Shows cart-fragments.js Error and Cannot Add to Cart</a> appeared first on <a rel="nofollow" href="https://www.79mplus.com">79mplus</a> and is written by <a rel="nofollow" href="https://www.79mplus.com/author/adnan360/">Adnan Shameem</a></p>
]]></description>
										<content:encoded><![CDATA[<p><a rel="nofollow" href="https://www.79mplus.com">79mplus</a><br />
<img src="https://www.79mplus.com/assets/ideas-gf-fields-invisible-header.jpg" style="display: block; margin: 1em auto"><br />
<a rel="nofollow" href="https://www.79mplus.com/updating-woocommerce-shows-cart-fragments-js-error-and-cannot-add-to-cart/">Updating WooCommerce Shows cart-fragments.js Error and Cannot Add to Cart</a></p>
<p>We were in a dilemma with a recent problem with Gravity Forms and WooCommerce. One of our clients sells memberships online. He takes membership information with a Gravity Form when selling the membership. Our client was using Gravity Forms, WooCommerce and WooCommerce Gravity Forms Product Add-Ons &#8211; together to sell this membership.</p>
<p><a href="http://79mplus.com/assets/gf-fields-problem-before.png"><img decoding="async" class="aligncenter wp-image-494633 size-medium" src="http://79mplus.com/assets/gf-fields-problem-before-300x196.png" alt="" width="300" height="196" title="Updating WooCommerce Shows cart-fragments.js Error and Cannot Add to Cart" srcset="https://www.79mplus.com/assets/gf-fields-problem-before-300x196.png 300w, https://www.79mplus.com/assets/gf-fields-problem-before-768x501.png 768w, https://www.79mplus.com/assets/gf-fields-problem-before-510x332.png 510w, https://www.79mplus.com/assets/gf-fields-problem-before.png 1008w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>Suddenly, an update to WooCommerce to latest version 3.3.3 surprisingly broke the system. After the update, it was raising a mysterious cart-fragments.js error and the GForm fields disappeared from the registration page.</p>
<p><a href="http://79mplus.com/assets/gf-fields-problem-after.png"><img decoding="async" class="aligncenter wp-image-494634 size-medium" src="http://79mplus.com/assets/gf-fields-problem-after-300x189.png" alt="" width="300" height="189" title="Updating WooCommerce Shows cart-fragments.js Error and Cannot Add to Cart" srcset="https://www.79mplus.com/assets/gf-fields-problem-after-300x189.png 300w, https://www.79mplus.com/assets/gf-fields-problem-after-768x484.png 768w, https://www.79mplus.com/assets/gf-fields-problem-after-400x250.png 400w, https://www.79mplus.com/assets/gf-fields-problem-after-510x322.png 510w, https://www.79mplus.com/assets/gf-fields-problem-after.png 1023w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p><a href="http://79mplus.com/assets/js-cart-fragments-error.png"><img decoding="async" class="alignnone size-full wp-image-494637" src="http://79mplus.com/assets/js-cart-fragments-error.png" alt="" width="1239" height="230" title="Updating WooCommerce Shows cart-fragments.js Error and Cannot Add to Cart" srcset="https://www.79mplus.com/assets/js-cart-fragments-error.png 1239w, https://www.79mplus.com/assets/js-cart-fragments-error-300x56.png 300w, https://www.79mplus.com/assets/js-cart-fragments-error-768x143.png 768w, https://www.79mplus.com/assets/js-cart-fragments-error-1024x190.png 1024w, https://www.79mplus.com/assets/js-cart-fragments-error-1080x200.png 1080w, https://www.79mplus.com/assets/js-cart-fragments-error-510x95.png 510w" sizes="(max-width: 1239px) 100vw, 1239px" /></a></p>
<p><strong>JS Error in text:</strong><br />
<code>Uncaught TypeError: Cannot read property 'toString' of undefined<br />
at HTMLDocument. (cart-fragments.js?ver=3.3.3:39)<br />
at i (jquery.js?ver=1.12.4:2)<br />
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)<br />
at Function.ready (jquery.js?ver=1.12.4:2)<br />
at HTMLDocument.K (jquery.js?ver=1.12.4:2)</code></p>
<p>That’s not all. There were some required fields, and as the fields could not be filled, due to being invisible, it was stopping the user from adding it to cart – causing a total broken system.</p>
<p>We dived into the problem right after getting the feedback. After a bit of looking, we found out that <a href="https://wordpress.org/support/topic/error-with-cart-fragments-min-jsver3-3-1/" target="_blank" rel="noopener">others faced the similar issue</a>. The problem was fixed when WooCommerce was downgraded to 3.2.6. Thought of the moment was that the issue was with WooCommerce, so <a href="https://github.com/woocommerce/woocommerce/issues/19409" target="_blank" rel="noopener">we went on to post a bug to WooCommerce about the issue</a>. Good folks from there suggested there must be something else that may be causing this, because other plugins or some unknown code may influence how cart-fragments work.</p>
<p>To find a solution, first we changed to Storefront theme, but no use. So the problem was not there on the theme. Then we ran an extensive trial and error test and at the end we found out that an unsupported and old plugin named “<a href="https://wordpress.org/plugins/woocommerce-poor-guys-swiss-knife/" target="_blank" rel="noopener">Woocommerce Poor Guys Swiss Knife</a>” was responsible for the issue. We Deactivated the plugin and the issue was gone.</p>
<hr /><p><em>To find a solution, first we changed to Storefront theme, but no use. ... at the end we found out that an unsupported and old plugin named “Woocommerce Poor Guys Swiss Knife” was responsible for the issue. ...</em><br /><a href="https://twitter.com/intent/tweet?url=https%3A%2F%2Fwww.79mplus.com%2F%3Fp%3D494629&#038;text=To%20find%20a%20solution%2C%20first%20we%20changed%20to%20Storefront%20theme%2C%20but%20no%20use.%20...%20at%20the%20end%20we%20found%20out%20that%20an%20unsupported%20and%20old%20plugin%20named%20%E2%80%9CWoocommerce%20Poor%20Guys%20Swiss%20Knife%E2%80%9D%20was%20responsible%20for%20the%20issue.%20...&#038;via=79mplus&#038;related=79mplus" target="_blank" rel="noopener noreferrer">Share on X</a><br /><hr />
<p>If you face the error, we would suggest you do the following:</p>
<ul>
<li>Take a backup</li>
<li>Setup a staging or local as a copy of live site</li>
<li>On the copy, Deactivate all the plugins (keep only GF and WC if possible) and see if the issue fixes</li>
<li>If yes, then gradually Activate the plugins one by one to narrow it down to the problem plugin</li>
<li>You can also check on your theme functions.php to see if anything is causing the issue</li>
<li>Also, debug.log is your friend</li>
</ul>
<p>The solution was easy but we had to do some grinding to get to the solution.<br />
But we still love it when it gets solved! Nothing like a solved mystery!</p>
<p>The post <a rel="nofollow" href="https://www.79mplus.com/updating-woocommerce-shows-cart-fragments-js-error-and-cannot-add-to-cart/">Updating WooCommerce Shows cart-fragments.js Error and Cannot Add to Cart</a> appeared first on <a rel="nofollow" href="https://www.79mplus.com">79mplus</a> and is written by <a rel="nofollow" href="https://www.79mplus.com/author/adnan360/">Adnan Shameem</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
