• Resolved Hache_raw

    (@hache_raw)


    If you put a trailing comma at the end of the list, you get this error.

    Example:

    
    category1,category2,
    

    Error:

    
    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('', '-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_once('C in C:\xampp\htdocs\wordpress\wp-content\plugins\bulk-woocommerce-category-creator\bulk-wc-category-creator.php on line 313
    
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error when trailing comma’ is closed to new replies.