Title: Error in code
Last modified: August 31, 2016

---

# Error in code

 *  Resolved [philrisk](https://wordpress.org/support/users/philrisk/)
 * (@philrisk)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-in-code-10/)
 * This appears at the top of mu site.
 * Warning: call_user_func_array() expects parameter 1 to be a valid callback, function‘
   wc_simple_product_badge_style’ not found or invalid function name in /home/philrisk/
   public_html/dev/wp-includes/plugin.php on line 525
 * [https://wordpress.org/plugins/wc-simple-product-badge/](https://wordpress.org/plugins/wc-simple-product-badge/)

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

 *  Plugin Author [Mike Oberdick](https://wordpress.org/support/users/mike_oberdick/)
 * (@mike_oberdick)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-in-code-10/#post-7222076)
 * hmmm…the function is actually ‘wc_simple_product_badge_stylesheet’ so I’m not
   sure why it’s looking for ‘wc_simple_product_badge_style’. That would be why 
   it isn’t being found. Did you go into the code of the ‘wc-simple-product-badge.
   php’ file and make changes?
 *  Thread Starter [philrisk](https://wordpress.org/support/users/philrisk/)
 * (@philrisk)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-in-code-10/#post-7222078)
 * No I just downloaded it and activated it.
 *  Plugin Author [Mike Oberdick](https://wordpress.org/support/users/mike_oberdick/)
 * (@mike_oberdick)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-in-code-10/#post-7222081)
 * I also see that it’s looking in a file called ‘plugin.php’ and the name of the
   plugin file is ‘wc-simple-product-badge.php’. When you go into the WordPress 
   dashboard is it showing as an installed plugin? Is it activated? Do you see the
   input fields for badge title, etc. in your WooCommerce product details?
 *  Thread Starter [philrisk](https://wordpress.org/support/users/philrisk/)
 * (@philrisk)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-in-code-10/#post-7222083)
 * Yes it all appears in the backend ok when activated. You just get that on the
   frontend.
 *  Plugin Author [Mike Oberdick](https://wordpress.org/support/users/mike_oberdick/)
 * (@mike_oberdick)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-in-code-10/#post-7222095)
 * ok…let’s try to enqueue the style for it directly in your functions.php. Are 
   you comfortable editing that file? If not, please do not attempt as it could 
   cause issues with your site which will need to be fixed by accessing your site
   through FTP.
 * Assuming that the plugin is installed in the ‘wp-content/plugins/’ directory 
   the following code will enqueue the stylesheet. Add this to the end of your functions.
   php file.
 * `wp_enqueue_style( 'wc-simple-product-badge-style', plugins_url( 'wc-simple-product-
   badge/css/style.css' ) );`
 *  Plugin Author [Mike Oberdick](https://wordpress.org/support/users/mike_oberdick/)
 * (@mike_oberdick)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-in-code-10/#post-7222160)
 * Sorry about the issue…I updated the plugin to version 1.1 which includes the 
   inclusion of a plugin directory constant which allows for the use of an absolute
   path to the plugin file. This will allow it to work on WordPress MU and is a 
   best practice. Thanks for pointing this out for me. I hope that you will update
   and give it a shot! Thanks.

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

The topic ‘Error in code’ is closed to new replies.

 * ![](https://ps.w.org/wc-simple-product-badge/assets/icon-128x128.png?rev=1367981)
 * [WC Simple Product Badge](https://wordpress.org/plugins/wc-simple-product-badge/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-simple-product-badge/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-simple-product-badge/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-simple-product-badge/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-simple-product-badge/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-simple-product-badge/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Mike Oberdick](https://wordpress.org/support/users/mike_oberdick/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/error-in-code-10/#post-7222160)
 * Status: resolved