• glowmedialimited

    (@glowmedialimited)


    The site is having a very strange stock level issue, when certain purchases are made for example this product: https://vitacanis.co.uk/product/paw-butter-for-dry-pads/ the stock level will go from 9 to -57. It is also happening on other products but not all as far as I can tell.

    I have used the troubleshooting mode with the twentytwenty theme enables and only the woocommerce plugin active and it still happens.

    I am pulling my hair out over this so any help will be appreciated

    here is the system report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://vitacanis.co.uk
    Site address (URL): https://vitacanis.co.uk
    WC Version: 4.6.2
    REST API Version: ? 4.6.2
    WC Blocks Version: ? 3.4.0
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.6.2
    Log Directory Writable: ?
    WP Version: 5.5.3
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_GB
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 7.4.12
    PHP Post Max Size: 128 MB
    PHP Time Limit: 2000
    PHP Max Input Vars: 1000
    cURL Version: 7.71.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 10.3.24-MariaDB-cll-lve
    Max Upload Size: 128 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ? Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.
    DOMDocument: ?
    GZip: ?
    Multibyte String: ? Your server does not support the mbstring functions - this is required for better character encoding. Some fallbacks will be used instead for it.
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 4.6.2
    WC Database Prefix: wp_
    Total Database Size: 86.02MB
    Database Data Size: 54.53MB
    Database Index Size: 31.49MB
    wp_woocommerce_sessions: Data: 0.11MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 1.39MB + Index: 0.19MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 6.06MB + Index: 4.48MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 1.22MB + Index: 0.83MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 1.38MB + Index: 0.52MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 2.23MB + Index: 1.19MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_litespeed_img_optm: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_options: Data: 3.34MB + Index: 1.11MB + Engine InnoDB
    wp_postmeta: Data: 15.44MB + Index: 14.34MB + Engine InnoDB
    wp_posts: Data: 8.23MB + Index: 0.58MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 3.52MB + Index: 5.03MB + Engine InnoDB
    wp_users: Data: 0.28MB + Index: 0.27MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.22MB + Index: 0.17MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.28MB + Index: 0.30MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.16MB + Index: 0.16MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfconfig: Data: 1.30MB + Index: 0.00MB + Engine InnoDB
    wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilemods: Data: 3.52MB + Index: 0.00MB + Engine InnoDB
    wp_wfhits: Data: 1.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfknownfilelist: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflogins: Data: 0.36MB + Index: 0.14MB + Engine InnoDB
    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfstatus: Data: 0.14MB + Index: 0.11MB + Engine InnoDB
    wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpgmza: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpgmza_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpgmza_category_maps: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpgmza_circles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpgmza_maps: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpgmza_polygon: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpgmza_polylines: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpgmza_rectangles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yoast_indexable: Data: 1.52MB + Index: 0.75MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.14MB + Index: 0.09MB + Engine InnoDB
    wp_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    acf-field: 7
    acf-field-group: 5
    attachment: 518
    customize_changeset: 1
    jetpack_migration: 2
    jp_img_sitemap: 1
    jp_sitemap: 1
    jp_sitemap_master: 1
    nav_menu_item: 20
    oembed_cache: 1
    page: 26
    post: 157
    product: 74
    product_variation: 71
    revision: 4
    shop_coupon: 103
    shop_order: 2349
    shop_order_refund: 3
    testimonials: 5
    vtprd-rule: 13
    wp_block: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (16) ###
    
    Advanced Custom Fields PRO: by Elliot Condon – 5.9.1
    Disable XML-RPC: by Philip Erb – 1.0.1
    Enable Media Replace: by ShortPixel – 3.5.0
    Health Check & Troubleshooting: by The www.remarpro.com community – 1.4.5
    LiteSpeed Cache: by LiteSpeed Technologies – 3.5.2
    Pin It Button On Image Hover And Post: by Weblizar – 2.7.8
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.4
    WooCommerce No Shipping Message: by dangoodman – 2.0.5
    WooCommerce Weight Based Shipping: by weightbasedshipping.com – 5.3.6.1
    WooCommerce Google Analytics Pro: by SkyVerge – 1.9.1 – Installed version not tested with active version of WooCommerce 4.6.2
    WooCommerce: by Automattic – 4.6.2 (update to version 4.7.0 is available)
    Wordfence Security: by Wordfence – 7.4.12
    Yoast SEO: by Team Yoast – 15.2.1
    WP Google Maps: by WP Google Maps – 8.0.26
    WP-PageNavi: by Lester 'GaMerZ' Chan – 2.93.3
    Refer a Friend for WooCommerce PREMIUM: by WPGens – 2.3.0 – Installed version not tested with active version of WooCommerce 4.6.2
    
    ### Inactive Plugins (1) ###
    
    WooCommerce Blocks: by Automattic – 3.8.0
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Must Use Plugins (1) ###
    
    Health Check Troubleshooting Mode: by  – 1.7.2
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: ?
    Currency: GBP (£)
    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)
    
    Connected to WooCommerce.com: ?
    
    ### WC Pages ###
    
    Shop base: #39 - /shop/
    Basket: #40 - /basket/
    Checkout: #41 - /checkout/
    My account: #42 - /my-account/
    Terms and conditions: #28 - /terms-conditions/
    
    ### Theme ###
    
    Name: Glowmedia 2020
    Version: 3.1
    Author URL: https://www.glowmedia.co.uk/
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build
    personally we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 3,074
    Oldest: 2020-10-11 19:15:49 +0100
    Newest: 2020-11-11 16:52:33 +0000
    
    

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter glowmedialimited

    (@glowmedialimited)

    Cna anyone help me with this please

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @glowmedialimited. I’m sorry that we missed your initial post.

    Can you make sure that there is no caching on your Cart, Checkout and My Account pages as per this guide?

    You mentioned that you did conflict testing and the issue still occurred. Was that when using a default theme as well. Could you share a screenshot of an order where this inventory change occurred, with the order notes on the right hand side included? Please redact any private information. You can share the image using a tool like https://snipboard.io.

    Thread Starter glowmedialimited

    (@glowmedialimited)

    Hi @drwpcom,

    Thanks for getting back to me, as far as I know the caching was removed from the site, the server uses LiteSpeed and I removed the wp plugin and deactivated the cache on the cpanel.

    Yes i tested with a default theme when I was in conflict mode.

    After further testing, for example setting the payment method to cash on delivery I found the issue still occurred, I also found that it wasn’t for every product that had stock control enabled.

    The order notes for any of the orders that had the issue showed the correct reduction in stock, i.e 10 -> 9 but then when viewing the product the stock would be something like -61 and then marked as out of stock, when the stock is manually updated i.e. back to 10 and another order is made the stock would go to -62.

    The only thing I can think of is that the database is somehow corrupt, I have run the standard repair and optimise of the tables, but this has not helped.

    In the short term the clicent has decided to remove stock control for now with a view of adding it back in next year, the only solution I can think of is to rebuild the site with a fresh database and export content from the current site and import into the new version of the site and hope for the best..

    Ant advice would be greatly appreciated.

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @glowmedialimited, it definitely sounds like there is an issue with the stock in the database.

    You could try exporting the products and re-importing them with the correct stock values to see if that makes a difference.

    Another test you could do is if you duplicate one of the affected products, can you replicate the issue there?

    You can also try checking the database entries for the two products to explore how they are different, to see what might be going on.

    I hope that points you in the right direction!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stock levels Issue’ is closed to new replies.