Undefined function wp_insert_category()
This problem in Easy CSV Importer has been experianced by others…
http://wordpress.org/support/topic/wp_createwp_insert_category-undefined-error?replies=5
This one has hit me hard, refund requests have gone through the roof for Easy CSV Importer and I’m pretty much broke. It happens and I will get this fixed but it is a strange problem because wp_insert_category() is a WordPress function. As far as I was concerned it should always be defined.
If you would like a refund or have already requested one but have not got it yet, please be patient. I’m very open and honest, I will do my best to get funds back into my Paypal.
Fatal error: Call to undefined function wp_insert_category() in /var/www/clients/client1/web7/web/wp-content/plugins/easy-csv-importer-2/functions/eci_f_global.php on line 2174”
Category Descriptions
wp_insert category is the only function that allows descriptions to be added with it.
Why is it not defined? Well it seems to be loaded with WordPress before automated events in Easy CSV Importer. From what your all telling me the error happens when your simply trying to change page or are login into your blog.
I may need to use wp_create_category and stop the ability to add descriptions for a version, just to try and get a fix out. Descriptions can be added to the categories by updating them using another function but I may hold of doing that until we get past this issue. It has really hurt my finances over night!
wp_create_category
This is another function, that I have used to create categories but I changed to wp_insert_category for good reason. Either way, with mass post creation there seems to be issues with WordPress. Something to do with the cache. Since using wp_create_category I have re-written the category creation function, maybe using it again will solve this issue. So that is what I will do, a new version will be released very soon and I hope some of you can get some joy our of Easy CSV Importer.
Possible Fix
I found this post on the WordPress forum http://wordpress.org/support/topic/wp_createwp_insert_category-undefined-error?replies=5
Suggesting to use a more direct term approach…
$arg = array('description' => "my description", 'parent' => "cat_ID");
$new_cat_id = wp_insert_term("cat name", "category", $arg);
About to apply this now and release a new version.