• Resolved Mariette Potgieter

    (@mariette-potgieter)


    Good day.

    I need some help please.
    I get this error
    SyntaxError: Unexpected token P in JSON at position 0
    when my customers want to checkout to pay on my woocommerce store – but only with the downloadable products on my site.
    I have no idea how to fix this – my downloadable products worked on the 17th of January when I made a sale and today it is no longer working.

    Can anyone help me on where to search for this problem?

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • @mariette-potgieter

    Can you share the action performed that triggers this error? Can you also share a screenshot of the error via https://imgbb.com or https://snipboard.io?
    
    For better assistance, please share your WooCommerce error logs and System Status on this thread so we can take a look at your configuration and check the issue further:
    
    System Status: You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
    
    Error Log: Share a copy of any fatal error log found under WooCommerce > System Status > Logs (if available).
    Thread Starter Mariette Potgieter

    (@mariette-potgieter)

    This only happens with my downloadable products at present. – The downloadable products did work in January when I sold some but today it is not working anymore.

    Here is the screenshot: (hopefully – first time sharing it this way)

    [img]https://i.ibb.co/9n2tHtQ/Syntax-error-on-checkout.jpg[/img]

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://boervrou.co.za
    Site address (URL): https://boervrou.co.za
    WC Version: 6.1.1
    REST API Version: ? 6.1.1
    WC Blocks Version: ? 6.9.0
    Action Scheduler Version: ? 3.4.0
    WC Admin Version: ? 3.0.3
    Log Directory Writable: ?
    WP Version: 5.9
    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.27
    PHP Post Max Size: 32 MB
    PHP Time Limit: 60
    PHP Max Input Vars: 2500
    cURL Version: 7.64.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.4.22-MariaDB-1:10.4.22+maria~buster
    Max Upload Size: 32 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.1.1
    WC Database Prefix: wp_
    Total Database Size: 35.33MB
    Database Data Size: 27.53MB
    Database Index Size: 7.80MB
    wp_woocommerce_sessions: Data: 0.50MB + 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.06MB + 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.06MB + 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.06MB + Index: 0.03MB + Engine InnoDB
    wp_aioseo_cache: Data: 0.14MB + Index: 0.03MB + Engine InnoDB
    wp_aioseo_notifications: Data: 0.03MB + Index: 0.06MB + Engine InnoDB
    wp_aioseo_posts: Data: 0.31MB + Index: 0.02MB + Engine InnoDB
    wp_boervrou_slider: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.17MB + Index: 0.09MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    wp_mailpoet_scheduled_tasks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_mailpoet_subscribers: Data: 0.06MB + Index: 0.13MB + Engine InnoDB
    wp_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_nl_subscriptions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_options: Data: 4.27MB + Index: 0.14MB + Engine InnoDB
    wp_postmeta: Data: 2.52MB + Index: 0.41MB + Engine InnoDB
    wp_posts: Data: 5.52MB + Index: 0.30MB + Engine InnoDB
    wp_qss: Data: 0.19MB + Index: 0.05MB + Engine InnoDB
    wp_redirection_404: Data: 0.23MB + Index: 0.08MB + Engine InnoDB
    wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_redirection_logs: Data: 0.09MB + Index: 0.05MB + Engine InnoDB
    wp_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_sbi_instagram_feed_locator: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_sbi_instagram_posts: Data: 0.19MB + Index: 0.00MB + Engine InnoDB
    wp_spiderfacebook_login: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_spiderfacebook_params: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    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.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_trp_dictionary_af_en_gb: Data: 1.52MB + Index: 0.72MB + Engine InnoDB
    wp_trp_dictionary_af_en_us: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_trp_dictionary_en_gb_af: Data: 1.52MB + Index: 0.58MB + Engine InnoDB
    wp_trp_gettext_af: Data: 1.52MB + Index: 0.48MB + Engine InnoDB
    wp_trp_gettext_en_gb: Data: 1.52MB + Index: 0.53MB + Engine InnoDB
    wp_trp_gettext_en_us: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_trp_original_meta: Data: 0.38MB + Index: 0.27MB + Engine InnoDB
    wp_trp_original_strings: Data: 1.52MB + Index: 1.52MB + Engine InnoDB
    wp_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.05MB + 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_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + 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_wpzerospam_blocked: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpzerospam_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wysija_campaign: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_campaign_list: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_custom_field: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_email: Data: 1.01MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_email_user_stat: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_wysija_email_user_url: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_wysija_form: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_list: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_queue: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wysija_url: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_url_mail: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_user: Data: 0.03MB + Index: 0.02MB + Engine MyISAM
    wp_wysija_user_field: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_user_history: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_user_list: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    
    ### Post Type Counts ###
    
    attachment: 606
    custom_css: 2
    jetpack_migration: 2
    language_switcher: 4
    mailpoet_page: 1
    nav_menu_item: 27
    page: 114
    post: 107
    product: 26
    product_variation: 5
    revision: 968
    shop_order: 24
    tt_font_control: 7
    wp_block: 4
    wpephpcompat_jobs: 34
    wysijap: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (18) ###
    
    All in One SEO: by All in One SEO Team – 4.1.6.2
    Easy Coming Soon: by Ankit Agarwal
    Priyanshu Mittal – 2.3
    
    Easy Google Fonts: by Titanium Themes – 2.0.4
    Google Analytics Dashboard for WP (GADWP): by ExactMetrics – 7.3.2
    Site Kit by Google: by Google – 1.50.0
    PHP Compatibility Checker: by WP Engine – 1.5.2
    Simple Google reCAPTCHA: by Michal Novák – 3.9
    Slick Carousel: by Gustav Snyman – 1.0
    Squirrly SEO (Smart Strategy): by Squirrly SEO – 11.1.11
    WooCommerce: by Automattic – 6.1.1
    TranslatePress - Multilingual: by Cozmoslabs
    Razvan Mocanu
    Madalin Ungureanu
    Cristophor Hurduban – 2.1.9
    
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.22.1
    
    WooCommerce Blocks: by Automattic – 6.9.0
    Woo Store Vacation: by MyPreview – 1.4.3
    WooCommerce PayFast Gateway: by WooCommerce – 1.4.20
    The Courier Guy Shipping for WooCommerce: by The Courier Guy – 5.0.7
    MailPoet 2: by MailPoet – 2.19
    WordPress Zero Spam: by Highfivery LLC – 5.2.10
    
    ### Inactive Plugins (6) ###
    
    Akismet Anti-Spam: by Automattic – 4.2.2
    Display PHP Version: by David Gwyer – 1.7
    Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 8.3.2
    Hello Dolly: by Matt Mullenweg – 1.7.2
    Redirection: by John Godley – 5.2.3
    WPC Product Bundles for WooCommerce: by WPClever – 6.0.5
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: –
    Currency: ZAR (R)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    woosb (woosb)
    
    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: #1501 - /shop/
    Basket: #1502 - /basket/
    Checkout: #1503 - /checkout/
    My account: #1504 - /my-account/
    Terms and conditions: ? Page not set
    
    ### 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: 146
    Oldest: 2022-01-10 15:26:07 +0200
    Newest: 2022-02-06 19:18:24 +0200
    
    Failed: 1
    Oldest: 2020-03-26 15:03:08 +0200
    Newest: 2020-03-26 15:03:08 +0200
    
    Pending: 3
    Oldest: 2022-02-06 19:33:24 +0200
    Newest: 2022-02-07 15:52:04 +0200
    
    ### Status report information ###
    
    Generated at: 2022-02-06 19:28:20 +02:00
    
    Thread Starter Mariette Potgieter

    (@mariette-potgieter)

    @mariette-potgieter

    This kind of problem is usually caused by a conflict with your theme or with another plugin. 
    ?
    The best way to determine this is to:
    <ul>
    <li>Temporarily switch your theme to <a href="https://www.woocommerce.com/storefront/" target="_blank">Storefront</a></li>
    <li>Disable all plugins except for WooCommerce</li>
    <li>Repeat the action that is causing the problem</li>
    </ul>
    
    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. <a href="https://docs.woocommerce.com/document/how-to-test-for-conflicts/">You can find a more detailed explanation on how to do a conflict test here.</a>
    Thread Starter Mariette Potgieter

    (@mariette-potgieter)

    Thank you so much for your help.
    It was a plugin that is causing the problem, the courier plugin is blocking all downloadable products – even when the products is selected “virtual” and “download” it keeps blocking it when trying to checkout – the error changes to “Failed to get shipping rates, please try another address”

    The developers of the plugin is working on a fix for this error.

    Hello,

    Glad to know that, hopefully, you’ll receive an update soon.

    Let us know how it goes.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘SyntaxError: Unexpected token P in JSON at position 0’ is closed to new replies.