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

    (@mikejolley)

    525 “Cannot create line item.” – go to system status and ensure no tables are missing.

    I have this same Error message : “Error 525: Unable to create order. Please try again.”

    I’m using the WordPress Twenty Sixteen theme and Woocommerce.
    The only plugins I have installed are Custom CSS and Weight Based Shipping. I tried deactivating the Custom CSS but this didn’t solve anything.

    I also tried deactivating the Weight Based Shipping plugin but then I got an error saying “Invalid Shipping Method” instead.

    I just upgraded the Weight Based Shipping plugin to the latest version, again this didn’t solve anything.
    Also, there was a flag in the Woocommerce system status that my PHP version should be upgraded. It was 5.2.?? and I had my hosting company upgrade it. It’s currently at 5.4.45 but unfortunately this upgrade didn’t solve the problem either.

    Here is a print out of the Woocommerce System Status…

    ### WordPress Environment ###
    
    Home URL: https://www.subtleaudiorecordings.com
    Site URL: https://www.subtleaudiorecordings.com
    WC Version: 2.5.5
    Log Directory Writable: ?
    WP Version: 4.5.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    Language: en_GB
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 5.4.45
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    SUHOSIN Installed: –
    MySQL Version: 5.1.73
    Max Upload Size: 2 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### 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 (3) ###
    
    Simple Custom CSS: by John Regan
    Danny Van Kooten – 3.3
    
    WooCommerce Weight Based Shipping: by dangoodman – 4.1.3
    WooCommerce: by WooThemes – 2.5.5
    
    ### Settings ###
    
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ?
    API Version: 3.1.0
    
    ### WC Pages ###
    
    Shop Base: #13 - /index.php/shop/
    Basket: #14 - /index.php/cart/
    Checkout: #15 - /index.php/checkout/
    My Account: #16 - /index.php/my-account/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Twenty Sixteen
    Version: 1.2
    Author URL: https://www.ads-software.com/
    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: –

    Okay – found the problem.

    I had developed my WordPress site and Woocommerce store on a local server before making it live. When I imported the database and got the website live some of the products on the shop had slight errors in their names – some weird characters appeared, like something from the Wingdings font or similar.

    I didn’t think this would make any difference to testing whether my shop was working or not. I actually used one of the items that had some of those weird symbols in the product name to test the checkout process and was getting an Error 525 message. Once I went and edited the product name and tried again everything worked.

    I’m sure this fix won’t help everyone getting an Error 525 message, but just said I’d point out what worked in my case.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    > I have this same Error message : “Error 525: Unable to create order. Please try again.”

    This shouldn’t be related to shipping methods. As I mentioned, it’s when a line item cannot be inserted.

    You could check by enabling free shipping though – see if that helps.

    User reported “Error 525: Unable to create order. Please try again.”

    Tried to reproduce under their login with no error. Transaction was successful. User did have several zero-item/zero-dollar cart entries. Maybe cart got confused?

    Shipping is enabled but not calculated. Setup as ‘free’ with “to be quoted” label. Site is B2B PO-based.

    At time of error Genesis Extender was only non-updated item.

    Waiting to hear if others report errors.

    System status report

    ### WordPress Environment ###
    
    Home URL: https://wf.southeasternproducts.com
    Site URL: https://wf.southeasternproducts.com
    WC Version: 2.5.5
    Log Directory Writable: ?
    WP Version: 4.5.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 5.4.43
    PHP Post Max Size: 64 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    SUHOSIN Installed: –
    MySQL Version: 5.5.42
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### 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 (22) ###
    
    Gravity Forms: by rocketgenius – 1.9.19
    Enable Media Replace: by M?ns Jonasson – 3.0.4
    Export Users to CSV: by Ulrich Sossou – 1.0.0
    Genesis Connect for WooCommerce: by StudioPress – 0.9.8
    Genesis Extender: by The Cobalt Apps Team – 1.6.5
    Genesis Simple Hooks: by Nathan Rice – 2.1.2
    Genesis Visual Hook Guide: by Christopher Cochran – 0.9.5
    Jetpack by WordPress.com: by Automattic – 4.0.2
    Manage Notification E-mails: by Virgial Berveling – 1.2.0
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 2.2.6
    Search By SKU - for Woocommerce: by Matthew Lawson – 0.6.1
    Sidebar Login: by Mike Jolley – 2.7.3
    Sucuri Security - Auditing, Malware Scanner and Hardening: by Sucuri
    INC – 1.7.17
    
    Themedy Visual Designer: by Themedy – 1.1.6
    Unattach and Re-attach Media Attachments: by davidn.de – 1.2
    WooCommerce Catalog Visibility Options: by Lucas Stark – 2.8.0
    WooCommerce Product Add-ons: by WooThemes – 2.7.17
    WooCommerce Sequential Order Numbers: by SkyVerge – 1.6.1
    WooCommerce Simply Order Export: by Ankit Gade – 2.0.7
    WooCommerce: by WooThemes – 2.5.5
    WooThemes Helper: by WooThemes – 1.6.2
    WP-Mail-SMTP: by Callum Macdonald – 0.9.5
    
    ### Settings ###
    
    Force SSL: –
    Currency: USD ($)
    Currency Position: left_space
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ?
    API Version: 3.1.0
    
    ### WC Pages ###
    
    Shop Base: #359 - /
    Cart: #378 - /cart/
    Checkout: #380 - /checkout/
    My Account: #361 - /my-account/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Clip Cart Child Theme
    Version: 1.3.2
    Author URL: https://themedy.com
    Child Theme: ?
    Parent Theme Name: Genesis
    Parent Theme Version: 2.2.7
    Parent Theme Author URL: https://www.studiopress.com/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    0 price line items are fine. That should never affect creation in the database.

    Sry was unclear. The zero-dollar/zero-qty cart items were invalid. Result from user trying to work around error. One zero/zero for each attempt.

    Clicked cancel for those zero/zero lines when I logged in under their account. Was then able to complete transaction they were attempting.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Invalid? How did they go into the cart?

    User reported error appeared when clicking ‘checkout’. Tried several times.

    Cart showed these zero/zero entties as completed transactions. No confirmation emails sent though.

    Seems a zero-qty/no-item-selected cart entry would be invalid.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    For those who have observed Error 525, were you using add_fee?

    
    WC()->cart->add_fee( 'Surcharge', $surcharge, false, '' );
    

    I’ve observed this error during testing after adding a surcharge, but the problem is not easily reproduced. I’m convinced that Error 525 is the result of something I’m doing incorrectly with the extra fee, but not yet sure what it is.

    • This reply was modified 7 years, 10 months ago by deeveedee.

    After further testing, it appears that (in my case) Error 525 was due to network issues. It was only a coincidence that Error 525 happened after I added “add_fee.” My Internet provider’s DNS was having intermittent issues which caused inconsistent connectivity between my test clients and my website. I assume that intermittent client connectivity resulted in dropped data or session timeouts that caused Error 525. I am not observing this error with a reliable network connection.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Error 525: Unable to create order. Please try again.’ is closed to new replies.