Title: Warning: Missing argument 2 for&#8230;
Last modified: September 1, 2016

---

# Warning: Missing argument 2 for…

 *  [tengalloncat](https://wordpress.org/support/users/tengalloncat/)
 * (@tengalloncat)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/warning-missing-argument-2-for/)
 * After the latest WooCommerce update I began seeing this message at the top of
   several of the pages in the WP Dashboard.
 * Warning: Missing argument 2 for wcpb_product_interface::wcpb_add_product_bundle_type()
   in /home/xxxxx/public_html/xxxxx.com/wp-content/plugins/wc-product-bundles/classes/
   admin-form.php on line 20
 * Using WP 4.5.2, WooCommerce 2.6.1, and WC Product Bundles 1.0.7
 * [https://wordpress.org/plugins/wc-product-bundles/](https://wordpress.org/plugins/wc-product-bundles/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [gocomunicazione](https://wordpress.org/support/users/gocomunicazione/)
 * (@gocomunicazione)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/warning-missing-argument-2-for/#post-7499881)
 * Same for me
    A.
 *  [sonne](https://wordpress.org/support/users/sonnecreativtransfer/)
 * (@sonnecreativtransfer)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/warning-missing-argument-2-for/#post-7500027)
 * If you dare, do the following modifications until a new version is available.
   This will remove the warning message as well as fix a problem when adding product
   bundles to the shopping cart.
 * classes/admin-form.php – approx. on line 20
    look for: function wcpb_add_product_bundle_type(
   $ptypes, $ptype ) {
 * replace (just remove the 2nd var) with:
    function wcpb_add_product_bundle_type(
   $ptypes ) {
 * in classes/product-form.php – approx on line 143
 * look for:
    $added_to_cart[] = $product_id;
 * replace with:
    $added_to_cart[$product_id] = $quantity;
 *  Thread Starter [tengalloncat](https://wordpress.org/support/users/tengalloncat/)
 * (@tengalloncat)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/warning-missing-argument-2-for/#post-7500036)
 * Thanks sonne!
 * So far so good.
 *  [gocomunicazione](https://wordpress.org/support/users/gocomunicazione/)
 * (@gocomunicazione)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/warning-missing-argument-2-for/#post-7500067)
 * Hello,
    where do I find the classes/admin-form.php file? Thank you
 *  [sus](https://wordpress.org/support/users/susgeek/)
 * (@susgeek)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/warning-missing-argument-2-for/#post-7723005)
 * Perfect fix, thank you!
 *  [DanielOakfield](https://wordpress.org/support/users/carodani/)
 * (@carodani)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/warning-missing-argument-2-for/#post-8312354)
 * Thanks a lot sonne!!!! Hope this will be fixed in the next version!!!
    -  This reply was modified 9 years, 6 months ago by [DanielOakfield](https://wordpress.org/support/users/carodani/).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Warning: Missing argument 2 for…’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wc-product-bundles_b6cfe6.svg)
 * [WC Product Bundles](https://wordpress.org/plugins/wc-product-bundles/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-product-bundles/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-product-bundles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-product-bundles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-product-bundles/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [DanielOakfield](https://wordpress.org/support/users/carodani/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/warning-missing-argument-2-for/#post-8312354)
 * Status: not resolved