Title: Error when no stock
Last modified: February 4, 2021

---

# Error when no stock

 *  Resolved [mellorsmeltingmoments](https://wordpress.org/support/users/mellorsmeltingmoments/)
 * (@mellorsmeltingmoments)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-when-no-stock/)
 * I get an error when a user tries to view an out of stock item relating to the
   digital wallet.
 * Fatal error: Uncaught Exception: You cannot add that amount of “Valentine’s Selection
   Box”; to the cart because there is not enough stock (0 remaining). in /homepages/
   30/d857421970/htdocs/clickandbuilds/MellorsMeltingMoments/wp-content/plugins/
   woocommerce-square/includes/Gateway/Digital_Wallet.php:284 Stack trace: #0 /homepages/
   30/d857421970/htdocs/clickandbuilds/MellorsMeltingMoments/wp-content/plugins/
   woocommerce-square/includes/Gateway/Digital_Wallet.php(233): WooCommerce\Square\
   Gateway\Digital_Wallet->get_product_payment_request(367) #1 /homepages/30/d857421970/
   htdocs/clickandbuilds/MellorsMeltingMoments/wp-content/plugins/woocommerce-square/
   includes/Gateway/Digital_Wallet.php(202): WooCommerce\Square\Gateway\Digital_Wallet-
   >get_payment_request_for_context(‘product’) #2 /homepages/30/d857421970/htdocs/
   clickandbuilds/MellorsMeltingMoments/wp-includes/class-wp-hook.php(287): WooCommerce\
   Square\Gateway\Digital_Wallet->enqueue_scripts(”) #3 /homepages/30/d857421970/
   htdocs/clickandbuilds/MellorsMeltingMoments/wp-includes/ in /homepages/30/d857421970/
   htdocs/clickandbuilds/MellorsMeltingMoments/wp-content/plugins/woocommerce-square/
   includes/Gateway/Digital_Wallet.php on line 284

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

 *  [Pembertronics](https://wordpress.org/support/users/pembertronics/)
 * (@pembertronics)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-when-no-stock/#post-14009565)
 * Hi
    I am having identical issues, I have cleared cache, disabled plugins etc 
   and it only stops once I disable digital wallet. Please fix ASAP Thanks John
 *  Plugin Support [Aashik P – a11n](https://wordpress.org/support/users/aashik/)
 * (@aashik)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-when-no-stock/#post-14033743)
 * Hi there!
 * I could replicate the same error with Digital Wallet enabled. Unchecking the 
   option fixes the error, but also disables the digital wallet (expected behavior).
 * I’ve flagged this to the developers for now. Please keep an eye out for the fix
   in the changelogs: [https://wordpress.org/plugins/woocommerce-square/#developers](https://wordpress.org/plugins/woocommerce-square/#developers)
 * Thank you for your understanding.
 *  Plugin Support [Aashik P – a11n](https://wordpress.org/support/users/aashik/)
 * (@aashik)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-when-no-stock/#post-14033798)
 * Hi there!
 * Just a heads up that this is now fixed and the patch released as a new update(
   2.3.4).
 * I’ll mark this topic as solved for now. Please feel free to open a new topic 
   if you’re still having trouble with this after updating.

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

The topic ‘Error when no stock’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-square/assets/icon-256x256.png?rev=3234354)
 * [WooCommerce Square](https://wordpress.org/plugins/woocommerce-square/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-square/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-square/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-square/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-square/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-square/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Aashik P – a11n](https://wordpress.org/support/users/aashik/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/error-when-no-stock/#post-14033798)
 * Status: resolved