Error loading block: The response is not valid json
-
Whenever I open the backend of a wordpress page using any woocommerce product block, It gives this error “error loading block: the response is not valid json” and fails to load any product. It’s in conflict with woocommerce plugin features.
The block appears fine on the frontend but on the backend, it’s giving this error.
-
Could you give us a bit more feedback how to replicate this issue ?
We have tested with WooCommerce 8.8.3 and dont see any issues.
wp-core version: 6.5.3 site_language: en_US user_language: en_US timezone: +05:00 permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 12 dotorg_communication: true wp-paths-sizes advanced-cache.php: true object-cache.php: true wp-active-theme name: Botiga Child (botiga-child) version: 2.2.0.1708993634 author_website: (undefined) parent_theme: Botiga (botiga) theme_features: core-block-patterns, widgets-block-editor, post-thumbnails, automatic-feed-links, title-tag, menus, post-formats, html5, custom-background, customize-selective-refresh-widgets, custom-logo, align-wide, editor-color-palette, editor-font-sizes, responsive-embeds, block-templates, custom-header, woocommerce, wc-product-gallery-slider, wc-product-gallery-lightbox, widgets auto_update: Disabled wp-parent-theme name: Botiga (botiga) version: 2.2.3 author: aThemes author_website: https://athemes.com auto_update: Disabled wp-themes-inactive (4) Selleradise Lite: version: 2.1.0, author: RedOxbird, Auto-updates disabled Twenty Nineteen: version: 2.8, author: the WordPress team, Auto-updates disabled Twenty Twenty-Four: version: 1.1, author: the WordPress team, Auto-updates disabled Twenty Twenty-Three: version: 1.4, author: the WordPress team, Auto-updates disabled wp-plugins-active (42) a3 Lazy Load: version: 2.7.2, author: a3rev Software, Auto-updates disabled Advanced Order Export For WooCommerce: version: 3.5.1, author: AlgolPlus, Auto-updates disabled Advanced Shipping: version: 1.0.5, author: cloud Technologies, Auto-updates disabled APPS PayFast Gateway for Woocommerce - LIVE: version: 1.0, author: APPS Tech Team, Auto-updates disabled Asset CleanUp: Page Speed Booster: version: 1.3.9.3, author: Gabe Livan, Auto-updates disabled aThemes Blocks: version: 1.0.10, author: aThemes, Auto-updates disabled aThemes Starter Sites: version: 1.0.52, author: aThemes, Auto-updates disabled Beetle Tracking - Cloudflare Zaraz for WooCommerce: version: 1.5.6, author: RocketBeetle, Auto-updates disabled Breeze: version: 2.1.7, author: Cloudways, Auto-updates disabled Bulk Order Update for WooCommerce: version: 1.6, author: Sayantan Das, Auto-updates disabled Cache Enabler: version: 1.8.15, author: KeyCDN, Auto-updates disabled Classic Editor: version: 1.6.3, author: WordPress Contributors, Auto-updates disabled Cloudflare: version: 4.12.7, author: Cloudflare, Inc., Auto-updates disabled Custom Order Status Manager for WooCommerce: version: 1.1.3.2, author: Bright Plugins, Auto-updates disabled Direct checkout, WooCommerce Single page checkout , WooCommerce One page checkout: version: 2.1.73.19, author: PI Websolution, Auto-updates disabled Easy Table of Contents: version: 2.0.66.1, author: Magazine3, Auto-updates disabled EWWW Image Optimizer: version: 7.6.0, author: Exactly WWW, Auto-updates disabled MalCare WordPress Security Plugin - Malware Scanner, Cleaner, Security Firewall: version: 5.56, author: MalCare Security, Auto-updates disabled Markup by Attribute for WooCommerce: version: 3.12.1, author: MarkTomlinson, Auto-updates disabled Merchant: version: 1.9.9, author: aThemes, Auto-updates disabled Object Cache Pro: version: 1.21.1, author: Rhubarb Group, Auto-updates disabled One User Avatar: version: 2.4.0, author: One Designs, Auto-updates disabled PostEx: version: 2.3, author: PostEx, Auto-updates disabled Product Variations Swatches for WooCommerce: version: 1.1.4, author: VillaTheme, Auto-updates disabled Redirection: version: 5.4.2, author: John Godley, Auto-updates disabled Shortcodes Ultimate: version: 7.1.6, author: Vova Anokhin, Auto-updates disabled Simple Banner: version: 2.17.1, author: Ryan Petersen, Auto-updates disabled Simple Floating Menu: version: 1.2.7, author: HashThemes, Auto-updates disabled Site Reviews: version: 7.0.10, author: Paul Ryley, Auto-updates disabled String Locator: version: 2.6.5, author: InstaWP, Auto-updates disabled User Role Editor: version: 4.64.2, author: Vladimir Garagulya, Auto-updates disabled WooCommerce: version: 8.9.1, author: Automattic, Auto-updates disabled WooCommerce Advanced Free Shipping: version: 1.1.7, author: Jeroen Sormani, Auto-updates disabled WooCommerce Checkout Manager: version: 7.4.8, author: QuadLayers, Auto-updates disabled Wordfence Security: version: 7.11.5, author: Wordfence, Auto-updates disabled WPC Frequently Bought Together for WooCommerce: version: 7.1.0, author: WPClever, Auto-updates disabled WPCode Lite: version: 2.1.12, author: WPCode, Auto-updates disabled WPForms Lite: version: 1.8.8.3, author: WPForms, Auto-updates disabled WP Mail SMTP: version: 4.0.1, author: WP Mail SMTP, Auto-updates disabled WPS Hide Login: version: 1.9.15.2, author: WPServeur, NicolasKulka, wpformation, Auto-updates disabled Yoast Duplicate Post: version: 4.5, author: Enrico Battocchi & Team Yoast, Auto-updates disabled Yoast SEO: version: 22.7, author: Team Yoast, Auto-updates disabled wp-plugins-inactive (9) Coming Soon Page, Maintenance Mode, Landing Pages & WordPress Website Builder by SeedProd: version: 6.17.4, author: SeedProd, Auto-updates disabled File Manager Advanced: version: 5.2.4, author: modalweb, Auto-updates disabled Product SKU Generator for WooCommerce: version: 2.5.0, author: SkyVerge, Auto-updates disabled Really Simple SSL: version: 8.1.3, author: Really Simple Plugins, Auto-updates disabled Search & Replace: version: 3.2.2, author: WP MEDIA SAS, Auto-updates disabled Shipping Rate By Cities: author: (undefined), version: 1.0.0, Auto-updates disabled Trax Logistics: version: 2.1, author: Trax Logistics, Auto-updates disabled WP Rollback: version: 2.0.7, author: WP Rollback, Auto-updates disabled Yoast Test Helper: version: 1.18, author: Team Yoast, Auto-updates disabled wp-media image_editor: EWWWIO_Imagick_Editor imagick_module_version: 1691 imagemagick_version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org imagick_version: 3.7.0 file_uploads: 1 post_max_size: 300M upload_max_filesize: 300M max_effective_size: 300 MB max_file_uploads: 20 gd_version: 2.3.3 gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM ghostscript_version: 9.53.3 wp-server server_architecture: Linux 5.10.0-26-amd64 x86_64 httpd_software: Apache/2.4.59 (Debian) php_version: 8.1.28 64bit php_sapi: fpm-fcgi max_input_variables: 10000 time_limit: 899 memory_limit: 786M max_input_time: 299 upload_max_filesize: 300M php_post_max_size: 300M curl_version: 7.74.0 OpenSSL/1.1.1w suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: true current: 2024-05-22T01:34:13+00:00 utc-time: Wednesday, 22-May-24 01:34:13 UTC server-time: 2024-05-22T06:34:11+05:00 wp-database extension: mysqli server_version: 10.5.24-MariaDB-1:10.5.24+maria~deb11-log client_version: mysqlnd 8.1.28 max_allowed_packet: 134217728 max_connections: 350 wp-constants WP_HOME: undefined WP_SITEURL: undefined WP_MEMORY_LIMIT: 40M WP_MAX_MEMORY_LIMIT: 786M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_ENVIRONMENT_TYPE: Undefined WP_DEVELOPMENT_MODE: undefined DB_CHARSET: utf8 DB_COLLATE: undefined wp-filesystem wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable objectcache general-status: Connected general-dropin: Outdated general-license: Valid general-env: production general-multisite: No general-mu: No general-vcs: No general-host: cloudways general-eviction-policy: allkeys-lfu general-compressions: LZF, LZ4, ZSTD general-basename: object-cache-pro/object-cache-pro.php general-client: RedisCachePro\Clients\PhpRedis versions-php: 8.1.28 versions-igbinary: 3.2.15 versions-phpredis: 6.0.2 versions-relay: Not installed versions-redis: 7.2.4 versions-plugin: 1.21.1 versions-dropin: 1.21.0 (Outdated) statistics-redis-memory: 28 MB of 391 MB statistics-redis-keys: 4388 groups-global: [ "analytics", "objectcache", "blog-details", "blog-id-cache", "blog-lookup", "blog_meta", "global-posts", "networks", "network-queries", "sites", "site-details", "site-options", "site-queries", "site-transient", "theme_files", "translation_files", "rss", "users", "user-queries", "user_meta", "useremail", "userlogins", "userslugs" ] groups-non-persistent: [ "counts", "plugins", "theme_json", "themes", "wordfence", "wordfence-ls" ] groups-non-prefetchable: [ "analytics", "objectcache", "userlogins", "wc_session_id" ] config-token: ????????001c config-connector: RedisCachePro\Connectors\PhpRedisConnector config-cache: RedisCachePro\ObjectCaches\PhpRedisObjectCache config-logger: RedisCachePro\Loggers\ErrorLogLogger config-log_levels: emergency, alert, critical, error, warning config-scheme: tcp config-host: 127.0.0.1 config-port: 6379 config-database: 2700 config-username: null config-password: null config-prefix: aqtndqgpac config-maxttl: null config-timeout: 2.5s config-read_timeout: 2.5s config-retry_interval: 25ms config-retries: 3 config-backoff: smart config-persistent: false config-shared: null config-async_flush: true config-group_flush: keys config-network_flush: all config-cluster: null config-cluster_failover: error config-servers: null config-replication_strategy: distribute config-sentinels: null config-service: null config-tracer: none config-serializer: igbinary config-compression: zstd config-global_groups: null config-non_persistent_groups: null config-non_prefetchable_groups: null config-prefetch: true config-split_alloptions: true config-analytics: { "enabled": true, "persist": true, "retention": 7200, "sample_rate": 100, "footnote": true } config-relay: { "cache": true, "listeners": false, "invalidations": true, "allowed": null, "ignored": [ ":analytics:" ] } config-tls_options: null config-updates: true config-debug: false config-strict: true config-save_commands: false environment-WP_REDIS_DISABLED: 0 environment-OBJECTCACHE_CONFIG: undefined constants-WP_DEBUG: false constants-SAVEQUERIES: undefined constants-WP_REDIS_DIR: undefined constants-WP_REDIS_DISABLED: false constants-WP_REDIS_CONFIG: { "token": "????????001c", "host": "127.0.0.1", "port": 6379, "database": "2700", "timeout": 2.5, "read_timeout": 2.5, "split_alloptions": true, "async_flush": true, "client": "phpredis", "compression": "zstd", "serializer": "igbinary", "prefetch": true, "debug": false, "save_commands": false, "prefix": "aqtndqgpac" } wp_mail_smtp version: 4.0.1 license_key_type: lite debug: No debug notices found. lite_install_date: Feb 28, 2022 @ 2:50am wpforms version: 1.8.8.3 lite: May 4, 2022 at 11:47 pm upload_dir: Writable total_forms: 1 total_submissions: 100
Seeing this error
We still dont understand which block it is you are trying to load, and are you sure it is our plugin which is the problem ?
Every block that uses woocommerce is not working, Every block that involves displaying a product.
Yes, it is your plugin causing the issue. I have tested it by disabling all plugin except yours and the problem is still there. Once your plugin is disabled, the problem goes away.
It seems to be conflicting with Woocommerce Gutenberg blocksWe dont have any conflict with standard WooCommerce as I see it, try to see here:
https://capture.dropbox.com/aNN6h4kp5rxg7o82At our end everything works, so in order to help you could you create similar video, so I can see which blocks it is you have problems with, on where and so on.
Also maybe open your Developer tools with the tab on Console, so I can see the conflicts there.Hi, we are seeing the same issue when trying to use the “hand picked products” woocommerce block on a page – “Error loading block: The response is not a valid JSON response.”
This is when using the Storefront theme, Woocommerce, and Beetle Tracking only (no other plugins). Deactivating Beetle Tracking resolves the issue.
I have also created a completely fresh install with just 2025 theme, Woocommerce, and beetle tracking – same issue when Beetle Tracking is activated.?
I can share the login if you like.
Video here: https://drive.google.com/file/d/1gNEOxnZkekWViBWi2u_2IO2Aa02lAbyK/view?usp=sharing
Thank you @djdanj that comment and video helped a lot. I have just shipped a new version which fixes this.
- You must be logged in to reply to this topic.