Forum Forum WordPress Theme Kanta – Multipurpose WooCommerce WordPress Theme Woocommerce categories fatal error

  • Author
    Posts
  • #38162

    grawires
    Participant

    Hi!
    Recently bought your theme, but there’s annoying problem with woocommerce categories.
    Everytime when i try to add new one or change name of existing ones i get wordpress error on page …/wp-admin/edit-tags.php. When i turn on wordpress debug mode i can see this message:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function SnsKanta_Woocommerce::snskanta_save_product_cat_custom_meta(), 2 passed in …/public_html/wp-includes/class-wp-hook.php on line 287 and exactly 3 expected in …/public_html/wp-content/themes/snskanta/framework/sns-woocomerce.php:730 Stack trace: #0 …/public_html/wp-includes/class-wp-hook.php(287): SnsKanta_Woocommerce->snskanta_save_product_cat_custom_meta(42, 42) #1 …/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array) #2 …/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 …/public_html/wp-includes/taxonomy.php(3160): do_action(‘edited_product_…’, 42, 42) #4 …/public_html/wp-admin/edit-tags.php(183): wp_update_term(42, ‘product_cat’, Array) #5 {main} thrown in …/public_html/wp-content/themes/snskanta/framework/sns-woocomerce.php on line 730

    I assume that this is theme related problem. Please check it and give me some patch or instructions: i have a lot of categories to rename. Doing it like this will take me ages.
    Another thing is that “Fast edit” in woo categories page doesn’t work, only full edit, which is another inconvenience.

    Best regards, waiting for reply.
    Jakub S.

    PS: When i enter in woo category edit with debug mode on on top i can see:

    Deprecated: Korzystanie z get_woocommerce_term_meta uznawane jest za przestarzałe od wersji 3.6! Zamiast tego użyj get_term_meta. in /public_html/wp-includes/functions.php on line 4773

    Deprecated: Korzystanie z get_woocommerce_term_meta uznawane jest za przestarzałe od wersji 3.6! Zamiast tego użyj get_term_meta. in /public_html/wp-includes/functions.php on line 4773

    Deprecated: Korzystanie z get_woocommerce_term_meta uznawane jest za przestarzałe od wersji 3.6! Zamiast tego użyj get_term_meta. in /public_html/wp-includes/functions.php on line 4773

    Deprecated: Korzystanie z get_woocommerce_term_meta uznawane jest za przestarzałe od wersji 3.6! Zamiast tego użyj get_term_meta. in /public_html/wp-includes/functions.php on line 4773

You must be logged in to reply to this topic. Click here to login or register