Title: kaelkim's Replies | WordPress.org

---

# kaelkim

  [  ](https://wordpress.org/support/users/kaelkim/)

 *   [Profile](https://wordpress.org/support/users/kaelkim/)
 *   [Topics Started](https://wordpress.org/support/users/kaelkim/topics/)
 *   [Replies Created](https://wordpress.org/support/users/kaelkim/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/kaelkim/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/kaelkim/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/kaelkim/engagements/)
 *   [Favorites](https://wordpress.org/support/users/kaelkim/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Site Kit by Google - Analytics, Search Console, AdSense, Speed] Marionette not defined issue on Woocomerce product page with variants and Ninja](https://wordpress.org/support/topic/marionette-not-defined-issue-on-woocomerce-product-page-with-variants-and-ninja/)
 *  Thread Starter [kaelkim](https://wordpress.org/support/users/kaelkim/)
 * (@kaelkim)
 * [11 months ago](https://wordpress.org/support/topic/marionette-not-defined-issue-on-woocomerce-product-page-with-variants-and-ninja/#post-18483978)
 * Hi [@jamesosborne](https://wordpress.org/support/users/jamesosborne/)
 * I agree what you are saying about Site Kit may not the cause, but disabling Site
   Kit plugin or disabling the enhanced conversion tracking feature in Site Kit 
   fixes issue, so wanted to share.
 * The site has a lot of plugins and not sure which one is being used clearly, so
   it was a bit hard to debug for me. However, I found that the variant_id field
   was not updating when the issue happens, so I decided to update the value manually
   by hooking some js script on `woocommerce_update_variation_values` trigger.
 * FYI, ?v querysting was wordpress default caching feature for geolocating, but
   I did disable it now.
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Site Kit by Google - Analytics, Search Console, AdSense, Speed] Marionette not defined issue on Woocomerce product page with variants and Ninja](https://wordpress.org/support/topic/marionette-not-defined-issue-on-woocomerce-product-page-with-variants-and-ninja/)
 *  Thread Starter [kaelkim](https://wordpress.org/support/users/kaelkim/)
 * (@kaelkim)
 * [11 months ago](https://wordpress.org/support/topic/marionette-not-defined-issue-on-woocomerce-product-page-with-variants-and-ninja/#post-18481882)
 * Another odd thing is… the product was on sale and when the admin turned off the
   sale they noticed the issue. So I went add sale price again, then the issue didn’t
   happen.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Site Kit by Google - Analytics, Search Console, AdSense, Speed] Marionette not defined issue on Woocomerce product page with variants and Ninja](https://wordpress.org/support/topic/marionette-not-defined-issue-on-woocomerce-product-page-with-variants-and-ninja/)
 *  Thread Starter [kaelkim](https://wordpress.org/support/users/kaelkim/)
 * (@kaelkim)
 * [11 months ago](https://wordpress.org/support/topic/marionette-not-defined-issue-on-woocomerce-product-page-with-variants-and-ninja/#post-18481878)
 * Issue still exists, but happens when you add item again.
 * So, when you visit the product page with variants share via Google Form, select
   any option and click add to cart. Once the item is added, click add to cart button
   again, then you will see an error.
 * I kept the enhanced conversion tracking on for you to have a look.
 * Please update me once you’ve seen, then I will disable it again.
 * 1/ when the page is loaded, console gets and error about `use`
 *     ```wp-block-code
       <script defer type="text/javascript" id="wp-data-js-after">
           /* <![CDATA[ */
           (function() {
               var userId = 0;
               var storageKey = "WP_DATA_USER_" + userId;
               wp.data.use(wp.data.plugins.persistence, {
                   storageKey: storageKey
               });
           }
           )();
           /* ]]> */
       </script>
       ```
   
 * 2/ even with the error, add to cart works and it seems reloading the page
 * 3/ here you get additional js errors
   One error from `wp-util.min.js:2` `Uncaught
   TypeError: Cannot read properties of undefined (reading 'memoize')`Another error
   from `add-to-cart-variation.min.js:1` `Uncaught TypeError: wp.template is not
   a function` and this error occur when changing product variant option.
 * Originally had an issue around `Marionette` but that seems to be gone, but the
   above js errors still happen.
 * Like I said, after adding the item to the cart, the error occur, you refresh 
   the page error still happen, but when you type the url again on the browser, 
   error disappear (so it goes bactk step 1/ above before adding the item to the
   cart but item is already in the cart)
 * Hope these information helps for debugging and locating the error.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Site Kit by Google - Analytics, Search Console, AdSense, Speed] Marionette not defined issue on Woocomerce product page with variants and Ninja](https://wordpress.org/support/topic/marionette-not-defined-issue-on-woocomerce-product-page-with-variants-and-ninja/)
 *  Thread Starter [kaelkim](https://wordpress.org/support/users/kaelkim/)
 * (@kaelkim)
 * [11 months ago](https://wordpress.org/support/topic/marionette-not-defined-issue-on-woocomerce-product-page-with-variants-and-ninja/#post-18481866)
 * Created this as per the request from another post to make it as a separate ticket.
 * While preparing some staging link to duplicate the issue, I reset the account
   connection a few times and it seems working.
    1. Staging was not having issue, so I decided to create a new GA property to connect
    2. When it was connected I could see the issue.
    3. Then, I decided to create a separate account instead of having a test property
       under the main account.
    4. There was no issue with the new account.
    5. So I went to production site, reset the account, and it seems working now with
       both plugins on and enhanced conversion tracking on.
 * I will double check again after a few hours to make sure, and post here again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Site Kit by Google - Analytics, Search Console, AdSense, Speed] Marionette is not defined. Script with Ninja form?](https://wordpress.org/support/topic/marionette-is-not-defined-script-with-ninja-form/)
 *  [kaelkim](https://wordpress.org/support/users/kaelkim/)
 * (@kaelkim)
 * [11 months ago](https://wordpress.org/support/topic/marionette-is-not-defined-script-with-ninja-form/#post-18480608)
 * Hi [@jamesosborne](https://wordpress.org/support/users/jamesosborne/) I am having
   the same issue as annabealizabeth abovewith the latest version.
 * Ninja Forms Version 3.10.1
   Site Kit by Google Version 1.153.0
    - the issue only happening on a product page with variants, and selecting a 
      variant and add to cart doesn’t work because of the js issue
    - turning off ninja form resolved the issue
    - turning off site kit resolved the issue
    - turning off the enhanced tracking resolved the issue
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Cancelled orders that have paid](https://wordpress.org/support/topic/cancelled-orders-that-have-paid/)
 *  [kaelkim](https://wordpress.org/support/users/kaelkim/)
 * (@kaelkim)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/cancelled-orders-that-have-paid/#post-17484084)
 * Hi, not sure if this is the best way to reach out, but I am having the same issue.
   Contact eWay support [here](https://wordpress.org/support/topic/woocommerce-hold-stock-and-eway-plugin-issue/#new-topic-0)
   too which you can have more details.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Eway Payments for Woo] Hidden fields are not picking up the credit card expiry date](https://wordpress.org/support/topic/hidden-fields-are-not-picking-up-the-credit-card-expiry-date/)
 *  [kaelkim](https://wordpress.org/support/users/kaelkim/)
 * (@kaelkim)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/hidden-fields-are-not-picking-up-the-credit-card-expiry-date/#post-14544464)
 * [@wpniall](https://wordpress.org/support/users/wpniall/) [@melindahelt](https://wordpress.org/support/users/melindahelt/)
   
   After further testing, it doesn’t work on incognito mode on chrome browser.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Eway Payments for Woo] Hidden fields are not picking up the credit card expiry date](https://wordpress.org/support/topic/hidden-fields-are-not-picking-up-the-credit-card-expiry-date/)
 *  [kaelkim](https://wordpress.org/support/users/kaelkim/)
 * (@kaelkim)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/hidden-fields-are-not-picking-up-the-credit-card-expiry-date/#post-14544297)
 * [@wpniall](https://wordpress.org/support/users/wpniall/) [@melindahelt](https://wordpress.org/support/users/melindahelt/)
 * Hi I’ve updated plugins but still having an issue with expiry field
 * WordPress 5.7.2
    WooCommerce 5.4.1 WooCommerce eWay Payment Gateway 3.2.2
 * Weirdly it worked on my staging site,
    WordPress 5.7.2 WooCommerce 5.4.1 WooCommerce
   eWay Payment Gateway 3.2.0
 * So I rollback to 3.2.0 but it didn’t work, then I downgraded all plugins to match
   with staging.
 * One thing I’ve noticed is
    WordFence Security 7.5.3 from 7.5.4
 * Hope this help you debugging
    -  This reply was modified 4 years, 10 months ago by [kaelkim](https://wordpress.org/support/users/kaelkim/).
    -  This reply was modified 4 years, 10 months ago by [kaelkim](https://wordpress.org/support/users/kaelkim/).

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