You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even fillCart and removeItems do not work. They give 'internal server error' which in turn gives a 'woo transaction executed out of order' error. Please do fix this ASAP. The only way to avoid the Woo transaction error is to comment out the code at line 224 in class-session-transaction-manager.php
` public function pop_transaction_id() {
// Bail if transaction not started.
if ( is_null( $this->transaction_id ) ) {
return;
}
// Get transaction queue.
$transaction_queue = get_transient( "woo_session_transactions_queue_{$this->session_handler->get_customer_id()}" );
// Throw if transaction ID not on top.
if ( $this->transaction_id !== $transaction_queue[0]['transaction_id'] ) {
// throw new UserError( __( 'Woo session transaction executed out of order', 'wp-graphql-woocommerce' ) );
} else {
// // Remove Transaction ID and update queue.
array_shift( $transaction_queue );
$this->save_transaction_queue( $transaction_queue );
$this->transaction_id = null;
}
}
`
The text was updated successfully, but these errors were encountered:
mutation udpateCartItemQuantities($items: [CartItemQuantityInput] = [{key: "053c837dca3a5636ad1c9bccd6af3415", quantity: 12}], $clientMutationId: String = "random") { updateItemQuantities( input: {items: $items, clientMutationId: $clientMutationId} ) { cart { contents { edges { node { key quantity product { node { image { link } } } total } } itemCount } contentsTotal contentsTax total discountTotal } } }
Even fillCart and removeItems do not work. They give 'internal server error' which in turn gives a 'woo transaction executed out of order' error. Please do fix this ASAP. The only way to avoid the Woo transaction error is to comment out the code at line 224 in class-session-transaction-manager.php
` public function pop_transaction_id() {
// Bail if transaction not started.
if ( is_null( $this->transaction_id ) ) {
return;
}
// throw new UserError( __( 'Woo session transaction executed out of order', 'wp-graphql-woocommerce' ) );
} else {
// // Remove Transaction ID and update queue.
array_shift( $transaction_queue );
$this->save_transaction_queue( $transaction_queue );
$this->transaction_id = null;
}
}
`
The text was updated successfully, but these errors were encountered: