Uncaught (in promise) syntaxerror: unexpected token < in json at position 0 wordpress

Resolved

Overview of the issue

Some websites may face the following JavaScript console error in the Translation Management Dashboard or Translation Management Jobs pages:

app.js?ver=5.0.4:1 Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0

This error will also produce a series of PHP warnings like the following:
PHP Warning: Cannot modify header information - headers already sent in /app/public/wp-includes/rest-api/class-wp-rest-server.php on line 1258
PHP Stack trace:
PHP 1. {main}() /app/public/index.php:0
PHP 2. require() /app/public/index.php:17
PHP 3. wp() /app/public/wp-blog-header.php:16
PHP 4. WP->main() /app/public/wp-includes/functions.php:1105
PHP 5. WP->parse_request() /app/public/wp-includes/class-wp.php:737
PHP 6. do_action_ref_array() /app/public/wp-includes/class-wp.php:387
PHP 7. WP_Hook->do_action() /app/public/wp-includes/plugin.php:531
PHP 8. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:310
PHP 9. call_user_func_array:{/app/public/wp-includes/class-wp-hook.php:286}() /app/public/wp-includes/class-wp-hook.php:286
PHP 10. rest_api_loaded() /app/public/wp-includes/class-wp-hook.php:286
PHP 11. WP_REST_Server->serve_request() /app/public/wp-includes/rest-api.php:309
PHP 12. WP_REST_Server->send_header() /app/public/wp-includes/rest-api/class-wp-rest-server.php:224
PHP 13. header() /app/public/wp-includes/rest-api/class-wp-rest-server.php:1258

The error is specific to websites running PHP 5.6 and is caused by a deprecation warning triggered by PHP when the $HTTP_RAW_POST_DATA global variable is populated (even if it is not used), as explained here by the author of this change in PHP:

[…] the current way for triggering the deprecated message is a bit sub-optimal (we don’t show you the message when you try to access the $HTTP_RAW_POST_DATA variable, but when $HTTP_RAW_POST_DATA is populated.

The warning explains how to remove the deprecation notice.

Workaround

Editing the php.ini file

  1. Find and edit your server’s php.ini file.
  2. Look for a line containing the always_populate_raw_post_data string.
  3. If the line starts with a semicolon (;), it means it is commented out (and not being used). In this case, remove the semicolon.
  4. Check that the full line is always_populate_raw_post_data=-1 (it must end with “=-1”).
  5. Restart your server.

Upgrade PHP

Upgrading PHP to a more recent version (7.1 or greater) will remove the deprecation warning.

PHP 7.1 is much faster than PHP 5.6.

PHP 5.6 reached its end-of-life period on 1st of January 2019. This means that it is a “release that is no longer supported. Users of this release should upgrade as soon as possible, as they may be exposed to unpatched security vulnerabilities.” (source: https://www.php.net/supported-versions.php).

Support » Plugin: WooCommerce » syntaxerror: unexpected token < in json at position 0

  • There is an error on the checkout page when someone clicks place order. It says syntaxerror: unexpected token < in json at position 0. Also there is jQuery block overlay on the place order section.

    In an urgent need for help, I have users complaining that they cannot make payments and place orders.

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

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

  • There is a white block over the place order section on the checkout page. Place order button isn’t working. I have disabled all the plugins and also checked in the debugging mode with twenty twenty-one theme. Same issue persists.

    Hi, @abdullahshoyeb !

    I checked your checkout page and couldn’t find the issues you are describing. See the image -> https://snipboard.io/RW7qCA.jpg

    Just so that we get a better understanding here, could you please provide us with a screenshot of the issue?

    I recommend https://snipboard.io for easily sharing screenshots – please follow the instructions on the page, then paste the URL in this chat.

    Also, it would be very helpful if you share a copy of your site’s System Status. You can find it via WooCommerce > Status. Select the Get system report button and then click Copy for support. Once you’ve done that, paste it here in your response.

    Thank you!

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://primeradentalhub.com/test
    Site address (URL): https://primeradentalhub.com/test
    WC Version: 5.9.0
    REST API Version: ✔ 5.9.0
    WC Blocks Version: ✔ 6.1.0
    Action Scheduler Version: ✔ 3.3.0
    WC Admin Version: ✔ 2.8.0
    Log Directory Writable: ✔
    WP Version: 5.8.2
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: ✔
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.3.31
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.71.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.51-cll-lve
    Max Upload Size: 2 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 5.9.0
    WC Database Prefix: wpag_
    Total Database Size: 79.05MB
    Database Data Size: 68.21MB
    Database Index Size: 10.84MB
    wpag_woocommerce_sessions: Data: 0.61MB + Index: 0.02MB + Engine MyISAM
    wpag_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpag_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_woocommerce_order_items: Data: 0.07MB + Index: 0.03MB + Engine MyISAM
    wpag_woocommerce_order_itemmeta: Data: 0.76MB + Index: 0.34MB + Engine MyISAM
    wpag_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_acfw_loyalprog_entries: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_actionscheduler_actions: Data: 1.51MB + Index: 0.59MB + Engine MyISAM
    wpag_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpag_actionscheduler_logs: Data: 1.09MB + Index: 0.82MB + Engine MyISAM
    wpag_commentmeta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wpag_comments: Data: 0.18MB + Index: 0.07MB + Engine MyISAM
    wpag_ewwwio_images: Data: 1.34MB + Index: 0.57MB + Engine MyISAM
    wpag_ewwwio_queue: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_hurrytimer_evergreen: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpag_hustle_entries: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_hustle_entries_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_hustle_modules: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_hustle_modules_meta: Data: 0.29MB + Index: 0.01MB + Engine MyISAM
    wpag_hustle_tracking: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpag_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpag_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mailpoet_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpag_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpag_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    wpag_mailpoet_scheduled_tasks: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wpag_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpag_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpag_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpag_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpag_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpag_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wpag_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpag_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpag_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpag_mailpoet_subscribers: Data: 0.08MB + Index: 0.13MB + Engine InnoDB
    wpag_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpag_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpag_mobiloud_categories: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_mobiloud_notifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_mobiloud_notification_categories: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_mobiloud_pages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_nextend2_image_storage: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    wpag_nextend2_section_storage: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpag_nextend2_smartslider3_generators: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_nextend2_smartslider3_sliders: Data: 0.10MB + Index: 0.00MB + Engine MyISAM
    wpag_nextend2_smartslider3_sliders_xref: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_nextend2_smartslider3_slides: Data: 0.24MB + Index: 0.01MB + Engine MyISAM
    wpag_nf3_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_nf3_action_meta: Data: 0.03MB + Index: 0.01MB + Engine MyISAM
    wpag_nf3_chunks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_nf3_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_nf3_field_meta: Data: 0.14MB + Index: 0.01MB + Engine MyISAM
    wpag_nf3_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_nf3_form_meta: Data: 0.03MB + Index: 0.01MB + Engine MyISAM
    wpag_nf3_objects: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_nf3_object_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_nf3_relationships: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_nf3_upgrades: Data: 0.10MB + Index: 0.00MB + Engine MyISAM
    wpag_options: Data: 24.74MB + Index: 0.33MB + Engine MyISAM
    wpag_pmpro_discount_codes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_pmpro_discount_codes_levels: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_pmpro_discount_codes_uses: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_pmpro_memberships_categories: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_pmpro_memberships_pages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_pmpro_memberships_users: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_pmpro_membership_levelmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_pmpro_membership_levels: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_pmpro_membership_ordermeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_pmpro_membership_orders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_postmeta: Data: 15.77MB + Index: 4.01MB + Engine MyISAM
    wpag_posts: Data: 11.10MB + Index: 0.68MB + Engine MyISAM
    wpag_revslider_css: Data: 0.09MB + Index: 0.00MB + Engine MyISAM
    wpag_revslider_css_bkp: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wpag_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_revslider_layer_animations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_revslider_navigations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_revslider_navigations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_revslider_sliders: Data: 0.02MB + Index: 0.00MB + Engine MyISAM
    wpag_revslider_sliders_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_revslider_slides: Data: 0.06MB + Index: 0.00MB + Engine MyISAM
    wpag_revslider_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_revslider_static_slides: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_revslider_static_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_sfa_abandoned_carts: Data: 1.49MB + Index: 0.02MB + Engine MyISAM
    wpag_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_social_users: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_termmeta: Data: 0.12MB + Index: 0.08MB + Engine MyISAM
    wpag_terms: Data: 0.07MB + Index: 0.11MB + Engine MyISAM
    wpag_term_relationships: Data: 0.14MB + Index: 0.27MB + Engine MyISAM
    wpag_term_taxonomy: Data: 0.06MB + Index: 0.08MB + Engine MyISAM
    wpag_um_metadata: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_usermeta: Data: 0.57MB + Index: 0.27MB + Engine MyISAM
    wpag_users: Data: 0.03MB + Index: 0.03MB + Engine MyISAM
    wpag_vtprd_purchase_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_vtprd_purchase_log_product: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_vtprd_purchase_log_product_rule: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_vtprd_transient_cart_data: Data: 0.05MB + Index: 0.01MB + Engine MyISAM
    wpag_wccs_conditions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_wccs_condition_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_wcfm_membership_subscription: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_wcpdf_invoice_number: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wpag_wc_admin_notes: Data: 0.03MB + Index: 0.00MB + Engine MyISAM
    wpag_wc_admin_note_actions: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wpag_wc_cancel_orders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpag_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_wc_customer_lookup: Data: 0.02MB + Index: 0.02MB + Engine MyISAM
    wpag_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_wc_order_product_lookup: Data: 0.07MB + Index: 0.06MB + Engine MyISAM
    wpag_wc_order_stats: Data: 0.02MB + Index: 0.02MB + Engine MyISAM
    wpag_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_wc_product_meta_lookup: Data: 0.16MB + Index: 0.20MB + Engine MyISAM
    wpag_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpag_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_wdr_order_discounts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_wdr_order_item_discounts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_wdr_rules: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpag_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpag_wpforms_tasks_meta: Data: 0.19MB + Index: 0.05MB + Engine MyISAM
    wpag_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpag_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    wpag_yith_wcwl: Data: 0.17MB + Index: 0.10MB + Engine MyISAM
    wpag_yith_wcwl_lists: Data: 0.19MB + Index: 0.21MB + Engine MyISAM
    wpag_yoast_indexable: Data: 2.77MB + Index: 0.34MB + Engine MyISAM
    wpag_yoast_indexable_hierarchy: Data: 0.13MB + Index: 0.30MB + Engine MyISAM
    wpag_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpag_yoast_primary_term: Data: 0.06MB + Index: 0.07MB + Engine MyISAM
    wpag_yoast_seo_links: Data: 0.21MB + Index: 0.07MB + Engine MyISAM
    
    ### Post Type Counts ###
    
    attachment: 2810
    custom_css: 3
    customize_changeset: 20
    elementor_library: 1
    hurrytimer_countdown: 6
    jetpack_migration: 2
    jp_img_sitemap: 1
    jp_sitemap: 1
    jp_sitemap_master: 1
    logoshowcase: 1
    mailpoet_page: 1
    nav_menu_item: 132
    nf_sub: 32
    oembed_cache: 2
    page: 43
    post: 34
    product: 1197
    product_variation: 1252
    pw_bogo: 1
    revision: 1347
    sa_slider: 1
    shop_coupon: 2
    shop_order: 262
    shop_order_refund: 2
    spt_shortcodes: 1
    spt_testimonial: 4
    static_block: 26
    um_directory: 1
    um_form: 3
    vc_settings_preset: 6
    vtprd-rule: 1
    wcpa_pt_forms: 1
    wlwl_email: 60
    wpforms: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (44) ###
    
    Redux: by Extendify – 4.3.2
    Advanced Coupons for WooCommerce Free: by Rymera Web Co – 3.0.1
    Advanced Coupons for WooCommerce Premium: by Rymera Web Co – 2.5.2
    Advanced Custom Fields: by Delicious Brains – 5.11
    AfterShip Tracking - All-In-One WooCommerce Order Tracking (Free plan available): by AfterShip – 1.13.7
    Electro Extensions: by MadrasThemes – 3.2.3
    Envato Market: by Envato – 2.0.6
    Facebook for WooCommerce: by Facebook – 2.6.7
    Site Kit by Google: by Google – 1.45.0
    Health Check & Troubleshooting: by The WordPress.org community – 1.4.5
    Insert Headers and Footers: by WPBeginner – 1.6.0
    Jetpack: by Automattic – 10.3
    WPBakery Page Builder: by Michael M - WPBakery.com – 6.7.0
    MAS Static Content: by MadrasThemes – 1.0.4
    Ninja Forms: by Saturday Drive – 3.6.5
    One Click Demo Import: by OCDI – 3.0.2
    Order Minimum/Maximum Amount for WooCommerce: by WPFactory – 4.0.7
    WhatsButton - Leads and Order over Chat: by mvvapps – 1.6.0
    Perfect Brands for WooCommerce: by QuadLayers – 1.9.9
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5
    Shiprocket: by Shiprocket – 1.0.6
    Slide Anything - Responsive Content / HTML Slider and Carousel: by Simon Edge – 2.3.39
    Smart Slider 3: by Nextend – 3.5.1.1
    Velvet Blues Update URLs: by VelvetBlues.com – 3.2.10
    Abandoned Cart Reports For WooCommerce: by Small Fish Analytics – 2.6.2
    WC Cancel Order: by Vikram S – 3.1.2
    WooCommerce Custom Product Addons (Free): by Acowebs – 2.5.6
    Lucky Wheel for WooCommerce: by VillaTheme – 1.0.8.2
    Min Max Quantity & Step Control for WooCommerce: by CodeAstrology – 2.1.0
    Razorpay for WooCommerce: by Team Razorpay – 2.8.0
    Return Refund and Exchange for WooCommerce: by MakeWebBetter – 3.1.3
    WC - APG SMS Notifications: by Art Project Group – 2.24.1
    Checkout Fields Manager for WooCommerce: by QuadLayers – 5.5.0
    WooCommerce - Store Exporter: by Visser Labs – 2.7
    WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.10.3
    WooCommerce: by Automattic – 5.9.0
    Yoast SEO: by Team Yoast – 17.5
    WP File Manager: by mndpsingh287 – 7.1.2
    WP Mail SMTP: by WPForms – 3.2.0
    WPForms Lite: by WPForms – 1.7.1.1
    YITH WooCommerce Compare: by YITH – 2.8.0
    YITH WooCommerce Order Tracking: by YITH – 1.5.0
    YITH WooCommerce Social Login: by YITH – 1.4.8
    YITH WooCommerce Wishlist: by YITH – 3.3.0
    
    ### Inactive Plugins (0) ###
    
    ### Dropin Plugins (1) ###
    
    maintenance.php: maintenance.php
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: –
    Currency: INR (₹)
    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: #3853 - /shop/
    Cart: #3134 - /cart/
    Checkout: #3135 - /checkout/
    My account: #3854 - /my-account/
    Terms and conditions: #2183 - /terms-and-conditions/
    
    ### Theme ###
    
    Name: Storefront
    Version: 3.9.1
    Author URL: https://woocommerce.com/
    Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 1,806
    Oldest: 2021-11-10 09:41:54 +0000
    Newest: 2021-11-15 07:30:03 +0000
    
    Failed: 4,524
    Oldest: 2021-08-20 04:51:09 +0000
    Newest: 2021-11-09 05:56:45 +0000
    
    Pending: 5
    Oldest: 2021-11-15 17:16:35 +0000
    Newest: 2021-11-22 06:23:11 +0000
    
    ### Status report information ###
    
    Generated at: 2021-11-15 13:01:13 +05:30
    

    Hi @abdullahshoyeb,

    I visited your staging site at the address https://primeradentalhub.com/test – added a product to the cart and reached the checkout page. A spinning/loading circle appears which does not let me place the order.

    I can also see from your System Status Report that you have quite a few active plugins. To troubleshoot this issue, you may want to disable all plugins except WooCommerce.

    If you’re not seeing the same behavior after completing the conflict test, then you know the problem was with the plugins you deactivated.

    Reactivate your other plugins one by one, testing after each, until you find the one causing conflict.

    You can find a more detailed explanation on how to do a conflict test here:

    https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    If the conflict testing doesn’t help, you’d want to check if there are errors on the WooCommerce logs and your console. Kindly provide us the following:

    • Fatal Error Log: Share a copy of any fatal error log found under WooCommerce > System Status > Logs (if available).
    • Developer Console: Right-click on the page or press F12 on the keyboard and select “Inspect” (this option will show up on most browsers). In the developer tools that will pop up you should see a “Console” tab. From there, please send us a screenshot of what’s being displayed using a tool like snipboard.io.

    Thanks!

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Sorry sir, due to some technical issues that might be not working properly, But We from the technical team have solved all the problems related to sites also we have added lots of products with huge discounts. I am sure sir you will feel good we added genuine products to it. Thank you for your genuine thought sir.
    Visit us https://primeradentalhub.com/

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

  • The topic ‘syntaxerror: unexpected token < in json at position 0’ is closed to new replies.

How do I fix unexpected token U in JSON at position 0?

The "Unexpected token u in JSON at position 0" error occurs when we pass an undefined value to the JSON. parse or $. parseJSON methods. To solve the error, inspect the value you're trying to parse and make sure it's a valid JSON string before parsing it.

What is Unexpected token in JSON at position 0?

Re: Unexpected token in JSON at position 0 This usually means that an error has been returned and that's not valid JSON. Check the browser developer tools console and network tabs. Turn on Debugging and (after reproducing the error) check the web server error logs.