• Resolved jadebath

    (@jadebath)


    Hi there,

    I had a few spinners at the end of the checkout page. I removed them using CSS and now I’m getting this error. I disable all plugins and even changed the theme I was using. Still nothing. I uninstalled WooCommerce completely including the SQL data but the error remains. It doesn’t seem to be an answer to this question in this forum, and people who have asked it in the past don’t get a solution. Can anyone help?

    SyntaxError: Unexpected token < in JSON at position 0″

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://igpglass.com
    Site address (URL): https://igpglass.com
    WC Version: 5.1.0
    REST API Version: ? 5.1.0
    WC Blocks Version: ? 4.4.3
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 2.0.2
    Log Directory Writable: ?
    WP Version: 5.7
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.16
    PHP Post Max Size: 516 MB
    PHP Time Limit: 70
    PHP Max Input Vars: 1000
    cURL Version: 7.75.0
    OpenSSL/1.1.1k
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.41-84.1
    Max Upload Size: 512 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 5.1.0
    WC Database Prefix: wpid_
    Total Database Size: 35.68MB
    Database Data Size: 30.95MB
    Database Index Size: 4.73MB
    wpid_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpid_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpid_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpid_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpid_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpid_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpid_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpid_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpid_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpid_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_actionscheduler_actions: Data: 0.27MB + Index: 0.31MB + Engine InnoDB
    wpid_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_actionscheduler_logs: Data: 0.20MB + Index: 0.16MB + Engine InnoDB
    wpid_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpid_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wpid_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpid_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpid_options: Data: 2.25MB + Index: 0.44MB + Engine InnoDB
    wpid_postmeta: Data: 2.52MB + Index: 2.03MB + Engine InnoDB
    wpid_posts: Data: 24.52MB + Index: 0.47MB + Engine InnoDB
    wpid_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_rank_math_analytics_gsc: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpid_rank_math_analytics_objects: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wpid_rank_math_internal_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_rank_math_internal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpid_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_termmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wpid_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpid_term_relationships: Data: 0.09MB + Index: 0.06MB + Engine InnoDB
    wpid_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wpid_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpid_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpid_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpid_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpid_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpid_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpid_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpid_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpid_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpid_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpid_wc_product_meta_lookup: Data: 0.06MB + Index: 0.09MB + Engine InnoDB
    wpid_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpid_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpid_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpid_wpf_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 257
    cartflows_flow: 1
    cartflows_step: 2
    customize_changeset: 72
    custom_css: 3
    et_body_layout: 9
    et_footer_layout: 1
    et_header_layout: 32
    et_pb_layout: 36
    et_template: 98
    et_theme_builder: 10
    nav_menu_item: 50
    page: 40
    pagelayer-template: 5
    polylang_mo: 2
    post: 4
    product: 94
    product_variation: 218
    revision: 1498
    wpcf7_contact_form: 4
    wpforms: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (10) ###
    
    Polylang: by WP SYNTEX – 3.0.3
    Contact Form 7: by Takayuki Miyoshi – 5.4
    Rank Math SEO: by Rank Math – 1.0.61
    Advanced Editor Tools (previously TinyMCE Advanced): by Automattic – 5.6.0
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.16.51
    
    NP Quote Request WooCommerce: by Neah Plugins – 1.8.254
    Variation Swatches for WooCommerce: by Emran Ahmed – 1.1.13
    WooCommerce Stripe Gateway: by WooCommerce – 5.0.0
    WooCommerce: by Automattic – 5.1.0
    Multi-Step Checkout for WooCommerce: by SilkyPress – 2.15
    
    ### Inactive Plugins (3) ###
    
    Checkout Field Editor for WooCommerce: by ThemeHigh – 1.4.6
    Mailchimp for WooCommerce: by Mailchimp – 2.5.1
    Under Construction: by WebFactory Ltd – 3.88
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: CAD ($)
    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: –
    
    ### WC Pages ###
    
    Shop base: #1768 - /fr/magasin/
    Cart: #1852 - /fr/chariot/
    Checkout: #1867 - /fr/caisse/
    My account: #1884 - /fr/mon-compte/
    Terms and conditions: #1366 - /fr/termes-et-conditions/
    
    ### Theme ###
    
    Name: IGP Verre - IGP Glass
    Version: v.1 (update to version 0 is available)
    Author URL: https://igpglass.com
    Child Theme: ?
    Parent Theme Name: Divi
    Parent Theme Version: 4.9.3
    Parent Theme Author URL: https://www.elegantthemes.com
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 840
    Oldest: 2021-03-02 18:44:21 +0000
    Newest: 2021-04-02 17:04:23 +0000
    
    Pending: 2
    Oldest: 2021-04-02 18:18:39 +0000
    Newest: 2021-04-09 16:17:11 +0000
    
    ### Status report information ###
    
    Generated at: 2021-04-02 18:17:50 +00:00
    

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you have WP_DEBUG mode on, an AJAX call will return an HTML error in what should be JSON data.

    Open devtools in your browser and look at network tab. Review the responses. The offending error should show a PHP error.

    Thread Starter jadebath

    (@jadebath)

    I found the problem. I’m using an index.html page while I design this site, and that is causing this problem. Once I disabled it, the problem goes away. Thanks!

    • This reply was modified 3 years, 7 months ago by jadebath.
    • This reply was modified 3 years, 7 months ago by jadebath.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SyntaxError: Unexpected token < in JSON at position 0’ is closed to new replies.