• jomo

    (@jonathanmoorebcsorg)


    When searching for simple products to add to the bundle the following errors are generated so no products are found:

    [12-Jul-2017 16:33:17 UTC] PHP Notice: Undefined variable: product_child in /wp-content/plugins/woo-product-bundle/index.php on line 544
    [12-Jul-2017 16:33:17 UTC] PHP Stack trace:
    [12-Jul-2017 16:33:17 UTC] PHP 1. {main}() /wp-admin/admin-ajax.php:0
    [12-Jul-2017 16:33:17 UTC] PHP 2. do_action($tag = *uninitialized*, $arg = *uninitialized*) /wp-admin/admin-ajax.php:91
    [12-Jul-2017 16:33:17 UTC] PHP 3. WP_Hook->do_action($args = *uninitialized*) /wp-includes/plugin.php:453
    [12-Jul-2017 16:33:17 UTC] PHP 4. WP_Hook->apply_filters($value = *uninitialized*, $args = *uninitialized*) /wp-includes/class-wp-hook.php:323
    [12-Jul-2017 16:33:17 UTC] PHP 5. WooSB->woosb_process_ajax(*uninitialized*) /wp-includes/class-wp-hook.php:298
    [12-Jul-2017 16:33:17 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_price_html() on null in /wp-content/plugins/woo-product-bundle/index.php:544
    Stack trace:
    #0 /wp-includes/class-wp-hook.php(298): WooSB->woosb_process_ajax(”)
    #1 /wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
    #2 /wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /wp-admin/admin-ajax.php(91): do_action(‘wp_ajax_woosb_g…’)
    #4 {main}
    thrown in /wp-content/plugins/woo-product-bundle/index.php on line 544

Viewing 1 replies (of 1 total)
  • Thread Starter jomo

    (@jonathanmoorebcsorg)

    abbreviated code in this part reads:

    `
    if ( $product->is_type( ‘variable’ ) ) {
    ..
    $product_child = wc_get_product( $child );
    ..
    } else {
    //bad reference to $product_child, not initialised/defined at this point: }
    `

Viewing 1 replies (of 1 total)

The topic ‘1.2 doesn’t support adding simple products to bundle’ is closed to new replies.