• Resolved mickif

    (@mickif)


    Hi, Before I use with latest wp version, I see that there has been no update for last 3 versions. No biggy? Thank you for your time!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author James Golovich

    (@jamesgol)

    I’ve tested a bit with latest WordPress and WooCommerce and haven’t noticed any issues.

    Thread Starter mickif

    (@mickif)

    thank you!!

    Your plugin has been absolutley fantastic, we can’t do without it – but it seems to be crashing our site as of this weekend … critical error, the whole site is down. this is the error that I’m getting on my php error log – I’m guessing it’s from the plugin, as if I turn the plugin off my site works fine… I really hope you can help with this
    [30-Jan-2021 16:58:18 UTC] PHP Fatal error: Uncaught Exception: Invalid order. in /usr/www/users/moving/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:104
    Stack trace:
    #0 /usr/www/users/moving/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): Abstract_WC_Order_Data_Store_CPT->read(Object(WC_Order))
    #1 /usr/www/users/moving/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(114): WC_Data_Store->read(Object(WC_Order))
    #2 /usr/www/users/moving/wp-content/plugins/woocommerce-cart-stock-reducer/includes/class-woocommerce-cart-stock-reducer.php(1161): WC_Abstract_Order->__construct(290437)
    #3 /usr/www/users/moving/wp-content/plugins/woocommerce-cart-stock-reducer/includes/class-wc-csr-sessions.php(133): WC_Cart_Stock_Reducer->is_expired(1611905773, 290437)
    #4 /usr/www/users/moving/wp-content/plugins/woocommerce-cart-stock-reducer/includes/class-woocommerce-cart-stock-reducer.php(1041): WC_CSR_Sessions->quantity_in_carts(289687, ‘product_id’, false)
    #5 /usr/www/users/moving/wp- in /usr/www/users/moving/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php on line 104

    thank you so much

    Plugin Author James Golovich

    (@jamesgol)

    Hello @sometimeska,

    Please start new topics in the future for a new issue.

    I’ll have to dig into the code to troubleshoot this but I suspect if you clear your WooCommerce sessions/carts it will resolve itself.

    Thank you for your feedback. I’m a complete newbie to support forums and didn’t know how to start a new topic, sorry ?? It seems that if I turn off my cache/WP rocket it also works, so perhaps the error is coming when it looks to the cache for something that is sold already?

    • This reply was modified 3 years, 8 months ago by sometimeska.
    Plugin Author James Golovich

    (@jamesgol)

    Hello @sometimeska,

    I just pushed a change to the development version that will stop this error. I don’t know why WooCommerce would have a session with an Order ID that doesn’t exist but if that happens again it won’t cause problems.

    If you would like to try the development version it is at https://github.com/jamesgol/woocommerce-cart-stock-reducer/archive/master.zip

    Otherwise when I push out a new release this change will be included.

    Fantastic, thank you so much!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘no need for upgrade?’ is closed to new replies.