• Resolved Mike Cottam

    (@mikecottam)


    My client is getting the following error message when trying to update pages and posts:

    “Updating failed. The response is not a valid JSON response.”

    The web host has confirmed that it’s not a server error. When viewing the error logs in cPanel, there appear to be multiple errors within the Woocommerce plugin dating back to when V7.6 was released.

    Has anyone else had the same error message?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @mikecottam ,

    Thanks for reaching out!

    I understand that your client is receiving the above error message when trying to update pages and posts, is this correct?

    Since the web host has confirmed that this is not a server error, can you see if refreshing the sites permalinks makes any difference?

    To do this, head over to Dashboard Settings Permalinks, and resave your existing settings, without making any changes to the settings.

    Additionally, the JSON response error could be the cause of misconfigured site addresses on the Settings page.

    Please navigate to Dashboard Settings → General and check that the site URL entered in both WordPress Address (URL) and Site Address (URL) are exactly the same:

    If this makes no difference, please can you share the following:

    • System Status Report: navigate to WooCommerce → Status. Select Get system report and then Copy for support.
    • Fatal Error log: Share a copy of any fatal error log found under WooCommerce → Status → Logs.

    Once you have these, please share them in your response here.

    Cheers!

    Thread Starter Mike Cottam

    (@mikecottam)

    Hi, Roxy

    Thanks so much for your reply. The site addresses are the same and updating the permalinks has no effect. The only solution I’ve found is to deactivate the WC plugin, which is not an option going forward.

    Below is the System Report:

    WordPress Environment
    
    WordPress address (URL): https://cpdataprotection.com
    Site address (URL): https://cpdataprotection.com
    WC Version: 7.6.0
    REST API Version: ✔ 7.6.0
    WC Blocks Version: ✔ 9.8.4
    Action Scheduler Version: ✔ 3.5.4
    Log Directory Writable: ✔
    WP Version: 6.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_GB
    External object cache: – Server Environment Server Info: Apache
    PHP Version: 7.4.33
    PHP Post Max Size: 32 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.84.0
    OpenSSL/1.1.1p SUHOSIN Installed: –
    MySQL Version: 5.7.40-cll-lve
    Max Upload Size: 32 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔ Database WC Database Version: 7.6.0
    WC Database Prefix: wp_
    Total Database Size: 16.54MB
    Database Data Size: 13.08MB
    Database Index Size: 3.46MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.05MB + Index: 0.13MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_captcha_bank: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_captcha_bank_ip_locations: Data: 0.17MB + Index: 0.03MB + Engine MyISAM
    wp_captcha_bank_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_ce4wp_abandoned_checkout: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_cky_banners: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_cky_cookies: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_cky_cookie_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_gdpr_cc_options: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_gglcptch_allowlist: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_learndash_pro_quiz_category: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_learndash_pro_quiz_form: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_learndash_pro_quiz_lock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_learndash_pro_quiz_master: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_learndash_pro_quiz_prerequisite: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_learndash_pro_quiz_question: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_learndash_pro_quiz_statistic: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_learndash_pro_quiz_statistic_ref: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_learndash_pro_quiz_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_learndash_pro_quiz_toplist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_learndash_user_activity: Data: 0.02MB + Index: 0.13MB + Engine InnoDB
    wp_learndash_user_activity_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 3.52MB + Index: 0.08MB + Engine InnoDB
    wp_postmeta: Data: 2.52MB + Index: 0.45MB + Engine InnoDB
    wp_posts: Data: 3.52MB + Index: 0.13MB + Engine InnoDB
    wp_slicewp_affiliates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_slicewp_affiliate_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_slicewp_commissions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_slicewp_commission_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_slicewp_creatives: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_slicewp_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_slicewp_customer_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_slicewp_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_slicewp_payments: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_slicewp_payment_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_slicewp_payouts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_slicewp_payout_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_slicewp_visits: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.19MB + Index: 0.14MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfconfig: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilemods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfhits: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfknownfilelist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflogins: Data: 0.42MB + Index: 0.16MB + Engine InnoDB
    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfls_role_counts: Data: 0.00MB + Index: 0.00MB + Engine MEMORY
    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfstatus: Data: 0.17MB + Index: 0.03MB + Engine InnoDB
    wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yoast_indexable: Data: 0.16MB + Index: 0.09MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_prominent_words: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_meta: Data: 0.06MB + Index: 0.00MB + Engine InnoDB Post Type Counts attachment: 201
    custom_css: 1
    et_pb_layout: 21
    nav_menu_item: 21
    oembed_cache: 4
    page: 33
    post: 48
    product: 24
    revision: 254
    seedprod: 1
    shop_coupon: 8
    shop_order: 12
    wp_global_styles: 1 Security Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔ Active Plugins (16) ManageWP - Worker: by GoDaddy – 4.9.17
    Akismet Anti-Spam: by Automattic – 5.1
    Blocksy Companion: by CreativeThemes – 1.8.84
    CMP - Coming Soon & Maintenance Plugin: by NiteoThemes – 4.1.8
    CookieYes | GDPR Cookie Consent: by CookieYes – 3.0.8
    Duplicate Page and Post: by Arjun Thakur – 2.9.2
    Email Subscribe Form & Newsletter Builder: by Email Blaster – 1.0.7
    reCaptcha by BestWebSoft: by BestWebSoft – 1.70
    LearnDash LMS - Course Grid: by LearnDash – 2.0.7
    LearnDash Licensing & Management: by LearnDash – 1.2
    LearnDash LMS: by LearnDash – 4.5.3
    Slim SEO: by eLightUp – 3.20.0
    WooCommerce Stripe Gateway: by WooCommerce – 7.3.0
    WooCommerce Shipping & Tax: by WooCommerce – 2.2.4
    WooCommerce: by Automattic – 7.6.0
    Wordfence Security: by Wordfence – 7.9.2 Inactive Plugins (1) GDPR Cookie Compliance: by Moove Agency – 4.11.1 Dropin Plugins (2) advanced-cache.php: advanced-cache.php
    maintenance.php: maintenance.php Must Use Plugins (2) ManageWP - Worker Loader: by GoDaddy – 1.0.0
    WordPress automation by Installatron: by – Settings API Enabled: –
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable) 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: –
    Enforce Approved Product Download Directories: –
    Order datastore: WC_Order_Data_Store_CPT WC Pages Shop base: #20 - /training-toolkits-shop/
    Basket: #146 - /basket/
    Checkout: #147 - /checkout/
    My account: #148 - /my-account/
    Terms and conditions: #134 - /terms-conditions/ Theme Name: Blocksy Child
    Version: (update to version 0 is available)
    Author URL:
    Child Theme: ✔
    Parent Theme Name: Blocksy
    Parent Theme Version: 1.8.84
    Parent Theme Author URL: https://creativethemes.com
    WooCommerce Support: ✔ Templates Overrides: blocksy/woocommerce/cart/cart.php
    blocksy/woocommerce/cart/mini-cart.php
    blocksy/woocommerce/content-widget-product.php
    blocksy/woocommerce/content-widget-reviews.php
    blocksy/woocommerce/myaccount/my-account.php
    blocksy/woocommerce/product-searchform.php
    blocksy/woocommerce/single-product/tabs/tabs.php Admin Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    multichannel-marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page Disabled Features: block-editor-feature-enabled
    minified-js
    new-product-management-experience
    product-variation-management
    settings Daily Cron: ✔ Next scheduled: 2023-04-22 12:26:46 +01:00
    Options: ✔
    Notes: 63
    Onboarding: completed Action Scheduler Complete: 44
    Oldest: 2023-03-21 22:47:52 +0000
    Newest: 2023-04-21 13:25:16 +0100 Pending: 1
    Oldest: 2023-04-22 13:03:08 +0100
    Newest: 2023-04-22 13:03:08 +0100 Status report information Generated at: 2023-04-21 13:31:06 +01:00
    `

    And this is the Error Log:

    2023-04-14T06:44:08+00:00 CRITICAL Allowed memory size of 134217728 bytes exhausted (tried to allocate 954368 bytes) in /home/n6fls4p4wz77/public_html/cpdataprotection.com/wp-includes/class-wpdb.php on line 2397

    2023-04-14T06:44:09+00:00 CRITICAL Allowed memory size of 134217728 bytes exhausted (tried to allocate 954368 bytes) in /home/n6fls4p4wz77/public_html/cpdataprotection.com/wp-includes/class-wpdb.php on line 2397

    Many thanks for your help.

    Mike

    Thread Starter Mike Cottam

    (@mikecottam)

    Hi, @beautyofcode have you had a chance to review the logs?

    Hi Mike,

    Thanks for sharing the SSR and error logs!

    2023-04-14T06:44:08+00:00 CRITICAL Allowed memory size of 134217728 bytes exhausted (tried to allocate 954368 bytes) in /home/n6fls4p4wz77/public_html/cpdataprotection.com/wp-includes/class-wpdb.php on line 2397

    This error indicates your memory limit being exhausted. To resolve this issue you would need to increase your WordPress memory limit from 256M to 512M.

    You can reach out to your host for help with this. Also, you can read more about this in our Increasing the WordPress Memory Limit support documentation.

    If increasing the memory limit makes no difference, I’d suggest performing a full conflict test to rule out any theme/plugin conflicts causing the issue.

    You can do this by following the How to test for conflicts support guide.

    Let us know how this goes!

    Thread Starter Mike Cottam

    (@mikecottam)

    Hi @beautyofcode

    Thanks so much for your reply. I’ve increased the memory limit, so we will see if that makes a difference.

    I have done some additional investigation and it could be an issue with corrupt content within a blog post, so we are removing that content too.

    Best wishes,

    Mike

    Hi Mike,

    Thanks so much for your reply. I’ve increased the memory limit, so we will see if that makes a difference.

    I have done some additional investigation and it could be an issue with corrupt content within a blog post, so we are removing that content too.

    Great, please let us know how this goes!

    Should the issue not be resolved, you can perform a full conflict test as suggested above and see if you are able to identify the possible culprit.

    We’ll be here should the issue persist.

    Cheers!

    Thread Starter Mike Cottam

    (@mikecottam)

    Thanks so much @beautyofcode 🙂

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

The topic ‘JSON Error on Woocommerce v7.6’ is closed to new replies.