• Resolved KristenMathiasen

    (@kristenmathiasen)


    I’m testing your plugin for a customer and gets this error when I try to put a product in my cart:

    Warning: Undefined array key "wooco_keys" in /home/www/kanopaasusaa.dk/wp-content/plugins/wpc-composite-products/wpc-composite-products.php on line 1775
    
    Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home/www/kanopaasusaa.dk/wp-content/plugins/wpc-composite-products/wpc-composite-products.php:1775 Stack trace: #0 /home/www/kanopaasusaa.dk/wp-content/plugins/wpc-composite-products/wpc-composite-products.php(1775): in_array('3883e577b76e4a1...', NULL) #1 /home/www/kanopaasusaa.dk/wp-includes/class-wp-hook.php(303): WPCleverWooco->wooco_get_cart_contents(Array) #2 /home/www/kanopaasusaa.dk/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array) #3 /home/www/kanopaasusaa.dk/wp-content/plugins/woocommerce/includes/class-wc-cart.php(140): apply_filters('woocommerce_get...', Array) #4 /home/www/kanopaasusaa.dk/wp-content/plugins/woocommerce/includes/class-wc-cart.php(604): WC_Cart->get_cart_contents() #5 /home/www/kanopaasusaa.dk/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(243): WC_Cart->get_cart() #6 /home/www/kanopaasusaa.dk/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(260): WC_Cart_Session->get_cart_for_session() #7 /home/www/kanopaasusaa.dk/wp-includes/class-wp-hook.php(305): WC_Cart_Session->persistent_cart_update('3883e577b76e4a1...') #8 /home/www/kanopaasusaa.dk/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #9 /home/www/kanopaasusaa.dk/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #10 /home/www/kanopaasusaa.dk/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1276): do_action('woocommerce_add...', '3883e577b76e4a1...', 12, 1, 0, Array, Array) #11 /home/www/kanopaasusaa.dk/wp-content/plugins/wpc-composite-products/wpc-composite-products.php(1657): WC_Cart->add_to_cart(12, 1, 0, Array, Array) #12 /home/www/kanopaasusaa.dk/wp-content/plugins/wpc-composite-products/wpc-composite-products.php(1613): WPCleverWooco->wooco_add_to_cart_items(Array, '25d6758ca995a7f...', 11, 1) #13 /home/www/kanopaasusaa.dk/wp-includes/class-wp-hook.php(303): WPCleverWooco->wooco_add_to_cart('25d6758ca995a7f...', 11, 1, 0, Array, Array) #14 /home/www/kanopaasusaa.dk/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #15 /home/www/kanopaasusaa.dk/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #16 /home/www/kanopaasusaa.dk/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1276): do_action('woocommerce_add...', '25d6758ca995a7f...', 11, 1, 0, Array, Array) #17 /home/www/kanopaasusaa.dk/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(824): WC_Cart->add_to_cart(11, 1) #18 /home/www/kanopaasusaa.dk/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(796): WC_Form_Handler::add_to_cart_handler_simple(11) #19 /home/www/kanopaasusaa.dk/wp-includes/class-wp-hook.php(303): WC_Form_Handler::add_to_cart_action('') #20 /home/www/kanopaasusaa.dk/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #21 /home/www/kanopaasusaa.dk/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #22 /home/www/kanopaasusaa.dk/wp-settings.php(600): do_action('wp_loaded') #23 /home/www/kanopaasusaa.dk/wp-config.php(96): require_once('/home/www/kanop...') #24 /home/www/kanopaasusaa.dk/wp-load.php(50): require_once('/home/www/kanop...') #25 /home/www/kanopaasusaa.dk/wp-blog-header.php(13): require_once('/home/www/kanop...') #26 /home/www/kanopaasusaa.dk/index.php(17): require('/home/www/kanop...') #27 {main} thrown in /home/www/kanopaasusaa.dk/wp-content/plugins/wpc-composite-products/wpc-composite-products.php on line 1775

    I have tried to deactivate the plugin and then the purchase works. I have reinstalled the whole site and have only Woocommerce and your plugin activated.

    What to do?

    Kind regards Kristen

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined array key “wooco_keys” in /wpc-composite-products.php on line 1775’ is closed to new replies.