Unable to create order
-
When customers try to checkout, an “Unable to create order” message appears at the top of the Checkout screen.
Steps to Reproduce:
1) In the Shop, add an item to the cart.
2) Navigate to the Checkout screen.
3) Enter all the required information, and be sure to check “I have read and agree to the website terms and conditions” checkbox.
4) Select the “Proceed to PayPal” button.
5) The “Unable to create order” error message appearsHere is the system status report:
### WordPress Environment ### Home URL: https://lizcrainceramics.com Site URL: https://lizcrainceramics.com WC Version: 3.5.4 Log Directory Writable: ? WP Version: 5.0.3 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.2.14 PHP Post Max Size: 74 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.62.0 OpenSSL/1.0.2q SUHOSIN Installed: – MySQL Version: 5.5.5-10.1.37-MariaDB Max Upload Size: 64 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.5.4 WC Database Prefix: wp_ MaxMind GeoIP Database: ? Total Database Size: 41.96MB Database Data Size: 39.82MB Database Index Size: 2.14MB wp_woocommerce_sessions: Data: 4.39MB + Index: 0.12MB wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB wp_woocommerce_order_items: Data: 0.01MB + Index: 0.01MB wp_woocommerce_order_itemmeta: Data: 0.05MB + Index: 0.04MB wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.02MB wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.01MB wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB wp_woocommerce_log: Data: 0.01MB + Index: 0.01MB wp_commentmeta: Data: 0.20MB + Index: 0.06MB wp_comments: Data: 0.32MB + Index: 0.06MB wp_lazyestfiles: Data: 0.00MB + Index: 0.00MB wp_lg_comments2image: Data: 0.00MB + Index: 0.00MB wp_links: Data: 0.00MB + Index: 0.00MB wp_options: Data: 0.74MB + Index: 0.08MB wp_postmark_log: Data: 0.01MB + Index: 0.01MB wp_postmeta: Data: 5.58MB + Index: 0.56MB wp_posts: Data: 28.23MB + Index: 0.73MB wp_revslider_css: Data: 0.01MB + Index: 0.00MB wp_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB wp_revslider_settings: Data: 0.00MB + Index: 0.00MB wp_revslider_sliders: Data: 0.00MB + Index: 0.00MB wp_revslider_slides: Data: 0.01MB + Index: 0.00MB wp_revslider_static_slides: Data: 0.00MB + Index: 0.00MB wp_termmeta: Data: 0.01MB + Index: 0.01MB wp_terms: Data: 0.06MB + Index: 0.15MB wp_term_relationships: Data: 0.07MB + Index: 0.15MB wp_term_taxonomy: Data: 0.07MB + Index: 0.06MB wp_usermeta: Data: 0.03MB + Index: 0.02MB wp_users: Data: 0.00MB + Index: 0.00MB wp_wc_download_log: Data: 0.01MB + Index: 0.01MB wp_wc_webhooks: Data: 0.01MB + Index: 0.01MB wp_woocommerce_termmeta: Data: 0.00MB + Index: 0.01MB ### Post Type Counts ### acf-field: 5 acf-field-group: 2 attachment: 1831 lcc_event: 5 lcc_game: 7 lcc_press: 8 mc4wp-form: 2 ml-slide: 6 ml-slider: 1 nav_menu_item: 69 oembed_cache: 1 page: 37 post: 253 product: 185 pt_view: 1 revision: 6160 shop_order: 12 shop_order_refund: 1 template: 1 work: 19 wpcf7_contact_form: 3 ### Security ### Secure connection (HTTPS): ? Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates. Hide errors from visitors: ? ### Active Plugins (15) ### Featured Images in RSS for Mailchimp & Other Email: by 5 Star Plugins – 1.5.1 Advanced Custom Fields PRO: by Elliot Condon – 5.7.10 Classic Editor: by WordPress Contributors – 1.3 Contact Form 7: by Takayuki Miyoshi – 5.1.1 Content Views: by CVSOFT LLC – 2.1.3 Enable Media Replace: by ShortPixel – 3.2.8 MailChimp for WordPress: by ibericode – 4.3.3 MetaSlider: by Team Updraft – 3.11.0 Postmark (Official): by Andrew Yates & Matt Gibbs – 1.11.2 Responsive Gallery Grid Pro: by Jules Colle BDWM – 2.2.1 Shortcodes Ultimate: by Vladimir Anokhin – 5.2.0 W3 Total Cache: by Frederick Townes – 0.9.7.1 WooCommerce: by Automattic – 3.5.4 WP Gallery Custom Links: by johnogg – 1.12 WPFront Scroll Top: by Syam Mohan – 2.0.1 ### Settings ### API Enabled: ? Force SSL: – Currency: USD ($) 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) ### WC Pages ### Shop base: #4691 - /shop/ Cart: #4692 - /cart/ Checkout: #4693 - /checkout/ My account: #4694 - /my-account/ Terms and conditions: #4700 - /shop-policies/ ### Theme ### Name: lcc?storefront Version: 1.0.3 Author URL: https://www.zaptuba.com Child Theme: ? Parent Theme Name: Storefront Parent Theme Version: 2.4.2 Parent Theme Author URL: https://woocommerce.com/ WooCommerce Support: ? ### Templates ### Overrides: –
Additional Information:
I have taken the following steps to debug this issue all to no avail:
– Deactivated all plugins other WooCommerce (the issue still occurred)
– With all non-WooCommerce plugins deactivated, made the Storefront theme the active theme (the issue still occurred)
– In phpMyAdmin, ran Check Tables on all of the tables and all tables were OK
[I have since reactivated the plugins and our Storefront child theme]
– I have verified that this issue occurs on Safari, Firefox, Chrome (macOS), and a customer reported the issue on his iOS device.My client’s last successful order was placed on Dec. 14, 2018.
In the error logs on the server, it indicates that on Dec. 20, 2018 attempts were made to upgrade/update the WooCommerce database tables but failed… A small subset of the errors are included below with the user redacted (XXXXX) for privacy:
[20-Dec-2018 21:18:33 UTC] WordPress database error ALTER command denied to user ‘XXXXX’ for table ‘wp_woocommerce_sessions’ for query ALTER TABLE
wp_woocommerce_sessions
DROP PRIMARY KEY, DROP KEYsession_id
, ADD PRIMARY KEY(session_id
), ADD UNIQUE KEY(session_key
) made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Install::check_version, WC_Install::install, WC_Install::create_tables
[20-Dec-2018 21:18:33 UTC] WordPress database error ALTER command denied to user ‘XXXXX’ for table ‘wp_woocommerce_sessions’ for query ALTER TABLE wp_woocommerce_sessions CHANGE COLUMNsession_id
session_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Install::check_version, WC_Install::install, WC_Install::create_tables, dbDelta
[20-Dec-2018 21:18:33 UTC] WordPress database error ALTER command denied to user ‘XXXXX’ for table ‘wp_woocommerce_sessions’ for query ALTER TABLE wp_woocommerce_sessions CHANGE COLUMNsession_expiry
session_expiry BIGINT UNSIGNED NOT NULL made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Install::check_version, WC_Install::install, WC_Install::create_tables, dbDeltaThese errors seem to indicate that the database failed to updated successfully on Dec.20, 2018. Could this be the source of the “Unable to create order problem”? If so, is there a way to force a WooCommerce update to the database? If not, do you have any recommendations on how to proceed?
Thank you for your time and assistance.
The page I need help with: [log in to see the link]
- The topic ‘Unable to create order’ is closed to new replies.