Title: Error in wcpb.js load
Last modified: August 30, 2016

---

# Error in wcpb.js load

 *  [OsKar142](https://wordpress.org/support/users/oskar142/)
 * (@oskar142)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/error-in-wcpbjs-load/)
 * Hi,
 * The main thing, excuse my english.
 * I’ve seen an error in the code. When loading the file wcpb.js in my case was 
   a mistake because the file is loaded before jQuery. To fix this, simply you have
   to change a parameter in wp_register_script:
 * File: wcpb.php:41
    Old: wp_register_script (‘wcpb-script’, $ this-> settings [‘
   dir’] “assets / js / wcpb.js”, ‘jquery’, $ this-> settings [‘version’].);
 * Corrected:
    wp_register_script (‘wcpb-script’, $ this-> settings [‘dir’] “assets/
   js / wcpb.js”, array (‘jquery’), $ this-> settings [‘version’].);
 * In this way it has worked properly. I hope someone has the same problem you can
   do some good.
 * [https://wordpress.org/plugins/wc-product-bundles/](https://wordpress.org/plugins/wc-product-bundles/)

The topic ‘Error in wcpb.js load’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [OsKar142](https://wordpress.org/support/users/oskar142/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/error-in-wcpbjs-load/)
 * Status: not resolved