Jump to content
thirty bees forum
  • 0

ThirtyBeesException: Cart [0] not found


Question

Posted (edited)

I've had the error:

 ThirtyBeesException: Cart [0] not found

appear several times that past few days. In each case the order is created but the payment is not created. The payment is received (both PayPal and Stripe) but the payment is not recorded in ThirtyBees. In the case of the stripe module I get a line on the order saying:

"Warning: The customer paid using Stripe and an error occured while saving the transaction."

There is no such notice for PayPal but the result is the same - the order status is blank and there is no confirmation email.

Here are the error logs. Can anyone suggest a fix for this?

Message:
ThirtyBeesException: Cart [0] not found


Location:
classes/module/PaymentModule.php line 398

Stacktrace

#0 classes/module/PaymentModule.php(398)
#1 modules/paypal/paypal.php(1540): PaymentModuleCore->validateOrder()
#2 modules/paypal/controllers/front/expresscheckout.php(457): PayPal->validateOrder()
#3 modules/paypal/controllers/front/expresscheckout.php(214): PayPalexpresscheckoutModuleFrontController->validateOrder()
#4 modules/paypal/controllers/front/expresscheckout.php(63): PayPalexpresscheckoutModuleFrontController->processPayment()
#5 classes/controller/Controller.php(209): PayPalexpresscheckoutModuleFrontController->initContent()
#6 classes/controller/FrontController.php(264): ControllerCore->run()
#7 classes/Dispatcher.php(851): FrontControllerCore->run()
#8 index.php(33): DispatcherCore->dispatch()

HTTP Request

GET /module/paypal/expresscheckout?id_cart=36979&paymentId=xxxxxxx-xxxxxxxxxxxxxxxxx&token=xxxxxxxxxxxxxxxx&PayerID=xxxxxxxxxxxxxx

GET parameters

  [id_cart]: "36979"
  [paymentId]: "PAYID-xxxxxxxxxxxxxxxxxxxxxxxxxxx"
  [token]: "EC-xxxxxxxxxxxxxxxxxxx"
  [PayerID]: "xxxxxxxxxxxxxxx"
  [module]: "paypal"
  [controller]: "expresscheckout"
  [fc]: "module"

Cookie

  [date_add]: "2024-10-18 12:41:34"
  [id_lang]: "1"
  [iso_code_country]: "US"
  [id_currency]: 2
  [viewed]: "10,11,169,21,92,1,2,14,13,12,101,159,174,14,13,12"
  [nav_last_visited_category]: "6"
  [id_guest]: "1710175"
  [id_connections]: "917263"
  [PIWIKTrackCartFooter]: "1730956143"
  [last_visited_category]: "6"
  [last_visited_category_blog]: "4"
  [id_customer]: "8166"
  [customer_lastname]: "xxxxxx"
  [customer_firstname]: "xxxxxx"
  [passwd]: "$2y$10$.o/3OZNzkRADkqgg0GpmNeT9ZgWOqT4yNZLvrJMQWLbPmeC1gfu2y"
  [logged]: "1"
  [email]: "[email protected]"
  [is_guest]: ""
  [check_cgv]: false
  [id_cart]: null

 

Edited by beetea2

2 answers to this question

Recommended Posts

  • 0
Posted

id_cart in your cookie is set to null instead of an actual cart it.

All places in core that writes id_cart into cat are putting integer value (not null), so there must be some module that did this. 

  • 0
Posted

Thanks for your feedback. My thirtybees installation has been stable and reliable for several months, with no changes except a few module updates, the most recent being the core updater. There's no way this could be related to the core updater, is there?

I recall there used to be a problem with guest checkout. I had guest checkout enabled without any problems for several months. After these recent errors I've disabled guest checkout again.

Is there anything else I can do to track this down?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...