Immediately after clicking "Add term", I get a Postgres error:

PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "_autocreate" LINE 4: WHERE (tid IN ('_autocreate')) ^: SELECT t.tid AS tid, t.uuid AS uuid FROM {taxonomy_term_data} t WHERE (tid IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => _autocreate ) in entity_get_uuid_by_id() (line 421 of /vol/devcms/sites/all/modules/uuid/uuid.entity.inc).

No term can be added to the taxonomy. Disabling tvi temporarily helps - new terms can be added, and are displayed nicely using the view after re-enabling.

The issue has similarities to #2231751: PHP error when creating new taxonomy vocab w/TVI installed, in that "_autocreate" is set in a SQL query where numerical ids are expected.

Comments

jneubert’s picture

A core taxonomy issue #1140188: Fatal errors during or after adding default values for autocomplete widgets also deals with "autocreate". ("autocreate", instead of "_autocreate", seems to be the value used in taxonomy module.) Anyway, the scenarios in which the error occurs look different.

inversed’s picture

kevinquillen’s picture

This _should_ address the issue:

#2231751: PHP error when creating new taxonomy vocab w/TVI installed

Please reopen if it persists.

kevinquillen’s picture

Version: 7.x-1.0-beta4 » 7.x-1.x-dev
Status: Active » Fixed
kevinquillen’s picture

Status: Fixed » Closed (fixed)

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