WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Warning: call_user_func_array() [function.call-user-func-array] (8 posts)

  1. gruffalos
    Member
    Posted 5 months ago #

    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/

  2. MikesDesign
    Member
    Posted 5 months ago #

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

    It refers to this piece of code...

    * {@source 13 1}

  3. MikesDesign
    Member
    Posted 5 months ago #

    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/

  4. gruffalos
    Member
    Posted 5 months ago #

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

  5. MikesDesign
    Member
    Posted 5 months ago #

    Your welcome and gl with your webshop.

  6. groundfalling
    Member
    Posted 4 months ago #

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

  7. groundfalling
    Member
    Posted 4 months ago #

    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

  8. Ashok
    WPMU DEV Support Staff
    Posted 3 months ago #

    Try adding this line in functions.php?

    add_filter( 'loop_end', 'woocommerce_reset_loop' );

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.