Support » Plugin: WC Product Bundles » Error in the page “add new product”

  • krys

    (@krysteleal)


    I have this error message in the page “add new product”, right after I installed the plugin:

    “Warning: Missing argument 2 for wcpb_product_interface::wcpb_add_product_bundle_type() in /home/…/public_html/wp-content/plugins/wc-product-bundles/classes/admin-form.php on line 20”

    Printscreen: https://s13.postimg.org/p59j1wh6v/Screen_Shot_2016_09_29_at_13_21_54.png

    What’s the problem and the solution?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • richbros

    (@richbros)

    I’m having the same problem and it is deleting the prices on products on the front end.

    WordPress 4.6.1 running Rise theme.

    I tried using it with the 2014 theme and got it to work, sort of, but it’s still showing the error.

    Try this:

    1. hide PHP warnings
    2. deactivate the plugin
    3. open plugin file: /wp-content/plugins/wc-product-bundles/wcpb.php and change line 41 from this:
      wp_register_script( 'wcpb-script', $this->settings['dir'] . "assets/js/wcpb.js", 'jquery', $this->settings['version'] );
      to this:
      wp_register_script( 'wcpb-script', $this->settings['dir'] . "assets/js/wcpb.js", 'jquery', $this->settings['version'], true );
    4. reactivate the plugin
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error in the page “add new product”’ is closed to new replies.