• Resolved Hache_raw

    (@hache_raw)


    If a category already exists, this error is thrown:

    
    Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in C:\xampp\htdocs\wordpress\wp-content\plugins\bulk-woocommerce-category-creator\bulk-wc-category-creator.php:313
    Stack trace:
    #0 C:\xampp\htdocs\wordpress\wp-content\plugins\bulk-woocommerce-category-creator\bulk-wc-category-creator.php(231): BWCC_Bulk_WooCommerce_Category_Creator::bwcc_create_category('Varios', '-1', '', '')
    #1 C:\xampp\htdocs\wordpress\wp-content\plugins\bulk-woocommerce-category-creator\bulk-wc-category-creator.php(195): BWCC_Bulk_WooCommerce_Category_Creator::bwcc_CreateCategories()
    #2 C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php(288): BWCC_Bulk_WooCommerce_Category_Creator::bwcc_RegisterPluginSettings('')
    #3 C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #4 C:\xampp\htdocs\wordpress\wp-includes\plugin.php(478): WP_Hook->do_action(Array)
    #5 C:\xampp\htdocs\wordpress\wp-admin\admin.php(170): do_action('admin_init')
    #6 C:\xampp\htdocs\wordpress\wp-admin\edit.php(10): require_o in C:\xampp\htdocs\wordpress\wp-content\plugins\bulk-woocommerce-category-creator\bulk-wc-category-creator.php on line 313
    
    • This topic was modified 6 years, 2 months ago by Hache_raw.
    • This topic was modified 6 years, 2 months ago by Hache_raw.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author kartikparmar

    (@kartikparmar)

    Hi @hache_raw

    I have fixed it and released the same in v1.6.

    Please update and check and let me know the result.

    Regards,
    Kartik

    Stef

    (@serafinnyc)

    You should have a notice of which category already exist. Otherwise we’re not going to know.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error when category already exists’ is closed to new replies.