SOLVED: Woocommerce Cart : not a valid JSON response

Browser: Arc
OS: macOS

System Information

  • |Parent theme name:|Bricks|
    |Parent theme version:|1.12.4|
    Active Plugins
    Code Snippets (3.6.8) by [Code Snippets Pro]
    Core Framework (1.7.1) by [Core Framework]
    InstaWP Connect (0.1.0.87) by [InstaWP Team]
    Site Kit by Google (1.151.0) by [Google]
    WooCommerce (9.8.2) by [Automattic]
    WooCommerce Payfast Gateway (1.7.0) by [WooCommerce])
    WP Activity Log (5.3.4.1) by [Melapress]
  • I have a checkout template in bricks. The instruction is to replace the woocommerce shortcode with the bricks template shortcode, however when I try and save the shortcode using gutenberg, I get a notification that "Updating failed. The response is not a valid JSON response.
  • I also see the instruction to NOT create cart or checkout templates anymore, however, when I try to edit the default checkout page in bricks, I have no “cart” or “checkout” blocks to select from?
  • Once a page has this JSON error, it becomes totally unusable, and tells me, There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the [support forums]

Hi Mark,
Thanks so much for your report, and welcome to the forum!

I’m not quite sure what you did exactly, but I don’t expect this to be a Bricks bug. Please see this article that provides various potential causes and fixes for this error:

Best regards,
timmse

Morning, thanks so much for the help. I’ll work through that.

  1. I only get this error when I try and add a bricks shortcode.
  2. I remove the bricks shortcode, copied from the template section, and the page saves.
  3. I’ve worked through the article to no avail.
  4. An err also occurs when I create a new page, edit with bricks and add a bricks template shortcode via the shortcode element, the checkout page renders, but the “place-order” button doesn’t work.
  5. All other bricks templates added via shortcode to default page work.
  6. I disabled plugins, and no avail, same error.

Then it is either a configuration error or a server problem.

Please send temporary login credentials and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase.

Hi @greywolf ,

As per my email reply, I can replicate this error if I use [bricks_template] on the Cart page. (The template contains Cart-related elements)

I have recorded this in the bug tracker.

However, using [bricks_template] shortcode for Cart or Checkout template is not right. You should use [woocommerce_cart] or [woocommerce_checkout] instead.

Thanks.

Regards,
Jenn

Hi Mark,

We fixed this issue in Bricks 2.0 RC, which is now available in your account.
Changelog: Bricks 2.0-rc Changelog – Bricks

Please let us know if you are still experiencing issues.

As with any pre-stable release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment.