When a term is saved which is not present in the web taxonomy, after a message "There is no Web Term ID (such as a URL) to identify xyz. You can add one manually from the terms list.", the following warnings are issued:

Notice: Undefined index: tid in taxonomy_field_is_empty() (line 1551 of /var/www/ji/modules/taxonomy/taxonomy.module).
Notice: Undefined index: tid in taxonomy_field_is_empty() (line 1551 of /var/www/ji/modules/taxonomy/taxonomy.module).

(Found by alinouman at #2194577-9: [D7] Web Taxonomy plugin for DBpedia.)

The missing term is not autocreated.

Comments

jneubert’s picture

can be reproduced with drupaldocweb

jneubert’s picture

Intened behaviour is that the term is autocreated.

taxonomy_field_validate() expects $term['tid'] to have the value 'autocreate' for this.

jneubert’s picture

Status: Active » Fixed
jneubert’s picture

Title: Warning: Undefined index: tid in taxonomy_field_is_empty() » Autocreate missing terms does not work
Issue summary: View changes

  • Commit 30a14fe on 7.x-1.x by jneubert:
    Issue #2209549 by jneubert: Set tid to 'autocreate' for new terms
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.