Support » Plugin: WooCommerce » Unable to fix malformed JSON: woocommerce/assets/js/frontend/checkout.min.js

Viewing 10 replies - 1 through 10 (of 10 total)
  • Production site is https:/www.wascc.com.au

    ### WordPress Environment ###
    
    Home URL: https://www.wascc.com.au
    Site URL: https://www.wascc.com.au
    WC Version: 2.5.5
    Log Directory Writable: ✔
    WP Version: 4.4.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ✔
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips mod_bwlimited/1.4 mod_perl/2.0.6 Perl/v5.10.1
    PHP Version: 5.4.27
    PHP Post Max Size: 8 MB
    PHP Time Limit: 0
    PHP Max Input Vars: 1000
    SUHOSIN Installed: –
    MySQL Version: 5.5.47
    Max Upload Size: 8 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✕ Your server does not support the mbstring functions - this is required for better character encoding. Some fallbacks will be used instead for it.
    Remote Post: ✔
    Remote Get: ✔
    WCS_DEBUG: ✔ 
    
    							 No
    Subscriptions Mode: ✔ 
    
    							 Live
    
    ### Database ###
    
    WC Database Version: 2.5.5
    :
    woocommerce_sessions: ✔
    woocommerce_api_keys: ✔
    woocommerce_attribute_taxonomies: ✔
    woocommerce_termmeta: ✔
    woocommerce_downloadable_product_permissions: ✔
    woocommerce_order_items: ✔
    woocommerce_order_itemmeta: ✔
    woocommerce_tax_rates: ✔
    woocommerce_tax_rate_locations: ✔
    
    ### Active Plugins (24) ###
    
    Adminer: by Frank Bültge – 1.4.4
    Akismet: by Automattic – 3.1.10
    BackUpWordPress: by Human Made Limited – 3.6.0
    Broken Link Checker: by Janis Elsts
    Vladimir Prelovac – 1.11.2
    
    WordPress CountDown Pro - WebSites/Products Launch: by Lambert Group – 1.2.3
    CIO Custom Fields Importer Pro: by VisualData – 1.1.1
    Duplicate Menu: by Jonathan Christopher – 0.2
    Event Tickets Plus: by Modern Tribe
    Inc. – 4.1.2
    
    Event Tickets: by Modern Tribe
    Inc. – 4.1.2
    
    Google Analytics by Yoast: by Team Yoast – 5.4.6
    MailChimp for WordPress: by ibericode – 3.1.5
    Pods - Custom Content Types and Fields: by Pods Framework Team – 2.6.2
    Recent Posts Widget With Thumbnails: by Martin Stehle – 4.9.1
    Slider Revolution: by ThemePunch – 5.2.4.1
    What The File: by Never5 – 1.5.2
    WooCommerce eWAY Payment Gateway: by WooThemes – 3.1.9
    WooCommerce Subscriptions: by Prospress Inc. – 2.0.12
    WooCommerce: by WooThemes – 2.5.5
    WooThemes Helper: by WooThemes – 1.6.1
    Wordfence Security: by Wordfence – 6.0.25
    Yoast SEO: by Team Yoast – 3.1.2
    WP All Export Pro: by Soflyy – 1.2.4 RC27
    WP All Import Pro: by Soflyy – 4.2.9
    WP All Import - WooCommerce Add-On Pro: by Soflyy – 2.2.8
    
    ### Settings ###
    
    Force SSL: –
    Currency: AUD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ✔
    API Version: 3.1.0
    
    ### WC Pages ###
    
    Shop Base: #168 - /shop
    Cart: #169 - /cart
    Checkout: #170 - /checkout
    My Account: #171 - /my-account
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    subscription (subscription)
    variable (variable)
    variable subscription (variable-subscription)
    
    ### Theme ###
    
    Name:
    Version: 1.0
    Author URL:
    Child Theme: ✕ – If you're modifying WooCommerce on a parent theme you didn't build personally
    then we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –

    I’ve updated from PHP 5.4.27 to 5.5 and the issue remains.

    Sorry: I’ve updated from PHP 5.4.27 to 5.5.11 and the issue remains.

    This may be the cause and possible solution to the problem: https://www.angelleye.com/paypal-ssl-error-poodle-vulnerability/

    Plugin Author Mike Jolley

    (@mikejolley)

    Thanks for your assistance Mike.

    The response text is:

    {"result":"failure","messages":"<ul class=\"woocommerce-error\">\n\t\t\t
    <li>We were unable to process your order, please try again.<\/li>\n\t<\/ul>\n","refresh":"true","reload":"false"}</li>

    I disabled and reenabled WooCommerce Paypal gateway, and the response text changed to “address field 2 is a required field” – I had set this in PODS Admin mistakenly, but never realised it because the <?php woocommerce_content(); ?> in my non-woocoommerce ‘compatible’ theme was not highlighting the missing data in the required field.

    Thanks for your help, burden lifted.

    Plugin Author Mike Jolley

    (@mikejolley)

    The ajax looks fine afaik, but before and after that were there other characters or white space?

    Please wrap code in backticks (`)

    Problem resolved by making billing address field 2 not a required field in PODS Admin.

    Just would like to say a huge THANK YOU to Mike for writing that post about debugging unexpected token. I don’t understand how people could have attacked you personally, you have always been of great help.

    We had a very tough time narrowing down the issues as the problem was intermittent and we were not able to find steps to reproduce the problem. It’s been causing some nightmare for the past weeks.

    Analysing the JSON response, we found out that it was completely overtaken by Stop Spammer Registrations plugin, it was returning an entire HTML page with a question to answer to testify that you were human! Of course you would never see this page and instead just had the error from WooCommerce.

    So thank you again and for all of you using Stop Spammer Registrations, I would suggest that you remove the plugin and move to a more appropriate solution (i.e : use real-time protection from a service like CloudFlare).

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Unable to fix malformed JSON: woocommerce/assets/js/frontend/checkout.min.js’ is closed to new replies.