Support » Plugin: WooCommerce » Warning: call_user_func_array() [function.call-user-func-array]

  • gruffalos

    (@gruffalos)


    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/

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

    (@mikesdesign)

    Got the same problem… not sure yet how to fix it.

    It refers to this piece of code…

    * {@source 13 1}

    MikesDesign

    (@mikesdesign)

    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/

    gruffalos

    (@gruffalos)

    Thanks so much Mike! I will install 2.0.20 again, much appreciated.

    MikesDesign

    (@mikesdesign)

    Your welcome and gl with your webshop.

    groundfalling

    (@groundfalling)

    I got the same issue after updating and i tried reverting back to previous version but still same error

    groundfalling

    (@groundfalling)

    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

    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.