PDOException when i18n_taxonomy module not enabled

Created on 28 December 2012, over 12 years ago
Updated 29 July 2025, 3 days ago

The i18n_taxonomy module creates a language column for the taxonomy_term_data table. The code was assuming that column is always there but needs to check if that module is enabled.

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'td.language' in 'field list': SELECT td.tid AS tid, td.vid AS vid, td.name AS name, td.description AS description, td.format AS format, td.weight AS weight, td.language AS language FROM {taxonomy_term_data} td INNER JOIN {taxonomy_index} ti ON td.tid = ti.tid WHERE (td.vid = :db_condition_placeholder_0) AND (ti.nid = :db_condition_placeholder_1) ORDER BY weight ASC; Array ( [:db_condition_placeholder_0] => 1 [:db_condition_placeholder_1] => 5 ) in featured_content_get_node_terms_by_vocabulary() (line 1820 of /Users/kristen/sites/projects/fc7/sites/all/modules/fc7/featured_content.module).
πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024