Title: chodos's Replies | WordPress.org

---

# chodos

  [  ](https://wordpress.org/support/users/chodos/)

 *   [Profile](https://wordpress.org/support/users/chodos/)
 *   [Topics Started](https://wordpress.org/support/users/chodos/topics/)
 *   [Replies Created](https://wordpress.org/support/users/chodos/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/chodos/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/chodos/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/chodos/engagements/)
 *   [Favorites](https://wordpress.org/support/users/chodos/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Disable lazy loading with full class path](https://wordpress.org/support/topic/disable-lazy-loading-with-full-class-path/)
 *  Thread Starter [chodos](https://wordpress.org/support/users/chodos/)
 * (@chodos)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/disable-lazy-loading-with-full-class-path/#post-18409842)
 * Ok, thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Unable to create order](https://wordpress.org/support/topic/unable-to-create-order-2/)
 *  [chodos](https://wordpress.org/support/users/chodos/)
 * (@chodos)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/unable-to-create-order-2/#post-11675876)
 * Thank you [@johnpaulbyrne](https://wordpress.org/support/users/johnpaulbyrne/)
   
   It worked for me too!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Error: Can not create order](https://wordpress.org/support/topic/error-can-not-create-order/)
 *  Thread Starter [chodos](https://wordpress.org/support/users/chodos/)
 * (@chodos)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-can-not-create-order/#post-11675855)
 * I solved the problem based on the solution of topic [#11172400](https://wordpress.org/support/topic/unable-to-create-order-2/#post-11172400).
 * After disabling all the plugins, keeping only the WooCommerce and the default
   theme of WordPress, the problem persisted, which indicated my idea of something
   wrong in the database.
 * Some update, I do not know if WordPress or WooCommerce, should change the length
   of the column “post_password” in “wp_posts” from varchar(20) to varchar(255),
   but this did not happen on my installation, either on the local server or on 
   the production server. In other installations this change occurred normally, 
   but in this installation not.
 * Based on topic [#11172400](https://wordpress.org/support/topic/unable-to-create-order-2/#post-11172400),
   I changed the length of the column, in my case I need to change to 191, I could
   not change to 255 because the collation used is utf8mb4, to collation utf8 should
   work 255.
 * After the change I was able to complete the orders without errors, with tests
   done in the local server and in the online server.
 * I hope this helps in some way.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Error: Can not create order](https://wordpress.org/support/topic/error-can-not-create-order/)
 *  Thread Starter [chodos](https://wordpress.org/support/users/chodos/)
 * (@chodos)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-can-not-create-order/#post-11608594)
 * Yes, first I deactivated all the plugins, leaving only WooCommerce and the ‘Twenty
   Nineteen’ theme active. Now I have removed all the plugins and themes, keeping
   only WooCommerce and the ‘Twenty Nineteen’ and the problem remains.
 * I noticed that upon completing the checkout, entries in the wp_woocommerce_order_items
   table with order_id 0 are created. I think this can be a problem in generating
   the ID, in the save() function in woocommerce/includes/class-wc-order.php.
 * I do not know why, if there could be some conflict in the database, but it was
   as far as I could get.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Error: Can not create order](https://wordpress.org/support/topic/error-can-not-create-order/)
 *  Thread Starter [chodos](https://wordpress.org/support/users/chodos/)
 * (@chodos)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-can-not-create-order/#post-11600978)
 * Apparently in Woo 3.6.4 it’s trying to test if order exist and shows the error.
   On 3.2.6 this test not exist.
 * This is the only code included in this snippet of version 3.6.4, but I can not
   understand why.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Error: Can not create order](https://wordpress.org/support/topic/error-can-not-create-order/)
 *  Thread Starter [chodos](https://wordpress.org/support/users/chodos/)
 * (@chodos)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-can-not-create-order/#post-11600933)
 * Hi, thank you for your attention.
 * Ok, “Can not create order” it’s a direct translation from portuguese. Now I changed
   the WP’s language to english and the theme for ‘Twenty Nineteen’.
 * With Woo 3.2.6 everything works, with 3.6.4 the error message is “Unable to create
   order.”. I found it on woocommerce/includes/class-wc-checkout.php line 1117.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Product Archive with different image sizes](https://wordpress.org/support/topic/product-archive-with-different-image-sizes/)
 *  Thread Starter [chodos](https://wordpress.org/support/users/chodos/)
 * (@chodos)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/product-archive-with-different-image-sizes/#post-10571030)
 * The problem started after update to WooCommerce 3.4.4
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Custom Order ID](https://wordpress.org/support/topic/custom-order-id/)
 *  Thread Starter [chodos](https://wordpress.org/support/users/chodos/)
 * (@chodos)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/custom-order-id/#post-9642423)
 * Okay, I’ll do it. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Custom Order ID](https://wordpress.org/support/topic/custom-order-id/)
 *  Thread Starter [chodos](https://wordpress.org/support/users/chodos/)
 * (@chodos)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/custom-order-id/#post-9642258)
 * Thanks [@vankaa](https://wordpress.org/support/users/vankaa/), but it does not
   solve. This filter only changes what is displayed, the ID remains the same. I
   would like to change the ID in the database to find the order again with the 
   ID that I receive through the API.
    But I do not think it’s possible, I’ll use
   metadata.

Viewing 9 replies - 1 through 9 (of 9 total)