• Resolved sharmander11

    (@sharmander11)


    I’m receiving an “internal server error” (that’s all the error says at the top of the screen) when I try checking out on my site using a customer account and selecting the “cash on delivery” option. The orders are going through though and appear normally in the WP Dashboard.

    If I check for errors in console I see this:

    Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    https://staging.wgmarketingtest.com/checkout?wc-ajax=checkout

    If I click on the link it says:

    {"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>

    https://www.ads-software.com/plugins/woocommerce/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Please look at the server error logs – they will reveal the true error for you to act on.

    Thread Starter sharmander11

    (@sharmander11)

    Hi Mike.

    I checked out the server logs and resolved those errors, but now I am getting this error when I try to checkout on the site.

    SyntaxError: Unexpected token F in JSON at position 1

    When I check console this is what is says:

    Unable to fix malformed JSON

    and it references checkout.min.js.

    Any advice on where to go from here, I’m stumped
    The link to my site is: https://staging.wgmarketingtest.com/

    Here is the woocommerce system report:

    ### WordPress Environment ###
    
    Home URL: https://staging.wgmarketingtest.com
    Site URL: https://staging.wgmarketingtest.com
    WC Version: 2.6.2
    Log Directory Writable: ?
    WP Version: 4.5.3
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache/2
    PHP Version: ? 5.3.29 - We recommend a minimum PHP version of 5.6. See: How to update your PHP version
    PHP Post Max Size: 20 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 1000
    cURL Version: 7.22.0
    OpenSSL/1.0.2a
    
    SUHOSIN Installed: –
    Max Upload Size: 20 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ? Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 2.6.2
    :
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    woocommerce_shipping_zones: ?
    woocommerce_shipping_zone_locations: ?
    woocommerce_shipping_zone_methods: ?
    woocommerce_payment_tokens: ?
    woocommerce_payment_tokenmeta: ?
    MaxMind GeoIP Database: ? The MaxMind GeoIP Database does not exist - Geolocation will not function. You can download and install it manually from https://dev.maxmind.com/geoip/legacy/geolite/ to the path:
    
    ### Active Plugins (13) ###
    
    Akismet: by Automattic – 3.1.11
    EWWW Image Optimizer: by Shane Bishop – 2.9.3
    Exclude or include Pages, Tags, Posts & Categories (integrate with WiziApp): by mayerz. – 1.0.9
    Hello Dolly: by Matt Mullenweg – 1.6
    ImageMapper: by A.Sandberg AKA Spike
    Tarmo Toikkanen  – 1.2.6
    
    Jetpack by WordPress.com: by Automattic – 4.1.1
    jonradio Private Site: by David Gewirtz – 2.14
    MOJO Marketplace: by Mike Hansen – 0.8.2
    Ninja Forms: by The WP Ninjas – 2.9.51
    One-Click Child Theme: by tychay – 1.6
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.12.15
    
    W3 Total Cache: by Frederick Townes – 0.9.4.1
    WooCommerce: by WooThemes – 2.6.2
    
    ### Settings ###
    
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ?
    
    ### WC Pages ###
    
    Shop Base: #581 - /shop
    Cart: #582 - /cart
    Checkout: #583 - /checkout
    My Account: #584 - /my-account
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: modality child
    Version: – 0 is available
    Author URL:
    Child Theme: ?
    Parent Theme Name: Modality
    Parent Theme Version: 1.0.5
    Parent Theme Author URL: https://vpthemes.com
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: modality-child/woocommerce/myaccount/dashboard.php

    Thread Starter sharmander11

    (@sharmander11)

    Update:
    updated PHP to 5.6

    Found out the Ewww Image Optimizer and Jetpack (not activated together, but both separately) cause this error when checking out:

    SyntaxError: Unexpected token < in JSON at position 0

    contacted both pluggins support to see if they had any suggestions.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Thread Starter sharmander11

    (@sharmander11)

    Very helpful article! It ended up finding out that my memory limit on my site was too low. Upped it to 256MB and now everything is working fine with both Jetpack and Ewww activated along with Woocommerce. Thanks for the help!

    hi @sharmander11

    Actually i am getting the same issue. can you please help me.
    i am getting the same message and my ram is 512Mb,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Internal Server Error on Checkout’ is closed to new replies.