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]: "xxxxxxxx@xxx.com"
[is_guest]: ""
[check_cgv]: false
[id_cart]: null