WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Please help me........ (5 posts)

  1. conquestcarbon
    Member
    Posted 11 months ago #

    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/carbonworlduk.co.uk/public_html/wp-includes/plugin.php 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!!

    Thanks

    http://wordpress.org/plugins/woocommerce/

  2. Sofusalbertsen
    Member
    Posted 11 months ago #

    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?

  3. conquestcarbon
    Member
    Posted 11 months ago #

    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.

    http://www.conquestcarbon.co.uk/

  4. terrytsang
    Member
    Posted 11 months ago #

    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.

  5. conquestcarbon
    Member
    Posted 11 months ago #

    Hi,

    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.

    Regards

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.