Checkout block shows warning Warning: foreach() argument must be of type array|object, string given
when a guest session is loaded after upgrading to 8.9
#47485
Labels
block: checkout
Issues related to the checkout block.
focus: checkout
Issues related to checkout page.
priority: high
The issue/PR is high priority—it affects lots of customers substantially, but not critically.
team: Rubik
Store API checkout endpoints, Mini-Cart, Cart and Checkout related issues
type: bug
The issue is a confirmed bug.
Issue
Warning shown when loading the Checkout block in WC 8.9 with a guest session created in 8.8.
Warning: foreach() argument must be of type array|object, string given in wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php on line 152
It is potentially linked to https://github.com/woocommerce/woocommerce/pull/46762/files#diff-578ec004cc2b40bb0b5b7d4901dc51c209cc8a76456b588cbcbc12b693757466
Reproduction steps
The text was updated successfully, but these errors were encountered: