Variation Swatches Not Adding To Cart
-
I’m running astra theme, newest version, disabled all plugins.
This is happening on 2 separate websites as well, tested. Anytime I try and add a product with attributes from a page with a productx block I receive the following error.
[Fri Apr 28 06:20:34.718850 2023] [proxy_fcgi:error] [pid 2815045:tid 140327344121408] [client 2601:281:d000:6f20:e961:f887:1f6:e477:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in /home/cobathandbody/web/cobathandbody.com/public_html/wp-content/plugins/product-blocks/addons/variation_swatches/VariationSwatches.php:712\nStack trace:\n#0 /home/cobathandbody/web/cobathandbody.com/public_html/wp-content/plugins/product-blocks/addons/variation_swatches/VariationSwatches.php(712): array_map()\n#1 /home/cobathandbody/web/cobathandbody.com/public_html/wp-includes/class-wp-hook.php(308): WOPB\VariationSwatches->wopb_loop_add_to_cart_ajax()\n#2 /home/cobathandbody/web/cobathandbody.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#3 /home/cobathandbody/web/cobathandbody.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#4 /home/cobathandbody/web/cobathandbody.com/public_html/wp-admin/admin-ajax.php(188): do_action()\n#5 {main}\n thrown in /home/cobathandbody/web/cobathandbody.com/public_html/wp-content/plugins/product-blocks/addons…’, referer: https://www.cobathandbody.com/category-bar-soap/
Adding to cart from the product page itself seems to work fine
The page I need help with: [log in to see the link]
- The topic ‘Variation Swatches Not Adding To Cart’ is closed to new replies.