I cannot correct the stock quantity
-
I sell fabrics. If I see that there is a wrong quantity in stock and I want to correct, I get an error message: The stock has not been updated because its value has changed since the change.There are no pending actions on the product.
This is not the case with all products.For example, there are 3 products in stock. I order more and want to change the quantity to 13, but I can’t.
What could be the problem?
The page I need help with: [log in to see the link]
-
Hey there, @remps! Thanks for contacting us. I’m happy to help you.
You mentioned that this does not happen with every product, correct?
Do you see any similarities between the products that have this issue?
Are they all simple or all variable products?
Have you added them via the default WooCommerce interface or have you used another plugin?Furthermore, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:
System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
Fatal error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Fatal Errors.
You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.Looking forward to your reply.
Have a wonderful day!
I started in woocommerce by importing products with the All Import plugin. In the future, I have made products by copying.
Even copied (self-added) products cannot be changed in quantity. I don’t see any similarities between the products that have this issue.
Problem is only wiht simple products.` WordPress Environment WordPress address (URL): https://remps.ee Site address (URL): https://remps.ee WC Version: 8.7.0 REST API Version: ✔ 8.7.0 Action Scheduler Version: ✔ 3.7.2 Log Directory Writable: ✔ WP Version: 6.5 WP Multisite: – WP Memory Limit: 384 MB WP Debug Mode: – WP Cron: ✔ Language: et External object cache: – Server Environment Server Info: Apache PHP Version: 8.0.30 PHP Post Max Size: 2 GB PHP Time Limit: 300 PHP Max Input Vars: 5000 cURL Version: 8.6.0 OpenSSL/3.0.13 SUHOSIN Installed: – MySQL Version: 10.6.17-MariaDB-log Max Upload Size: 2 GB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ Database WC Database Version: 8.5.2 WC Database Prefix: wp_ Andmebaasi maht kokku: 192.87MB Andmebaasi andmete maht: 170.44MB Andmebaasi indeksi maht: 22.43MB wp_woocommerce_sessions: Andmed: 0.42MB + indeks: 0.02MB + mootor InnoDB wp_woocommerce_api_keys: Andmed: 0.02MB + indeks: 0.03MB + mootor InnoDB wp_woocommerce_attribute_taxonomies: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_woocommerce_downloadable_product_permissions: Andmed: 0.02MB + indeks: 0.06MB + mootor InnoDB wp_woocommerce_order_items: Andmed: 0.13MB + indeks: 0.06MB + mootor InnoDB wp_woocommerce_order_itemmeta: Andmed: 4.52MB + indeks: 0.78MB + mootor InnoDB wp_woocommerce_tax_rates: Andmed: 0.02MB + indeks: 0.06MB + mootor InnoDB wp_woocommerce_tax_rate_locations: Andmed: 0.02MB + indeks: 0.03MB + mootor InnoDB wp_woocommerce_shipping_zones: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_woocommerce_shipping_zone_locations: Andmed: 0.02MB + indeks: 0.03MB + mootor InnoDB wp_woocommerce_shipping_zone_methods: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_woocommerce_payment_tokens: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_woocommerce_payment_tokenmeta: Andmed: 0.02MB + indeks: 0.03MB + mootor InnoDB wp_woocommerce_log: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_actionscheduler_actions: Andmed: 1.47MB + indeks: 0.56MB + mootor InnoDB wp_actionscheduler_claims: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_actionscheduler_groups: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_actionscheduler_logs: Andmed: 1.38MB + indeks: 0.28MB + mootor InnoDB wp_check_email_log: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_commentmeta: Andmed: 0.02MB + indeks: 0.03MB + mootor InnoDB wp_comments: Andmed: 1.52MB + indeks: 0.41MB + mootor InnoDB wp_e_events: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_e_notes: Andmed: 0.02MB + indeks: 0.17MB + mootor InnoDB wp_e_notes_users_relations: Andmed: 0.02MB + indeks: 0.05MB + mootor InnoDB wp_e_submissions: Andmed: 0.02MB + indeks: 0.27MB + mootor InnoDB wp_e_submissions_actions_log: Andmed: 0.02MB + indeks: 0.11MB + mootor InnoDB wp_e_submissions_values: Andmed: 0.02MB + indeks: 0.03MB + mootor InnoDB wp_gla_attribute_mapping_rules: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_gla_budget_recommendations: Andmed: 0.19MB + indeks: 0.11MB + mootor InnoDB wp_gla_merchant_issues: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_gla_shipping_rates: Andmed: 0.02MB + indeks: 0.03MB + mootor InnoDB wp_gla_shipping_times: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_links: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_options: Andmed: 34.50MB + indeks: 1.50MB + mootor InnoDB wp_patchstack_event_log: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_patchstack_firewall_log: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_patchstack_logic: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_pmxi_files: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_pmxi_hash: Andmed: 0.06MB + indeks: 0.00MB + mootor InnoDB wp_pmxi_history: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_pmxi_images: Andmed: 0.19MB + indeks: 0.00MB + mootor InnoDB wp_pmxi_imports: Andmed: 1.50MB + indeks: 0.00MB + mootor InnoDB wp_pmxi_posts: Andmed: 0.17MB + indeks: 0.00MB + mootor InnoDB wp_pmxi_templates: Andmed: 0.08MB + indeks: 0.00MB + mootor InnoDB wp_postmeta: Andmed: 18.55MB + indeks: 9.03MB + mootor InnoDB wp_posts: Andmed: 31.52MB + indeks: 0.88MB + mootor InnoDB wp_smaily: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_smaily_abandoned_carts: Andmed: 0.14MB + indeks: 0.00MB + mootor InnoDB wp_termmeta: Andmed: 0.08MB + indeks: 0.09MB + mootor InnoDB wp_terms: Andmed: 0.05MB + indeks: 0.03MB + mootor InnoDB wp_term_relationships: Andmed: 0.16MB + indeks: 0.09MB + mootor InnoDB wp_term_taxonomy: Andmed: 0.05MB + indeks: 0.03MB + mootor InnoDB wp_usermeta: Andmed: 5.52MB + indeks: 4.03MB + mootor InnoDB wp_users: Andmed: 0.41MB + indeks: 0.25MB + mootor InnoDB wp_viwec_clicked: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_wc_admin_notes: Andmed: 0.06MB + indeks: 0.00MB + mootor InnoDB wp_wc_admin_note_actions: Andmed: 0.05MB + indeks: 0.02MB + mootor InnoDB wp_wc_category_lookup: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_wc_customer_lookup: Andmed: 0.22MB + indeks: 0.19MB + mootor InnoDB wp_wc_download_log: Andmed: 0.02MB + indeks: 0.03MB + mootor InnoDB wp_wc_orders: Andmed: 0.02MB + indeks: 0.13MB + mootor InnoDB wp_wc_orders_meta: Andmed: 0.11MB + indeks: 0.16MB + mootor InnoDB wp_wc_order_addresses: Andmed: 0.02MB + indeks: 0.06MB + mootor InnoDB wp_wc_order_coupon_lookup: Andmed: 0.02MB + indeks: 0.03MB + mootor InnoDB wp_wc_order_operational_data: Andmed: 0.02MB + indeks: 0.03MB + mootor InnoDB wp_wc_order_product_lookup: Andmed: 0.14MB + indeks: 0.19MB + mootor InnoDB wp_wc_order_stats: Andmed: 0.06MB + indeks: 0.05MB + mootor InnoDB wp_wc_order_tax_lookup: Andmed: 0.05MB + indeks: 0.03MB + mootor InnoDB wp_wc_product_attributes_lookup: Andmed: 0.14MB + indeks: 0.14MB + mootor InnoDB wp_wc_product_download_directories: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_wc_product_meta_lookup: Andmed: 0.25MB + indeks: 0.36MB + mootor InnoDB wp_wc_rate_limits: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_wc_reserved_stock: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_wc_tax_rate_classes: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_wc_webhooks: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_wdr_order_discounts: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_wdr_order_item_discounts: Andmed: 0.08MB + indeks: 0.05MB + mootor InnoDB wp_wdr_rules: Andmed: 0.05MB + indeks: 0.00MB + mootor InnoDB wp_wfblockediplog: Andmed: 0.13MB + indeks: 0.00MB + mootor InnoDB wp_wfblocks7: Andmed: 0.02MB + indeks: 0.05MB + mootor InnoDB wp_wfconfig: Andmed: 0.48MB + indeks: 0.00MB + mootor InnoDB wp_wfcrawlers: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_wffilechanges: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_wffilemods: Andmed: 41.58MB + indeks: 0.00MB + mootor InnoDB wp_wfhits: Andmed: 1.02MB + indeks: 0.22MB + mootor InnoDB wp_wfhoover: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_wfissues: Andmed: 0.02MB + indeks: 0.06MB + mootor InnoDB wp_wfknownfilelist: Andmed: 19.55MB + indeks: 0.00MB + mootor InnoDB wp_wflivetraffichuman: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_wflocs: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_wflogins: Andmed: 0.47MB + indeks: 0.13MB + mootor InnoDB wp_wfls_2fa_secrets: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_wfls_role_counts: Andmed: 0.00MB + indeks: 0.00MB + mootor MEMORY wp_wfls_settings: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_wfnotifications: Andmed: 0.05MB + indeks: 0.00MB + mootor InnoDB wp_wfpendingissues: Andmed: 0.02MB + indeks: 0.06MB + mootor InnoDB wp_wfpklist_template_data: Andmed: 0.05MB + indeks: 0.00MB + mootor InnoDB wp_wfreversecache: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_wfsecurityevents: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_wfsnipcache: Andmed: 0.02MB + indeks: 0.05MB + mootor InnoDB wp_wfstatus: Andmed: 0.14MB + indeks: 0.09MB + mootor InnoDB wp_wftrafficrates: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_wfwaffailures: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_wpmailsmtp_debug_events: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_wpmailsmtp_tasks_meta: Andmed: 0.02MB + indeks: 0.00MB + mootor InnoDB wp_wpr_rocket_cache: Andmed: 0.11MB + indeks: 0.20MB + mootor InnoDB wp_wpr_rucss_used_css: Andmed: 0.02MB + indeks: 0.09MB + mootor InnoDB wp_yith_wcwl: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_yith_wcwl_lists: Andmed: 0.02MB + indeks: 0.03MB + mootor InnoDB wp_yoast_indexable: Andmed: 1.52MB + indeks: 0.36MB + mootor InnoDB wp_yoast_indexable_hierarchy: Andmed: 0.06MB + indeks: 0.08MB + mootor InnoDB wp_yoast_migrations: Andmed: 0.02MB + indeks: 0.02MB + mootor InnoDB wp_yoast_primary_term: Andmed: 0.08MB + indeks: 0.09MB + mootor InnoDB wp_yoast_seo_links: Andmed: 0.06MB + indeks: 0.03MB + mootor InnoDB Post Type Counts afadv_qty: 4 attachment: 1652 custom_css: 1 customize_changeset: 1 elementor_library: 8 mc4wp-form: 1 nav_menu_item: 42 order_status: 1 page: 21 post: 6 product: 958 product_variation: 965 revision: 2506 shop_coupon: 4 shop_order: 278 staticblocks: 19 viwec_template: 9 wp_global_styles: 1 wp_navigation: 1 wp_template: 2 wpcf7_contact_form: 2 wpcode: 9 yith-wcbm-badge: 2 Security Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ Active Plugins (37) Addify - Advanced Product Quantity: - Addify – 1.4.2 Starter Templates: - Brainstorm Force – 4.1.4 Custom Order Status Manager for WooCommerce: - Bright Plugins – 1.1.3.2 Check & Log Email: - checkemail – 1.0.10 Classic Editor: - WordPress Contributors – 1.6.3 Contact Form 7: - Takayuki Miyoshi – 5.9.3 Disable Comments: - WPDeveloper – 2.4.6 Elementor: - Elementor.com – 3.20.3 Improve spam score: - Teet Bergmann – 1.0 XStore Core: - 8theme – 5.3.4 Facebook for WooCommerce: - Facebook – 3.1.14 Google Listings and Ads: - WooCommerce – 2.6.5 Site Kit by Google: - Google – 1.123.1 WPCode Lite: - WPCode – 2.1.11 Loco Translate: - Tim Whitlock – 2.6.7 Montonio for WooCommerce: - Montonio – 6.4.9 Patchstack Security: - Patchstack – 2.2.11 Pre-Orders for WooCommerce: - Bright Plugins – 2.0 WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels: - WebToffee – 4.4.3 PRO Elements: - PROElements.org – 3.19.3 Product Video Gallery for Woocommerce: - NikHiL Gadhiya – 1.4.2.7 Smaily for WooCommerce: - Smaily – 1.11.2 UpdraftPlus - Backup/Restore: - UpdraftPlus.Com DavidAnderson – 1.24.2 Converter for Media: - matt plugins – 5.12.3 Checkout Field Editor for WooCommerce: - ThemeHigh – 2.0.1 Woo Discount Rules PRO 2.0: - Flycart – 2.6.1 Discount Rules Core: - Flycart – 2.6.3 WooCommerce: - Automattic – 8.7.0 Wordfence Security: - Wordfence – 7.11.5 Yoast SEO: - Team Yoast – 22.4 WP All Import Pro: - Soflyy – 4.8.7 WP Mail SMTP: - WP Mail SMTP – 4.0.1 WP Rocket: - WP Media – 3.15.3 WP All Import - WooCommerce Import Add-On Pro: - Soflyy – 4.0.0 YITH WooCommerce Badge Management: - YITH – 3.5.0 YITH WooCommerce Compare: - YITH – 2.36.0 YITH WooCommerce Wishlist: - YITH – 3.31.0 Inactive Plugins (0) Dropin Plugins () advanced-cache.php: advanced-cache.php Must Use Plugins (3) Elementor Safe Mode: - Elementor.com – 1.0.0 Veebimajutus.ee: - Veebimajutus.ee | Elkdata OÜ – 1.5 _patchstack.php: - – Settings API Enabled: – Force SSL: – Currency: EUR (€) 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 Woo.com: ✔ Enforce Approved Product Download Directories: ✔ HPOS feature screen enabled: – HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – Logging Enabled: ✔ Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 päeva Level threshold: – Log directory size: 59 KB WC Pages Poe alusaadress: #17 - /pood/ Ostukorv: #18 - /ostukorv/ Kassa: #8 - /ostu-lopetamine/ Minu konto: #20 - /minu-konto/ Müügitingimused: #10 - /myygitingimused/ Theme Name: XStore Child Version: 1.0 Author URL: http://8theme.com Child Theme: ✔ Parent Theme Name: XStore Parent Theme Version: 9.3.4 Parent Theme Author URL: http://www.8theme.com WooCommerce Support: ✔ Templates Overrides: xstore/woocommerce/archive-product.php xstore/woocommerce/cart/cart-empty.php xstore/woocommerce/cart/cart-shipping.php xstore/woocommerce/cart/cart.php xstore/woocommerce/cart/cross-sells.php xstore/woocommerce/cart/mini-cart.php xstore/woocommerce/cart/proceed-to-checkout-button.php xstore/woocommerce/checkout/form-billing.php xstore/woocommerce/checkout/form-checkout.php xstore/woocommerce/checkout/form-shipping.php xstore/woocommerce/checkout/review-order.php xstore/woocommerce/checkout/thankyou.php xstore/woocommerce/content-product-cat.php xstore/woocommerce/content-product.php xstore/woocommerce/content-single-product.php xstore/woocommerce/content-widget-product.php xstore/woocommerce/content-widget-reviews.php xstore/woocommerce/global/breadcrumb.php xstore/woocommerce/global/form-login.php xstore/woocommerce/global/wrapper-end.php xstore/woocommerce/global/wrapper-start.php xstore/woocommerce/loop/loop-end.php xstore/woocommerce/loop/loop-start.php xstore/woocommerce/loop/no-products-found.php xstore/woocommerce/loop/result-count.php xstore/woocommerce/myaccount/dashboard.php xstore/woocommerce/myaccount/form-login.php xstore/woocommerce/myaccount/navigation.php xstore/woocommerce/product-searchform.php xstore/woocommerce/single-product/add-to-cart/simple.php xstore/woocommerce/single-product/meta.php xstore/woocommerce/single-product/product-image.php xstore/woocommerce/single-product/related.php xstore/woocommerce/single-product/tabs/tabs.php xstore/woocommerce/single-product/title.php xstore/woocommerce/single-product/up-sells.php xstore/woocommerce/single-product-reviews.php xstore/woocommerce/single-product.php Admin Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks product-variation-management product-virtual-downloadable product-external-affiliate product-grouped product-linked remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: customize-store minified-js new-product-management-experience product-pre-publish-modal settings async-product-editor-category-field Daily Cron: ✔ Next scheduled: 2024-04-08 12:53:02 +03:00 Options: ✔ Notes: 98 Onboarding: completed Action Scheduler Täidetud: 1,696 Oldest: 2024-03-08 12:02:48 +0200 Newest: 2024-04-08 12:21:25 +0300 Ebaõnnestunud: 41 Oldest: 2023-08-27 17:22:06 +0300 Newest: 2023-12-04 16:23:03 +0200 Ootel: 6 Oldest: 2024-04-08 12:42:11 +0300 Newest: 2024-04-09 10:59:07 +0300 Status report information Generated at: 2024-04-08 12:34:40 +03:00 `2024-03-12T00:53:02+00:00 Kriitiline Uncaught Error: Class “WordfenceLS\Controller_Notices” not found in /www/apache/domains/www.remps.ee/htdocs/wp-content/plugins/wordfence/modules/login-security/classes/controller/wordfencels.php:178 CONTEXT: {“error”:{“type”:1,”file”:”\/www\/apache\/domains\/www.remps.ee\/htdocs\/wp-content\/plugins\/wordfence\/modules\/login-security\/classes\/controller\/wordfencels.php”,”line”:178},”backtrace”:[“”,”#0 \/www\/apache\/domains\/www.remps.ee\/htdocs\/wp-includes\/class-wp-hook.php(324): WordfenceLS\\Controller_WordfenceLS->_admin_init(”)”,”#1 \/www\/apache\/domains\/www.remps.ee\/htdocs\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)”,”#2 \/www\/apache\/domains\/www.remps.ee\/htdocs\/wp-includes\/plugin.php(517): WP_Hook->do_action(Array)”,”#3 \/www\/apache\/domains\/www.remps.ee\/htdocs\/wp-admin\/admin-ajax.php(45): do_action(‘admin_init’)”,”#4 {main}”,”thrown”]}
Hey, @remps!
Thanks for sharing the information.
On your report, I can see that the database needs to be updated, this might be the cause of the stock error. Can you please update it and check if the issue persists? You can find more about this in this guide. If the issue remains, please let us know so we can assist you further.
The error you shared is probably not related to the stock issue, but it is still good to take a look. It is related to the Wordfence plugin. Please make sure it is updated and if it is, please reach out to it’s support so they can investigate it further. 🙂
Looking forward to your reply.
Have a wonderful day!
I have had this problem since the beginning. Updates won’t fix it.
But I’m also ask it Wordfence.
Thank youWordfence answer: Our plugin won’t modify any database values in WooCommerce if stock values have been changed.
I deactivated wordfence and tried to change the quantity on the product. Still gave an error message. It is not related to Wordfene.
Hello @remps,
Thanks for getting back to us with more details.
Just to understand, were you able to update your database as my colleague had suggested?
I was able to notice that you have 37 active plugins, could you please try disabling all plugins only leaving WooCommerce as the active plugin and try updating the stock to see if the issue persists?
Let us know how it goes.
Hi there. We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.
The topic ‘I cannot correct the stock quantity’ is closed to new replies.