Title: Warning: call_user_func_array() [function.call-user-func-array]
Last modified: August 21, 2016

---

# Warning: call_user_func_array() [function.call-user-func-array]

 *  [gruffalos](https://wordpress.org/support/users/gruffalos/)
 * (@gruffalos)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-functioncall-user-func-array-7/)
 * I updated to 2.1.0 My theme is wordpress Twenty fourteen. It isn’t live yet (
   maintenance mode). I get this error message at the top of all the admin pages:
 *     ```
       Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'wc_setup_product_data' was given in /home/MYWEBOSTING/public_html/MYURL.co.uk/wp-includes/plugin.php on line 507
   
       Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'woocommerce_reset_loop' was given in /home/MYWEBHOSTING/public_html/MYURL.co.uk/wp-includes/plugin.php on line 507
       ```
   
 * Line 507 says
 * `call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));`
 * I have no idea what this means or how to fix it, does anyone else?
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

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

 *  [MikesDesign](https://wordpress.org/support/users/mikesdesign/)
 * (@mikesdesign)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-functioncall-user-func-array-7/#post-4597751)
 * Got the same problem… not sure yet how to fix it.
 * It refers to this piece of code…
 *  * {@source 13 1}
 *  [MikesDesign](https://wordpress.org/support/users/mikesdesign/)
 * (@mikesdesign)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-functioncall-user-func-array-7/#post-4597761)
 * I removed woocommerce 2.1 and installed 2.0.20 again. Now it works again, only
   now i have to change all the settings again….
 * If you want to do the same…Here you can find old version.
    [http://wordpress.org/plugins/woocommerce/developers/](http://wordpress.org/plugins/woocommerce/developers/)
 *  Thread Starter [gruffalos](https://wordpress.org/support/users/gruffalos/)
 * (@gruffalos)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-functioncall-user-func-array-7/#post-4597778)
 * Thanks so much Mike! I will install 2.0.20 again, much appreciated.
 *  [MikesDesign](https://wordpress.org/support/users/mikesdesign/)
 * (@mikesdesign)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-functioncall-user-func-array-7/#post-4597837)
 * Your welcome and gl with your webshop.
 *  [groundfalling](https://wordpress.org/support/users/groundfalling/)
 * (@groundfalling)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-functioncall-user-func-array-7/#post-4598027)
 * I got the same issue after updating and i tried reverting back to previous version
   but still same error
 *  [groundfalling](https://wordpress.org/support/users/groundfalling/)
 * (@groundfalling)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-functioncall-user-func-array-7/#post-4598028)
 * reverting back to previous version does not seem to help since the database is
   already updated.
    With these warnings showing up it does not even update to latest
   version so i had to update to 2.1.3 through ftp but the warnings are still there.
   Can someone please share how to remove these warnings?
 * Warning: call_user_func_array() [function.call-user-func-array]: First argument
   is expected to be a valid callback, ‘wc_setup_product_data’ was given in /home1/
   harris/public_html/mysite/wp-includes/plugin.php on line 507
 * Warning: call_user_func_array() [function.call-user-func-array]: First argument
   is expected to be a valid callback, ‘woocommerce_reset_loop’ was given in /home1/
   harris/public_html/mysite/wp-includes/plugin.php on line 507
 *  [Ashok](https://wordpress.org/support/users/bappidgreat/)
 * (@bappidgreat)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-functioncall-user-func-array-7/#post-4598055)
 * Try adding this line in functions.php?
 *     ```
       add_filter( 'loop_end', 'woocommerce_reset_loop' );
       ```
   

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

The topic ‘Warning: call_user_func_array() [function.call-user-func-array]’ is closed
to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [Ashok](https://wordpress.org/support/users/bappidgreat/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-functioncall-user-func-array-7/#post-4598055)
 * Status: not resolved