WP Customizer not working when WooCommerce is enabled
-
This is on a staging site, so no link, but I am getting the message below in the Customizer when Woo Commerce is enabled (I changed the path account and domain names). The front end looks fine and seems to be working fine. I just can’t use the Customizer.
WP version is 5.0.2, WooCommerce was 3.5.2, but just updated to 3.5.3 and the problem remains. On the live site I am also using these same versions and am NOT having the problem. So am mystified as to why it is happening here. Both sites are using PHP 7.0.
Any ideas?
Warning: Invalid argument supplied for foreach() in /home/staging/pbc.example.com/wp-includes/class-wp-list-util.php on line 148 Warning: array_map(): Argument #2 should be an array in /home/staging/pbc.example.com/wp-content/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php on line 772 Warning: Invalid argument supplied for foreach() in /home/staging/pbc.example.com/wp-includes/class-wp-list-util.php on line 148 Warning: array_combine() expects parameter 1 to be array, null given in /home/staging/pbc.example.com/wp-content/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php on line 772 Fatal error: Uncaught Error: Unsupported operand types in /home/staging/pbc.example.com/wp-content/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php:772 Stack trace: #0 /home/staging/pbc.example.com/wp-content/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php(42): WC_Shop_Customizer->add_checkout_section(Object(WP_Customize_Manager)) #1 /home/staging/pbc.example.com/wp-includes/class-wp-hook.php(286): WC_Shop_Customizer->add_sections(Object(WP_Customize_Manager)) #2 /home/staging/pbc.example.com/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 /home/staging/pbc.example.com/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /home/staging/pbc.example.com/wp-includes/class-wp-customize-manager.php(926): do_action('customize_regis...', Object(WP_Customize_Manager)) #5 /home/staging/pbc.example.com/wp-includes/class-wp-hook.php(286): WP_Customize_Manager->wp_loaded('') #6 /home/staging/pbc.example.com/wp-inclu in /home/staging/pbc.example.com/wp-content/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php on line 772
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘WP Customizer not working when WooCommerce is enabled’ is closed to new replies.