• Hello,

    I have this error on my Product edit screen under product data after installing.

    Warning: Missing argument 2 for wcpb_product_interface::wcpb_add_product_bundle_type() in /home/suschastain/staging.suziqcreations.com/wp-content/plugins/wc-product-bundles/classes/admin-form.php on line 20

Viewing 5 replies - 1 through 5 (of 5 total)
  • Dear Support,

    I have same issue.
    Please update ASAP.
    Warning: Missing argument 2 for wcpb_product_interface::wcpb_add_product_bundle_type() in /home/XXXXXX/public_html/XXXXXX/wp-content/plugins/wc-product-bundles/classes/admin-form.php on line 20

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    PHP 7.0.x, WP 4.7.2

    PHP Warning: Missing argument 2 for wcpb_product_interface::wcpb_add_product_bundle_type(), called in /var/www/tac/wp-includes/class-wp-hook.php on line 298 and defined in /var/www/tac/wp-content/plugins/wc-product-bundles/classes/admin-form.php on line 20\n

    hi,
    same issue after an update of the product title

    (no upgrade of any plugin or wordpress)…???

    The same issue. Has anyone found a solution?

    Thanks!

    mjdewitt

    (@mjdewitt)

    I changed two lines on admin-form.php:
    from
    add_filter( ‘product_type_selector’, array( $this, ‘wcpb_add_product_bundle_type’ ), 1, 2 );

    TO
    add_filter( ‘product_type_selector’, array( $this, ‘wcpb_add_product_bundle_type’ ), 1, 1 );

    and

    FROM
    function wcpb_add_product_bundle_type( $ptypes, $ptype ) {

    TO
    function wcpb_add_product_bundle_type( $ptypes ) {

    $ptype seems to have gone away? Not sure why this was needed in first place.

    Mike

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘warning: missing argument’ is closed to new replies.