Title: Uncaught TypeError: g(&#8230;).block is not a function
Last modified: July 30, 2020

---

# Uncaught TypeError: g(…).block is not a function

 *  [Shannon](https://wordpress.org/support/users/spva/)
 * (@spva)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/uncaught-typeerror-g-block-is-not-a-function/)
 * Hi I’ve been working on this for days, I’m only new to JS so a bit lost here.
   
   When I change the country it should automatically update the tax amount in the
   cart. It does not do this and I get the following message
 * > Uncaught TypeError: g(…).block is not a function
 * It directs me to the checkout.min.js file to the following line
    `g(".woocommerce-
   checkout-payment, .woocommerce-checkout-review-order-table").block({`
 * For the life of me I can not figure out what the issue is… here is the entire
   code
 *     ```
       jQuery(function(g) {
           if ("undefined" == typeof wc_checkout_params)
               return !1;
           var v = {
               dirtyInput: !1,
               selectedPaymentMethod: !1,
               xhr: !1,
               $order_review: g("#order_review"),
               $checkout_form: g("form.checkout"),
               init: function() {
                   g(document.body).bind("update_checkout", this.update_checkout),
                   g(document.body).bind("init_checkout", this.init_checkout),
                   this.$checkout_form.on("click", 'input[name="payment_method"]', this.payment_method_selected),
                   g(document.body).hasClass("woocommerce-order-pay") && (this.$order_review.on("click", 'input[name="payment_method"]', this.payment_method_selected),
                   this.$order_review.on("submit", this.submitOrder),
                   this.$order_review.attr("novalidate", "novalidate")),
                   this.$checkout_form.attr("novalidate", "novalidate"),
                   this.$checkout_form.on("submit", this.submit),
                   this.$checkout_form.on("input validate change", ".input-text, select, input:checkbox", this.validate_field),
                   this.$checkout_form.on("update", this.trigger_update_checkout),
                   this.$checkout_form.on("change", 'select.shipping_method, input[name^="shipping_method"], #ship-to-different-address input, .update_totals_on_change select, .update_totals_on_change input[type="radio"], .update_totals_on_change input[type="checkbox"]', this.trigger_update_checkout),
                   this.$checkout_form.on("change", ".address-field select", this.input_changed),
                   this.$checkout_form.on("change", ".address-field input.input-text, .update_totals_on_change input.input-text", this.maybe_input_changed),
                   this.$checkout_form.on("keydown", ".address-field input.input-text, .update_totals_on_change input.input-text", this.trigger_update_checkout),
                   this.$checkout_form.on("change", "#ship-to-different-address input", this.ship_to_different_address),
                   this.$checkout_form.find("#ship-to-different-address input").change(),
                   this.init_payment_methods(),
                   "1" === wc_checkout_params.is_checkout && g(document.body).trigger("init_checkout"),
                   "yes" === wc_checkout_params.option_guest_checkout && g("input#createaccount").change(this.toggle_create_account).change()
               },
               init_payment_methods: function() {
                   var e = g(".woocommerce-checkout").find('input[name="payment_method"]');
                   1 === e.length && e.eq(0).hide(),
                   v.selectedPaymentMethod && g("#" + v.selectedPaymentMethod).prop("checked", !0),
                   0 === e.filter(":checked").length && e.eq(0).prop("checked", !0);
                   var t = e.filter(":checked").eq(0).prop("id");
                   1 < e.length && g('div.payment_box:not(".' + t + '")').filter(":visible").slideUp(0),
                   e.filter(":checked").eq(0).trigger("click")
               },
               get_payment_method: function() {
                   return v.$checkout_form.find('input[name="payment_method"]:checked').val()
               },
               payment_method_selected: function(e) {
                   if (e.stopPropagation(),
                   1 < g(".payment_methods input.input-radio").length) {
                       var t = g("div.payment_box." + g(this).attr("ID"))
                         , o = g(this).is(":checked");
                       o && !t.is(":visible") && (g("div.payment_box").filter(":visible").slideUp(230),
                       o && t.slideDown(230))
                   } else
                       g("div.payment_box").show();
                   g(this).data("order_button_text") ? g("#place_order").text(g(this).data("order_button_text")) : g("#place_order").text(g("#place_order").data("value"));
                   var c = g('.woocommerce-checkout input[name="payment_method"]:checked').attr("id");
                   c !== v.selectedPaymentMethod && g(document.body).trigger("payment_method_selected"),
                   v.selectedPaymentMethod = c
               },
               toggle_create_account: function() {
                   g("div.create-account").hide(),
                   g(this).is(":checked") && (g("#account_password").val("").change(),
                   g("div.create-account").slideDown())
               },
               init_checkout: function() {
                   g(document.body).trigger("update_checkout")
               },
               maybe_input_changed: function(e) {
                   v.dirtyInput && v.input_changed(e)
               },
               input_changed: function(e) {
                   v.dirtyInput = e.target,
                   v.maybe_update_checkout()
               },
               queue_update_checkout: function(e) {
                   if (9 === (e.keyCode || e.which || 0))
                       return !0;
                   v.dirtyInput = this,
                   v.reset_update_checkout_timer(),
                   v.updateTimer = setTimeout(v.maybe_update_checkout, "1000")
               },
               trigger_update_checkout: function() {
                   v.reset_update_checkout_timer(),
                   v.dirtyInput = !1,
                   g(document.body).trigger("update_checkout")
               },
               maybe_update_checkout: function() {
                   var e = !0;
                   if (g(v.dirtyInput).length) {
                       var t = g(v.dirtyInput).closest("div").find(".address-field.validate-required");
                       t.length && t.each(function() {
                           "" === g(this).find("input.input-text").val() && (e = !1)
                       })
                   }
                   e && v.trigger_update_checkout()
               },
               ship_to_different_address: function() {
                   g("div.shipping_address").hide(),
                   g(this).is(":checked") && g("div.shipping_address").slideDown()
               },
               reset_update_checkout_timer: function() {
                   clearTimeout(v.updateTimer)
               },
               is_valid_json: function(e) {
                   try {
                       var t = g.parseJSON(e);
                       return t && "object" == typeof t
                   } catch (o) {
                       return !1
                   }
               },
               validate_field: function(e) {
                   var t = g(this)
                     , o = t.closest(".form-row")
                     , c = !0
                     , i = o.is(".validate-required")
                     , n = o.is(".validate-email")
                     , r = e.type;
                   if ("input" === r && o.removeClass("woocommerce-invalid woocommerce-invalid-required-field woocommerce-invalid-email woocommerce-validated"),
                   "validate" === r || "change" === r) {
                       if (i && ("checkbox" !== t.attr("type") || t.is(":checked") ? "" === t.val() && (o.removeClass("woocommerce-validated").addClass("woocommerce-invalid woocommerce-invalid-required-field"),
                       c = !1) : (o.removeClass("woocommerce-validated").addClass("woocommerce-invalid woocommerce-invalid-required-field"),
                       c = !1)),
                       n)
                           if (t.val())
                               new RegExp(/^([a-z\d!#$%&'*+\-\/=?^_<code>{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_</code>{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[0-9a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i).test(t.val()) || (o.removeClass("woocommerce-validated").addClass("woocommerce-invalid woocommerce-invalid-email"),
                               c = !1);
                       c && o.removeClass("woocommerce-invalid woocommerce-invalid-required-field woocommerce-invalid-email").addClass("woocommerce-validated")
                   }
               },
               update_checkout: function(e, t) {
                   v.reset_update_checkout_timer(),
                   v.updateTimer = setTimeout(v.update_checkout_action, "5", t)
               },
               update_checkout_action: function(e) {
                   if (v.xhr && v.xhr.abort(),
                   0 !== g("form.checkout").length) {
                       e = void 0 !== e ? e : {
                           update_shipping_method: !0
                       };
                       var t = g("#billing_country").val()
                         , o = g("#billing_state").val()
                         , c = g(":input#billing_postcode").val()
                         , i = g("#billing_city").val()
                         , n = g(":input#billing_address_1").val()
                         , r = g(":input#billing_address_2").val()
                         , a = t
                         , u = o
                         , d = c
                         , s = i
                         , m = n
                         , l = r
                         , h = g(v.$checkout_form).find(".address-field.validate-required:visible")
                         , p = !0;
                       h.length && h.each(function() {
                           "" === g(this).find(":input").val() && (p = !1)
                       }),
                       g("#ship-to-different-address").find("input").is(":checked") && (a = g("#shipping_country").val(),
                       u = g("#shipping_state").val(),
                       d = g(":input#shipping_postcode").val(),
                       s = g("#shipping_city").val(),
                       m = g(":input#shipping_address_1").val(),
                       l = g(":input#shipping_address_2").val());
                       var _ = {
                           security: wc_checkout_params.update_order_review_nonce,
                           payment_method: v.get_payment_method(),
                           country: t,
                           state: o,
                           postcode: c,
                           city: i,
                           address: n,
                           address_2: r,
                           s_country: a,
                           s_state: u,
                           s_postcode: d,
                           s_city: s,
                           s_address: m,
                           s_address_2: l,
                           has_full_address: p,
                           post_data: g("form.checkout").serialize()
                       };
                       if (!1 !== e.update_shipping_method) {
                           var f = {};
                           g('select.shipping_method, input[name^="shipping_method"][type="radio"]:checked, input[name^="shipping_method"][type="hidden"]').each(function() {
                               f[g(this).data("index")] = g(this).val()
                           }),
                           _.shipping_method = f
                       }
                       g(".woocommerce-checkout-payment, .woocommerce-checkout-review-order-table").block({
                           message: null,
                           overlayCSS: {
                               background: "#fff",
       						opacity: 0.6
                           }
                       }),
                       v.xhr = g.ajax({
                           type: "POST",
                           url: wc_checkout_params.wc_ajax_url.toString().replace("%%endpoint%%", "update_order_review"),
                           data: _,
                           success: function(e) {
                               if (e && !0 === e.reload)
                                   window.location.reload();
                               else {
                                   g(".woocommerce-NoticeGroup-updateOrderReview").remove();
                                   var t = g("#terms").prop("checked")
                                     , o = {};
                                   if (g(".payment_box :input").each(function() {
                                       var e = g(this).attr("id");
                                       e && (-1 !== g.inArray(g(this).attr("type"), ["checkbox", "radio"]) ? o[e] = g(this).prop("checked") : o[e] = g(this).val())
                                   }),
                                   e && e.fragments && (g.each(e.fragments, function(e, t) {
                                       v.fragments && v.fragments[e] === t || g(e).replaceWith(t),
                                       g(e).unblock()
                                   }),
                                   v.fragments = e.fragments),
                                   t && g("#terms").prop("checked", !0),
                                   g.isEmptyObject(o) || g(".payment_box :input").each(function() {
                                       var e = g(this).attr("id");
                                       e && (-1 !== g.inArray(g(this).attr("type"), ["checkbox", "radio"]) ? g(this).prop("checked", o[e]).change() : -1 !== g.inArray(g(this).attr("type"), ["select"]) ? g(this).val(o[e]).change() : null !== g(this).val() && 0 === g(this).val().length && g(this).val(o[e]).change())
                                   }),
                                   e && "failure" === e.result) {
                                       var c = g("form.checkout");
                                       g(".woocommerce-error, .woocommerce-message").remove(),
                                       e.messages ? c.prepend('<div class="woocommerce-NoticeGroup woocommerce-NoticeGroup-updateOrderReview">' + e.messages + "</div>") : c.prepend(e),
                                       c.find(".input-text, select, input:checkbox").trigger("validate").blur(),
                                       v.scroll_to_notices()
                                   }
                                   v.init_payment_methods(),
                                   g(document.body).trigger("updated_checkout", [e])
                               }
                           }
                       })
                   }
               },
               handleUnloadEvent: function(e) {
                   return -1 === navigator.userAgent.indexOf("MSIE") && !document.documentMode || (e.preventDefault(),
                   undefined)
               },
               attachUnloadEventsOnSubmit: function() {
                   g(window).on("beforeunload", this.handleUnloadEvent)
               },
               detachUnloadEventsOnSubmit: function() {
                   g(window).unbind("beforeunload", this.handleUnloadEvent)
               },
               blockOnSubmit: function(e) {
                   1 !== e.data()["blockUI.isBlocked"] && e.block({
                       message: null,
                       overlayCSS: {
                           background: "#fff",
                           opacity: .6
                       }
                   })
               },
               submitOrder: function() {
                   v.blockOnSubmit(g(this))
               },
               submit: function() {
                   v.reset_update_checkout_timer();
                   var o = g(this);
                   return o.is(".processing") || !1 !== o.triggerHandler("checkout_place_order") && !1 !== o.triggerHandler("checkout_place_order_" + v.get_payment_method()) && (o.addClass("processing"),
                   v.blockOnSubmit(o),
                   v.attachUnloadEventsOnSubmit(),
                   g.ajaxSetup({
                       dataFilter: function(e, t) {
                           if ("json" !== t)
                               return e;
                           if (v.is_valid_json(e))
                               return e;
                           var o = e.match(/{"result.*}/);
                           return null === o ? console.log("Unable to fix malformed JSON") : v.is_valid_json(o[0]) ? (console.log("Fixed malformed JSON. Original:"),
                           console.log(e),
                           e = o[0]) : console.log("Unable to fix malformed JSON"),
                           e
                       }
                   }),
                   g.ajax({
                       type: "POST",
                       url: wc_checkout_params.checkout_url,
                       data: o.serialize(),
                       dataType: "json",
                       success: function(e) {
                           v.detachUnloadEventsOnSubmit();
                           try {
                               if ("success" !== e.result || !1 === o.triggerHandler("checkout_place_order_success"))
                                   throw "failure" === e.result ? "Result failure" : "Invalid response";
                               -1 === e.redirect.indexOf("https://") || -1 === e.redirect.indexOf("http://") ? window.location = e.redirect : window.location = decodeURI(e.redirect)
                           } catch (t) {
                               if (!0 === e.reload)
                                   return void window.location.reload();
                               !0 === e.refresh && g(document.body).trigger("update_checkout"),
                               e.messages ? v.submit_error(e.messages) : v.submit_error('<div class="woocommerce-error">' + wc_checkout_params.i18n_checkout_error + "</div>")
                           }
                       },
                       error: function(e, t, o) {
                           v.detachUnloadEventsOnSubmit(),
                           v.submit_error('<div class="woocommerce-error">' + o + "</div>")
                       }
                   })),
                   !1
               },
               submit_error: function(e) {
                   g(".woocommerce-NoticeGroup-checkout, .woocommerce-error, .woocommerce-message").remove(),
                   v.$checkout_form.prepend('<div class="woocommerce-NoticeGroup woocommerce-NoticeGroup-checkout">' + e + "</div>"),
                   v.$checkout_form.removeClass("processing").unblock(),
                   v.$checkout_form.find(".input-text, select, input:checkbox").trigger("validate").blur(),
                   v.scroll_to_notices(),
                   g(document.body).trigger("checkout_error")
               },
               scroll_to_notices: function() {
                   var e = g(".woocommerce-NoticeGroup-updateOrderReview, .woocommerce-NoticeGroup-checkout");
                   e.length || (e = g(".form.checkout")),
                   g.scroll_to_notices(e)
               }
           }
             , e = {
               init: function() {
                   g(document.body).on("click", "a.showcoupon", this.show_coupon_form),
                   g(document.body).on("click", ".woocommerce-remove-coupon", this.remove_coupon),
                   g("form.checkout_coupon").hide().submit(this.submit)
               },
               show_coupon_form: function() {
                   return g(".checkout_coupon").slideToggle(400, function() {
                       g(".checkout_coupon").find(":input:eq(0)").focus()
                   }),
                   !1
               },
               submit: function() {
                   var t = g(this);
                   if (t.is(".processing"))
                       return !1;
                   t.addClass("processing").block({
                       message: null,
                       overlayCSS: {
                           background: "#fff",
                           opacity: .6
                       }
                   });
                   var o = {
                       security: wc_checkout_params.apply_coupon_nonce,
                       coupon_code: t.find('input[name="coupon_code"]').val()
                   };
                   return g.ajax({
                       type: "POST",
                       url: wc_checkout_params.wc_ajax_url.toString().replace("%%endpoint%%", "apply_coupon"),
                       data: o,
                       success: function(e) {
                           g(".woocommerce-error, .woocommerce-message").remove(),
                           t.removeClass("processing").unblock(),
                           e && (t.before(e),
                           t.slideUp(),
                           g(document.body).trigger("applied_coupon_in_checkout", [o.coupon_code]),
                           g(document.body).trigger("update_checkout", {
                               update_shipping_method: !1
                           }))
                       },
                       dataType: "html"
                   }),
                   !1
               },
               remove_coupon: function(e) {
                   e.preventDefault();
                   var t = g(this).parents(".woocommerce-checkout-review-order")
                     , o = g(this).data("coupon");
                   t.addClass("processing").block({
                       message: null,
                       overlayCSS: {
                           background: "#fff",
                           opacity: .6
                       }
                   });
                   var c = {
                       security: wc_checkout_params.remove_coupon_nonce,
                       coupon: o
                   };
                   g.ajax({
                       type: "POST",
                       url: wc_checkout_params.wc_ajax_url.toString().replace("%%endpoint%%", "remove_coupon"),
                       data: c,
                       success: function(e) {
                           g(".woocommerce-error, .woocommerce-message").remove(),
                           t.removeClass("processing").unblock(),
                           e && (g("form.woocommerce-checkout").before(e),
                           g(document.body).trigger("update_checkout", {
                               update_shipping_method: !1
                           }),
                           g("form.checkout_coupon").find('input[name="coupon_code"]').val(""))
                       },
                       error: function(e) {
                           wc_checkout_params.debug_mode && console.log(e.responseText)
                       },
                       dataType: "html"
                   })
               }
           }
             , t = {
               init: function() {
                   g(document.body).on("click", "a.showlogin", this.show_login_form)
               },
               show_login_form: function() {
                   return g("form.login, form.woocommerce-form--login").slideToggle(),
                   !1
               }
           }
             , o = {
               init: function() {
                   g(document.body).on("click", "a.woocommerce-terms-and-conditions-link", this.toggle_terms)
               },
               toggle_terms: function() {
                   if (g(".woocommerce-terms-and-conditions").length)
                       return g(".woocommerce-terms-and-conditions").slideToggle(function() {
                           var e = g(".woocommerce-terms-and-conditions-link");
                           g(".woocommerce-terms-and-conditions").is(":visible") ? (e.addClass("woocommerce-terms-and-conditions-link--open"),
                           e.removeClass("woocommerce-terms-and-conditions-link--closed")) : (e.removeClass("woocommerce-terms-and-conditions-link--open"),
                           e.addClass("woocommerce-terms-and-conditions-link--closed"))
                       }),
                       !1
               }
           };
           v.init(),
           e.init(),
           t.init(),
           o.init()
       });
       ```
   
 * Any advice would be appreciated, let me know if you need more information.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-typeerror-g-block-is-not-a-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/uncaught-typeerror-g-block-is-not-a-function/#post-13189250)
 * Hi there,
 * In order to troubleshoot this further, can you share a copy of your status report
   as found under **WooCommerce > Status**? I suspect this might be linked to template
   overrides coming from your theme although it’s too early to say for sure 🙂
 * In addition, it would also be helpful to know which billing address we can use
   during checkout in order to trigger tax calculations.
 * Thanks!
 *  Thread Starter [Shannon](https://wordpress.org/support/users/spva/)
 * (@spva)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/uncaught-typeerror-g-block-is-not-a-function/#post-13189287)
 * So right now I have taxes set up only for Australian customers, no tax for anyone
   else.
 * > `
   >  ### WordPress Environment ###
   > WordPress address (URL): [http://shannonp12.sg-host.com](http://shannonp12.sg-host.com)
   > 
   > Site address (URL): [http://shannonp12.sg-host.com](http://shannonp12.sg-host.com)
   > WC Version: 4.3.1 REST API Version: ✔ 1.0.10 WC Blocks Version: ✔ 2.7.2 Action
   > Scheduler Version: ✔ 3.1.6 WC Admin Version: ✔ 1.3.1 Log Directory Writable:
   > ✔ WP Version: 5.4.2 WP Multisite: ✔ WP Memory Limit: 768 MB WP Debug Mode: –
   > WP Cron: ✔ Language: en_AU External object cache: –
   > ### Server Environment ###
   > Server Info: Apache
   >  PHP Version: 7.3.20 PHP Post Max Size: 128 MB PHP Time
   > Limit: 120 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1g-fips
   > SUHOSIN Installed: –
   >  MySQL Version: 5.7.25-28-log Max Upload Size: 1 MB Default
   > Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte
   > String: ✔ Remote Post: ✔ Remote Get: ✔
   > ### Database ###
   > WC Database Version: 4.3.1
   >  WC Database Prefix: mqt_ Total Database Size: 12.29MB
   > Database Data Size: 10.25MB Database Index Size: 2.04MB mqt_woocommerce_sessions:
   > Data: 0.11MB + Index: 0.02MB + Engine InnoDB mqt_woocommerce_api_keys: Data:
   > 0.02MB + Index: 0.03MB + Engine InnoDB mqt_woocommerce_attribute_taxonomies:
   > Data: 0.02MB + Index: 0.02MB + Engine InnoDB mqt_woocommerce_downloadable_product_permissions:
   > Data: 0.02MB + Index: 0.05MB + Engine InnoDB mqt_woocommerce_order_items: Data:
   > 0.02MB + Index: 0.02MB + Engine InnoDB mqt_woocommerce_order_itemmeta: Data:
   > 0.02MB + Index: 0.03MB + Engine InnoDB mqt_woocommerce_tax_rates: Data: 0.02MB
   > + Index: 0.06MB + Engine InnoDB mqt_woocommerce_tax_rate_locations: Data: 0.02MB
   > + Index: 0.03MB + Engine InnoDB mqt_woocommerce_shipping_zones: Data: 0.02MB
   > + Index: 0.00MB + Engine InnoDB mqt_woocommerce_shipping_zone_locations: Data:
   > 0.02MB + Index: 0.03MB + Engine InnoDB mqt_woocommerce_shipping_zone_methods:
   > Data: 0.02MB + Index: 0.00MB + Engine InnoDB mqt_woocommerce_payment_tokens:
   > Data: 0.02MB + Index: 0.02MB + Engine InnoDB mqt_woocommerce_payment_tokenmeta:
   > Data: 0.02MB + Index: 0.03MB + Engine InnoDB mqt_woocommerce_log: Data: 0.02MB
   > + Index: 0.02MB + Engine InnoDB mqt_actionscheduler_actions: Data: 0.05MB +
   > Index: 0.11MB + Engine InnoDB mqt_actionscheduler_claims: Data: 0.02MB + Index:
   > 0.02MB + Engine InnoDB mqt_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB
   > + Engine InnoDB mqt_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine
   > InnoDB mqt_atbdp_review: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mqt_blogmeta:
   > Data: 0.02MB + Index: 0.03MB + Engine InnoDB mqt_blogs: Data: 0.02MB + Index:
   > 0.03MB + Engine InnoDB mqt_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine
   > MyISAM mqt_comments: Data: 0.00MB + Index: 0.01MB + Engine MyISAM mqt_frmt_form_entry:
   > Data: 0.02MB + Index: 0.05MB + Engine InnoDB mqt_frmt_form_entry_meta: Data:
   > 0.02MB + Index: 0.05MB + Engine InnoDB mqt_frmt_form_views: Data: 0.02MB + 
   > Index: 0.06MB + Engine InnoDB mqt_frm_fields: Data: 0.02MB + Index: 0.03MB 
   > + Engine InnoDB mqt_frm_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   > mqt_frm_items: Data: 0.02MB + Index: 0.08MB + Engine InnoDB mqt_frm_item_metas:
   > Data: 0.02MB + Index: 0.03MB + Engine InnoDB mqt_links: Data: 0.00MB + Index:
   > 0.00MB + Engine MyISAM mqt_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + 
   > Engine InnoDB mqt_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
   > mqt_newsletter: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mqt_newsletter_emails:
   > Data: 0.02MB + Index: 0.00MB + Engine InnoDB mqt_newsletter_sent: Data: 0.02MB
   > + Index: 0.03MB + Engine InnoDB mqt_newsletter_stats: Data: 0.02MB + Index:
   > 0.03MB + Engine InnoDB mqt_newsletter_user_logs: Data: 0.02MB + Index: 0.00MB
   > + Engine InnoDB mqt_options: Data: 2.10MB + Index: 0.08MB + Engine MyISAM mqt_postmeta:
   > Data: 3.11MB + Index: 0.11MB + Engine MyISAM mqt_posts: Data: 3.43MB + Index:
   > 0.07MB + Engine MyISAM mqt_registration_log: Data: 0.02MB + Index: 0.02MB +
   > Engine InnoDB mqt_sbi_instagram_feeds_posts: Data: 0.01MB + Index: 0.00MB +
   > Engine MyISAM mqt_sbi_instagram_posts: Data: 0.16MB + Index: 0.00MB + Engine
   > MyISAM mqt_signups: Data: 0.02MB + Index: 0.06MB + Engine InnoDB mqt_site: 
   > Data: 0.02MB + Index: 0.02MB + Engine InnoDB mqt_sitemeta: Data: 0.08MB + Index:
   > 0.03MB + Engine InnoDB mqt_termmeta: Data: 0.02MB + Index: 0.03MB + Engine 
   > InnoDB mqt_terms: Data: 0.01MB + Index: 0.02MB + Engine MyISAM mqt_term_relationships:
   > Data: 0.01MB + Index: 0.02MB + Engine MyISAM mqt_term_taxonomy: Data: 0.01MB
   > + Index: 0.01MB + Engine MyISAM mqt_tm_taskmeta: Data: 0.02MB + Index: 0.03MB
   > + Engine InnoDB mqt_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 
   > mqt_usermeta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM mqt_users: Data:
   > 0.00MB + Index: 0.01MB + Engine MyISAM mqt_wc_admin_notes: Data: 0.02MB + Index:
   > 0.00MB + Engine InnoDB mqt_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB
   > + Engine InnoDB mqt_wc_bookings_availability: Data: 0.02MB + Index: 0.02MB 
   > + Engine InnoDB mqt_wc_booking_relationships: Data: 0.02MB + Index: 0.03MB 
   > + Engine InnoDB mqt_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine
   > InnoDB mqt_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
   > mqt_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mqt_wc_order_coupon_lookup:
   > Data: 0.02MB + Index: 0.03MB + Engine InnoDB mqt_wc_order_product_lookup: Data:
   > 0.02MB + Index: 0.06MB + Engine InnoDB mqt_wc_order_stats: Data: 0.02MB + Index:
   > 0.05MB + Engine InnoDB mqt_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB
   > + Engine InnoDB mqt_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + 
   > Engine InnoDB mqt_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine 
   > InnoDB mqt_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   > mqt_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mqt_yoast_seo_links:
   > Data: 0.02MB + Index: 0.02MB + Engine InnoDB mqt_yoast_seo_meta: Data: 0.02MB
   > + Index: 0.00MB + Engine InnoDB
   > ### Post Type Counts ###
   > at_biz_dir: 4
   >  atbdp_orders: 1 attachment: 170 custom_css: 2 customize_changeset:
   > 7 forminator_forms: 1 forminator_quizzes: 1 frm_form_actions: 1 frm_styles:
   > 1 nav_menu_item: 12 oembed_cache: 1 option-tree: 1 page: 29 post: 72 product:
   > 6 revision: 288 shop_coupon: 1 shop_order: 3 sld: 1 spucpt: 2 tribe_events:
   > 3 tribe_organizer: 1 tribe_venue: 1 vc_grid_item: 6 vcv_templates: 9 wc_membership_plan:
   > 2
   > ### Security ###
   > Secure connection (HTTPS): ❌
   >  Your store is not using HTTPS. Learn more about
   > HTTPS and SSL Certificates. Hide errors from visitors: ✔
   > ### Active Plugins (23) ###
   > Debug Bar: by wordpressdotorg – 1.0.1
   >  Site Kit by Google: by Google – 1.12.0
   > Insert Headers and Footers: by WPBeginner – 1.4.6 Smash Balloon Instagram Feed:
   > by Smash Balloon – 2.4.5 Limit Login Attempts: by Johan Eenfeldt – 1.7.1 Restrict
   > Content Pro – MailChimp: by Sandhills Development LLC – 1.3.3
   > MC4WP: Mailchimp for WordPress: by ibericode – 4.8
   >  Popups – WordPress Popup:
   > by timersys – 1.9.3.8 Regenerate Thumbnails: by Alex Mills (Viper007Bond) –
   > 3.1.3 UpdraftPlus – Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.16.26
   > All-in-One WP Migration: by ServMask – 6.77
   >  Debug Bar: by wordpressdotorg –
   > 1.0.1 Insert Headers and Footers: by WPBeginner – 1.4.6 Limit Login Attempts:
   > by Johan Eenfeldt – 1.7.1 Popups – WordPress Popup: by timersys – 1.9.3.8 Regenerate
   > Thumbnails: by Alex Mills (Viper007Bond) – 3.1.3 Restrict Content Pro – MailChimp:
   > by Sandhills Development LLC – 1.3.3
   > SmartCrawl: by WPMU DEV – 2.6.1
   >  Smash Balloon Instagram Feed: by Smash Balloon–
   > 2.4.5 WooCommerce: by Automattic – 4.3.1 WP-Optimize – Clean, Compress, Cache:
   > by David Anderson Ruhani Rabin Team Updraft – 3.1.2
   > WPBakery Page Builder: by Michael M – WPBakery.com – 6.2.0
   >  MC4WP: Mailchimp
   > for WordPress: by ibericode – 4.8
   > ### Inactive Plugins (1) ###
   > WooCommerce Email Test: by RaiserWeb – 1.2 – Installed version not tested with
   > active version of WooCommerce 4.3.1
   > ### Must Use Plugins (1) ###
   > installatron_hide_status_test.php: by –
   > ### Settings ###
   > API Enabled: –
   >  Force SSL: – Currency: AUD ($) Currency Position: left Thousand
   > Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product
   > Types: booking (booking) dgfw_gift (dgfw_gift) external (external) grouped (
   > grouped) simple (simple) subscription (subscription) variable (variable) variable
   > subscription (variable-subscription)
   > Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
   > 
   > exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock)
   > rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-
   > 5 (rated-5)
   > Connected to WooCommerce.com: –
   > ### WC Pages ###
   > Shop base: #2551 – /store/
   >  Cart: #2552 – /cart/ Checkout: #2589 – /checkout/
   > My account: #2554 – /my-account/ Terms and conditions: #2543 – /terms-and-conditions/
   > ### Theme ###
   > Name: Claire Seeber Child Theme
   >  Version: 1.0.2 Author URL: [https://digitalagency.haus](https://digitalagency.haus)
   > Child Theme: ✔ Parent Theme Name: DA.Haus – Claire Seeber Parent Theme Version:
   > 0.0.1 Parent Theme Author URL: WooCommerce Support: ❌ Not declared
   > ### Templates ###
   > Overrides: –
   > ### Action Scheduler ###
   > Complete: 118
   >  Oldest: 2020-07-20 21:00:08 +1000 Newest: 2020-07-30 14:53:58
   > +1000
   > `

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

The topic ‘Uncaught TypeError: g(…).block is not a function’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [checkout](https://wordpress.org/support/topic-tag/checkout/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 2 replies
 * 2 participants
 * Last reply from: [Shannon](https://wordpress.org/support/users/spva/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/uncaught-typeerror-g-block-is-not-a-function/#post-13189287)
 * Status: not resolved