Title: Undefined variable: term_id; csv_importer.php line 339
Last modified: August 21, 2016

---

# Undefined variable: term_id; csv_importer.php line 339

 *  Resolved [Michael](https://wordpress.org/support/users/mixe/)
 * (@mixe)
 * [13 years ago](https://wordpress.org/support/topic/undefined-variable-term_id-csv_importerphp-line-339/)
 * I am using WordPress 3.5.1 with WP_DEBUG turned on. Also, I’m using csv-importer
   to import into custom types and custom taxonomies.
 * The importing works fine, but I get an error over and over. The error is:
 * `Notice: Undefined variable: term_id in /foo/bar/wordpress/wp-content/plugins/
   csv-importer/csv_importer.php on line 339`
 * Again, the importing appears to work. The error appears to happen in the function“
   create_or_get_categories”. When I am importing, I am not importing to any categories,
   if that helps any.
 * Anyway, I just wanted to let you know I am seeing this error. Thanks!
 * [http://wordpress.org/extend/plugins/csv-importer/](http://wordpress.org/extend/plugins/csv-importer/)

The topic ‘Undefined variable: term_id; csv_importer.php line 339’ is closed to 
new replies.

 * ![](https://ps.w.org/csv-importer/assets/icon-256x256.png?rev=3039593)
 * [CSV Importer](https://wordpress.org/plugins/csv-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/csv-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/csv-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/csv-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/csv-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/csv-importer/reviews/)

## Tags

 * [notice](https://wordpress.org/support/topic-tag/notice/)
 * [term_id](https://wordpress.org/support/topic-tag/term_id/)

 * 0 replies
 * 1 participant
 * Last reply from: [Michael](https://wordpress.org/support/users/mixe/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/undefined-variable-term_id-csv_importerphp-line-339/)
 * Status: resolved