Closed (duplicate)
Project:
Taxonomy CSV import/export
Version:
7.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2011 at 17:25 UTC
Updated:
22 Aug 2011 at 09:53 UTC
Trying to import taxonomy terms I get this error:
Column not found: 1054 Unknown column 'los_d7_t.vid' in 'where clause': SELECT t.tid FROM {taxonomy_term_data} t INNER JOIN {taxonomy_term_hierarchy} h ON t.tid = h.tid WHERE :name LIKE LOWER(t.name) AND {t.vid} = :vid ORDER BY {t.tid} ASC LIMIT 1; Array ( [:name] => hotel [:vid] => 3 ) in taxonomy_csv_term_find() (line 92 in /var/www/omissis/sites/all/modules/taxonomy_csv/taxonomy_csv.term.api.inc).
The problem is actually at lines 81, 86 and 90. Columns names shouldn't be put into curly brackets.
Removing curly brackets works fine for me.
Comments
Comment #1
holdmann commentedTo fixing this stuff it's necessary to remove braces in specified lines.
This problem arises when $databases['default']['default']['prefix'] variable is defined.
before:
after:
Comment #2
Daniel_KM commentedHi,
Thanks for your patch. This issue is a duplicate of this one. I've just committed it.
Sincerely,
Daniel Berthereau
Infodoc & knowledge management