Hi there!
Thanks for reaching out and for sharing the error details.
The wp_woocommerce_sessions table is used by WooCommerce to store cart and session data, so if it has been deleted or was not created correctly, you can see critical errors when trying to view the basket/cart page. In most cases, this can be fixed by forcing WooCommerce to recreate its core tables or by restoring the missing table from a backup.
Please try the following steps:
- Go to WooCommerce → Status → Tools and run:
- Update database (if available).
- Verify base database tables After running these, check if the error persists.
- If you are comfortable with tools like phpMyAdmin (or your host can assist), they can also manually recreate the table in your database using the standard WooCommerce schema. This is usually done by running a
CREATE TABLE query for wp_woocommerce_sessions with the correct columns and keys.
Once the table has been recreated and WooCommerce can write to it, the cart/basket page should stop throwing the critical error. If it is still happening after trying the above, please share:
- Your WooCommerce → Status → System Status Report (via a paste service, with any sensitive information removed).
- Any recent fatal error logs from WooCommerce → Status → Logs.
We’ll be happy to take a closer look with those details.
Since we haven’t received any updates from you, I’ll mark this as resolved for now. If you need further assistance, you’re welcome to start a new thread.