Inventory management bug
-
Some inventory to my products get set to 99999 randomly.
I thought it was an woocommerce update bug.
I fix the inventory of those products but is still doing it.It wasn’t doing it 3 months back.
I did not instal new plugin before the bug.
-
Hi there,
I’m not seeing any similar issues to what you’re describing on the WooCommerce Github, so I’m wondering if perhaps it’s something specific to your site, a conflict rather than a bug?
Let’s test that. Can you outline, step by step, how to create the issue you’re describing? If it’s found that on a site with only WooCommerce, and a default theme like Storefront, it can be recreated, then it could possibly be a bug.
Could you also share a copy of your site’s System Status Report? To find it, go to WooCommerce » Status, select “Get system report” and then “Copy for support”. Then paste it here in your response.
Hi @simonperdu
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
Hi. The issues is not resolved. I answer by mail.
here is my response.Hi.
The issue happen on product at random.It happen when there an automatic inventory update by an order. It began to happen about 3 month ago. I did not added a new plugins but did have a couple of woo update. So maybe compatibility.
I went throught the order note of stock reduction to isolate the issue happening on a product
Heres the note.
order no 127764 : 12870→11870
the next order of this product no 127775: 99999→98999The same happen to an order change on waiting for payment to done witch reduce to inventory. A product did this 102499→99999,
Thanks in advance for the help.
### WordPress Environment ###
WordPress address (URL): https://www.vracsurroues.com
Site address (URL): https://www.vracsurroues.com
WC Version: 4.5.1
REST API Version: ✔ 4.5.1
WC Blocks Version: ✔ 3.3.0
Action Scheduler Version: ✔ 3.1.6
WC Admin Version: ✔ 1.5.0
Log Directory Writable: ✔
WP Version: 5.5.1
WP Multisite: –
WP Memory Limit: 256 Mo
WP Debug Mode: ✔
WP Cron: ✔
Language: fr_FR
External object cache: –### Server Environment ###
Server Info: Apache
PHP Version: 7.2.33
PHP Post Max Size: 128 Mo
PHP Time Limit: 360
PHP Max Input Vars: 200000
cURL Version: 7.62.0
OpenSSL/1.0.2kSUHOSIN Installed: –
MySQL Version: 10.2.33-MariaDB
Max Upload Size: 4 Mo
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔### Database ###
WC Database Version: 4.5.1
WC Database Prefix: wp_
Taille totale de la base de données: 617.47MB
Taille de la base de données: 492.75MB
Taille de l’index: 124.72MB
wp_woocommerce_sessions: Données : 5.02MB + Index : 0.08MB + Moteur InnoDB
wp_woocommerce_api_keys: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
wp_woocommerce_attribute_taxonomies: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
wp_woocommerce_downloadable_product_permissions: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
wp_woocommerce_order_items: Données : 1.52MB + Index : 0.23MB + Moteur InnoDB
wp_woocommerce_order_itemmeta: Données : 7.52MB + Index : 7.02MB + Moteur InnoDB
wp_woocommerce_tax_rates: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
wp_woocommerce_tax_rate_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
wp_woocommerce_shipping_zones: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_woocommerce_shipping_zone_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
wp_woocommerce_shipping_zone_methods: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_woocommerce_payment_tokens: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
wp_woocommerce_payment_tokenmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
wp_woocommerce_log: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
wp_actionscheduler_actions: Données : 2.48MB + Index : 0.72MB + Moteur MyISAM
wp_actionscheduler_claims: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_actionscheduler_groups: Données : 0.00MB + Index : 0.01MB + Moteur MyISAM
wp_actionscheduler_logs: Données : 1.27MB + Index : 0.87MB + Moteur MyISAM
wp_aws_index: Données : 4.02MB + Index : 0.00MB + Moteur InnoDB
wp_berocket_termmeta: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_cocart_carts: Données : 300.92MB + Index : 14.06MB + Moteur MyISAM
wp_commentmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
wp_comments: Données : 1.03MB + Index : 0.39MB + Moteur InnoDB
wp_et_bloom_stats: Données : 3.52MB + Index : 0.00MB + Moteur InnoDB
wp_ewwwio_images: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
wp_failed_jobs: Données : 0.19MB + Index : 0.00MB + Moteur InnoDB
wp_icl_content_status: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
wp_icl_core_status: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
wp_icl_flags: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
wp_icl_languages: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
wp_icl_languages_translations: Données : 0.19MB + Index : 0.11MB + Moteur InnoDB
wp_icl_locale_map: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_icl_message_status: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
wp_icl_mo_files_domains: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
wp_icl_node: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_icl_reminders: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_icl_strings: Données : 8.52MB + Index : 16.09MB + Moteur InnoDB
wp_icl_string_packages: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_icl_string_pages: Données : 38.79MB + Index : 66.55MB + Moteur MyISAM
wp_icl_string_positions: Données : 0.20MB + Index : 0.08MB + Moteur InnoDB
wp_icl_string_status: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
wp_icl_string_translations: Données : 3.52MB + Index : 1.97MB + Moteur InnoDB
wp_icl_string_urls: Données : 0.04MB + Index : 0.04MB + Moteur MyISAM
wp_icl_translate: Données : 8.52MB + Index : 0.28MB + Moteur InnoDB
wp_icl_translate_job: Données : 0.05MB + Index : 0.02MB + Moteur InnoDB
wp_icl_translations: Données : 0.27MB + Index : 0.61MB + Moteur InnoDB
wp_icl_translation_batches: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_icl_translation_downloads: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_icl_translation_status: Données : 4.31MB + Index : 0.05MB + Moteur InnoDB
wp_links: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
wp_mailchimp_carts: Données : 0.08MB + Index : 0.00MB + Moteur InnoDB
wp_mailchimp_jobs: Données : 0.04MB + Index : 0.00MB + Moteur MyISAM
wp_options: Données : 5.20MB + Index : 1.38MB + Moteur InnoDB
wp_postmeta: Données : 17.53MB + Index : 10.50MB + Moteur InnoDB
wp_posts: Données : 72.44MB + Index : 1.13MB + Moteur InnoDB
wp_queue: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_termmeta: Données : 0.06MB + Index : 0.03MB + Moteur InnoDB
wp_terms: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
wp_term_relationships: Données : 0.17MB + Index : 0.08MB + Moteur InnoDB
wp_term_taxonomy: Données : 0.06MB + Index : 0.03MB + Moteur InnoDB
wp_ums_icons: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_ums_maps: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_ums_markers: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_ums_marker_groups: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_ums_marker_groups_relation: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_ums_modules: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_ums_modules_type: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_ums_options: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_ums_options_categories: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_ums_usage_stat: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_usermeta: Données : 1.38MB + Index : 0.78MB + Moteur InnoDB
wp_users: Données : 0.08MB + Index : 0.05MB + Moteur InnoDB
wp_wc_admin_notes: Données : 0.01MB + Index : 0.00MB + Moteur MyISAM
wp_wc_admin_note_actions: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_wc_category_lookup: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_wc_customer_lookup: Données : 0.02MB + Index : 0.02MB + Moteur MyISAM
wp_wc_download_log: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
wp_wc_order_coupon_lookup: Données : 0.00MB + Index : 0.01MB + Moteur MyISAM
wp_wc_order_product_lookup: Données : 0.34MB + Index : 0.31MB + Moteur MyISAM
wp_wc_order_stats: Données : 0.03MB + Index : 0.03MB + Moteur MyISAM
wp_wc_order_tax_lookup: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_wc_product_meta_lookup: Données : 0.06MB + Index : 0.08MB + Moteur MyISAM
wp_wc_reserved_stock: Données : 0.02MB + Index : 0.00MB + Moteur MyISAM
wp_wc_tax_rate_classes: Données : 0.00MB + Index : 0.01MB + Moteur MyISAM
wp_wc_webhooks: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
wp_wpfm_backup: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_wpgmza: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_wpgmza_categories: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_wpgmza_category_maps: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_wpgmza_circles: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_wpgmza_maps: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_wpgmza_polygon: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_wpgmza_polylines: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_wpgmza_rectangles: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
wp_wpmailsmtp_tasks_meta: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_wpml_mails: Données : 0.80MB + Index : 0.00MB + Moteur MyISAM
wp_yoast_indexable: Données : 1.49MB + Index : 0.28MB + Moteur MyISAM
wp_yoast_indexable_hierarchy: Données : 0.00MB + Index : 0.00MB + Moteur MyISAM
wp_yoast_migrations: Données : 0.00MB + Index : 0.01MB + Moteur MyISAM
wp_yoast_primary_term: Données : 0.01MB + Index : 0.01MB + Moteur MyISAM
wp_yoast_seo_links: Données : 0.06MB + Index : 0.03MB + Moteur InnoDB
wp_yoast_seo_meta: Données : 0.19MB + Index : 0.16MB + Moteur InnoDB### Post Type Counts ###
amn_exact-metrics: 1
amn_smtp: 1
attachment: 1579
br_labels: 2
customize_changeset: 1
custom_css: 2
et_pb_layout: 32
jetpack_migration: 2
jp_img_sitemap: 1
jp_sitemap: 1
jp_sitemap_master: 1
nav_menu_item: 38
page: 21
polylang_mo: 2
post: 11
product: 341
product_variation: 141
quantity-rule: 1
revision: 2897
shop_coupon: 61
shop_order: 1299
shop_order_refund: 167### Security ###
Secure connection (HTTPS): ✔
Hide errors from visitors: ✔### Active Plugins (32) ###
WPML Multilingual CMS: par OnTheGoSystems – 4.3.18
WooCommerce Advanced Product Labels: par BeRocket – 1.1.18 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
Advanced Woo Search: par ILLID – 2.10 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
Async JavaScript: par Frank Goossens (futtta) – 2.20.03.01
Bloom: par Elegant Themes – 1.3.10
CoCart: par Sébastien Dumont – 2.6.1
Classic Editor: par Contributeurs et contributrices WordPress – 1.6
CoCart – Get Cart Enhanced: par Sébastien Dumont – 1.9.1 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
Divi 100 Hamburger Menu: par Elegant Themes – 0.0.1
Divi Booster: par Dan Mossop – 3.2.8
Divi Switch: par divi.space – 2.3.3
Facebook for WooCommerce: par Facebook – 2.0.1 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
Google Analytics Dashboard for WP (GADWP): par ExactMetrics – 6.2.2
Mailchimp for WooCommerce: par Mailchimp – 2.4.5 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
Le montant minimal de commandes pour Woocommerce: par Dario Curasì – 1.5.0 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
Remove Query Strings From Static Resources: par Speed Up My Website
Your WP Expert – 1.4WC Hide Shipping Methods: par Rynaldo Stoltz – 1.4
WooCommerce Better Usability PRO: par Moises Heberle – 1.0.39 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
Checkout Field Editor for WooCommerce: par ThemeHigh – 1.4.3 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
WooCommerce Blocks: par Automattic – 3.3.0 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
Advanced Order Export For WooCommerce: par AlgolPlus – 3.1.5 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
WooCommerce Product Price x Quantity Preview: par Reigel Gallarde – 1.2.1 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
Variation Swatches for WooCommerce: par Emran Ahmed – 1.0.86 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
Custom Price Labels for WooCommerce: par WP Wham – 2.5.7 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
Woocommerce Delivery Date Premium: par Dreamfox Media – 1.2.6 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
WooCommerce Google Ads Conversion Tracking: par Wolf+Bär Agency – 1.6.9 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
WooCommerce Google Analytics Integration: par WooCommerce – 1.4.23 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
WooCommerce Menu Cart: par Jeremiah Prummer
Ewout Fernhout – 2.9.5WooCommerce: par Automattic – 4.5.1
Yoast SEO: par L’équipe Yoast – 14.9 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
WP Google Maps: par WP Google Maps – 8.0.26
WP Mail SMTP: par WPForms – 2.3.1### Inactive Plugins (6) ###
Delivery Date & Time for WooCommerce: par CodeRockz – 1.2.38 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
Potent Donations for WooCommerce: par Potent Plugins – 1.1.3 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1
Woo Donation Plugin: par Sunil Prajapati – 1.3
WPML String Translation: par OnTheGoSystems – 3.0.13
WPML Translation Management: par OnTheGoSystems – 2.9.10
YITH Donations for WooCommerce: par YITH – 1.1.15 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.5.1### Must Use Plugins (1) ###
ET Support Center :: Must-Use Plugins Autoloader: par Elegant Themes –
### Settings ###
API Enabled: ✔
Force SSL: –
Currency: CAD ($)
Currency Position: right
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)Connected to WooCommerce.com: ✔
### WC Pages ###
Base de la boutique: #119773 – /boutique/
Panier: #38 – /panier/
Commander: #39 – /paiement/
Mon compte: #40 – /mon-compte/
Conditions générales de vente et d’utilisation: ❌ Page non définie### Theme ###
Name: Divi enfant
Version: 3.17.4
Author URL: http://www.elegantthemes.com
Child Theme: ✔
Parent Theme Name: Divi
Parent Theme Version: 4.6.1
Parent Theme Author URL: http://www.elegantthemes.com
WooCommerce Support: ✔### Templates ###
Overrides: Divi-enfant/woocommerce/emails/admin-new-order.php
/home/vracxtak/public_html/wp-content/plugins/woo-better-usability-pro//templates/single-add-cart-ajax.php### CoCart ###
Version: 2.6.1
Database Version: 2.6.1
Install Date: 19/07/2020
Carts in Session: 181025
Carts Expired: 178### Custom Price Labels Settings ###
WooCommerce Custom Price Labels: yes
Override global price labels with per product labels: yes
Search bots: no
Global Custom Price Labels: yes
Add before the price:
Add after the price:
Add between regular and sale prices:
Remove from price:
Replace in price:
::
Hide on:
Show on:
User roles to hide:
User roles to show:
Per Product Custom Price Labels: yes
Disable options:
Enable/Disable: no
Instead of the price:
Append:
Before the price:
Append:
Between regular and sale prices:
Append:
After the price:
Append:### Action Scheduler ###
Annulé: 3
Oldest: 2020-08-22 19:54:41 -0400
Newest: 2020-09-04 00:31:32 -0400Terminé: 4 337
Oldest: 2020-09-09 12:03:24 -0400
Newest: 2020-09-10 15:35:14 -0400Échoué: 28
Oldest: 2019-05-29 15:29:14 -0400
Newest: 2020-09-08 13:09:32 -0400En attente: 5
Oldest: 2020-09-10 15:49:01 -0400
Newest: 2020-09-17 15:33:55 -0400Hi @simonperdu ,
Hi. The issues is not resolved. I answer by mail.
The ww.wp.xz.cn forum emails don’t support replies. To reply to a forum post, you will need to return here and post your reply.
Depending on how long ago they were placed and your log retention, we may be able to work with these notes to see if we can narrow down what’s happening.
order no 127764 : 12870→11870
Was the order for 1000 products? I wanted to be sure since it was a large number there.
the next order of this product no 127775: 99999→98999
I think checking what happened between these two orders will be helpful. Can you check the following during the period between those two orders? Keep an eye out for the product ID (you can find that in the link to the product on the order after
post=).
Link to image: https://d.pr/i/yOuOPs- Any logged events or errors under WooCommerce > Status > Logs (You will need to select the various logs on the dropdown list to check them all).
- Any server logs with notices or errors that could be related to that product or orders.
- Check the Scheduled Actions (WooCommerce > Status > Scheduled Actions) for Completed or Failed actions that occurred, especially with that Product ID listed in the Arguments column.
The same happen to an order change on waiting for payment to done witch reduce to inventory. A product did this 102499→99999,
Was the 102499→99999 change logged in the notes? If so, did it give any indication of why or what process made the change?
1000 products is normal. I sell bulk food by the grams so 1000 is a kilogram.
For the product change of inventory.
Was the 102499→99999 change logged in the notes? If so, did it give any indication of why or what process made the change?On a another case of this issues it happen in an solo order.
When order was made it was on statuson hold.
Order notes:: Reduction of inventory: (#117481) 8100→5600I switch it to Completed
Then to status Pending payment
Order notes: Rising of inventory:(#117481) 99999→102499,So the change of inventory was due to changing the status from completed to pending payment which added back to order products to my inventory.
On the other instance of the another instance the issues happening between 2 orders, all i can see is the product inventory started at 99999 when the next order of this product was made. Logged in the notes:(#127764: 12870→11870)→(#127775: 99999→98999)
Any server logs with notices or errors that could be related to that product or orders.
This log is 8 days before the order with the issues (09-21)
There no log on the same day2020-09-08T17:09:32+00:00 CRITICAL Uncaught Error: Call to a member function getTimestamp() on null in /home/vracxtak/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/API/Reports/Customers/DataStore.php:470
Stack trace:
#0 /home/vracxtak/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Overrides/OrderRefund.php(60): Automattic\WooCommerce\Admin\API\Reports\Customers\DataStore::get_or_create_customer_from_order(Object(Automattic\WooCommerce\Admin\Overrides\Order))
#1 /home/vracxtak/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/API/Reports/Orders/Stats/DataStore.php(472): Automattic\WooCommerce\Admin\Overrides\OrderRefund->get_report_customer_id()
#2 /home/vracxtak/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/API/Reports/Orders/Stats/DataStore.php(444): Automattic\WooCommerce\Admin\API\Reports\Orders\Stats\DataStore::update(Object(Automattic\WooCommerce\Admin\Overrides\OrderRefund))
#3 /home/vracxtak/public_html/wp-content/plugins/woocommer dans /home/vracxtak/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/API/Reports/Customers/DataStore.php à la ligne 470Check the Scheduled Actions (WooCommerce > Status > Scheduled Actions) for Completed or Failed actions that occurred, especially with that Product ID listed in the Arguments column.
Found nothing with the product id or order id in failed and complete.
Any server logs with notices or errors that could be related to that product or orders.
No recent erreur logs
Hi @simonperdu ,
I think we need to take a closer look. Please contact us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.
Please include a link to this forum thread, so that we can keep track of what’s already been done.
We will be able to help you further there.
The topic ‘Inventory management bug’ is closed to new replies.