Support » Plugin: WooCommerce » Please help me……..

  • Hi guys,

    I did an update last night to the new 3.6 and I’m currently using woocommerce too. I have now got an error

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘woocommerce_price_filter_init’ not found or invalid function name in /var/sites/c/ on line 406

    I have read through many other threads regarding this error and one thread suggested I deactivate all plugins and the reactivate until I find which plug in is causing the problem. I deactivated all plugins and it did go but now I have lost the cardsave payment details and the site is all muddled with no categories just the sub categories.

    Please can someone help as this is my business and I’m losing money!!


Viewing 4 replies - 1 through 4 (of 4 total)
  • First of all, when doing an upgrade, make a backup, especcialy if you are running a business.
    2. are the first problem solved? Did you find your plugin that was causing the trouble?
    3. can you give the link to your site?

    Hi, Thank you for your reply.

    In future I will make a back up. I’m not great with computers as you can prob tell. Can you recommend the best and easiest way to make a backup.

    No the plugin issue hasn’t been sorted. I had the original developer who hosts the site restore it back by 24 hours.

    That should be a line of code below

    add_action('init', 'woocommerce_price_filter_init')

    inside one of your theme files. Find that file.

    This is a duplicate call and is what has been causing the error. Comment it out or delete that row as it is a duplicated call.


    Thank you for your info. I have since reverted back to the old site by restoring the site but I still have many plugins including the wordpress site which needs updating. I have had a look for

    add_action(‘init’, ‘woocommerce_price_filter_init’)

    And found it here:

    add_action( ‘woocommerce_before_main_content’ , ‘yiw_woocommerce_ordering’ );

    // add the sale icon inside the product detail image container
    remove_action( ‘woocommerce_before_single_product_summary’, ‘woocommerce_show_product_sale_flash’, 10);
    add_action( ‘woocommerce_product_thumbnails’, ‘woocommerce_show_product_sale_flash’);

    // active the price filter
    add_action(‘init’, ‘woocommerce_price_filter_init’);
    add_filter(‘loop_shop_post_in’, ‘woocommerce_price_filter’);

    // add body class
    add_filter( ‘body_class’, create_function( ‘$classes’, ‘$classes[] = “shop-“.yiw_get_option( “shop_products_style”, “ribbon” ); return $classes;’ ) );

    Obviously I don’t have a problem with the site right now but i don’t want to mess it up again with updating all the plugins.


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Please help me……..’ is closed to new replies.