Support » Plugin: WooCommerce » WP Customizer not working when WooCommerce is enabled

  • Resolved kallym

    (@kallym)


    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)
  • Plugin Support Kenin

    (@kbassart)

    Automattic Happiness Engineer

    Hi there,

    Could you please share a copy of your site’s System Status for the staging and live sites? You can find it via WooCommerce > Status.
    Select “Get system report” and then “Copy for support”.  Once you’ve done that, paste it here in your response. Then we can compare the two.

    Plugin Support Con Schneider

    (@conschneider)

    Automattic Happiness Engineer

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    kallym

    (@kallym)

    Sorry, yes, this was resolved by redoing my migration to the staging site. I think originally there was a different WordPress version on the site I was migrating to. Not a WooCommerce problem at all.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.