Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When i tired import contetnt it write:
"title or langcode is missing in CSV file. Please add these fields and import again"
It works with php 5.6?
Comment | File | Size | Author |
---|---|---|---|
#12 | article.csv_.txt | 142 bytes | Kwadz |
Comments
Comment #2
dhayanandan_k CreditAttribution: dhayanandan_k as a volunteer and commented@VasyOK.. yes it is working.. please include title and langcode columns in csv file. These are mandatory.. Try again please
Comment #3
dhayanandan_k CreditAttribution: dhayanandan_k as a volunteer and commentedComment #4
VasyOK CreditAttribution: VasyOK commentedThanks! Why langcode is requered?
Sory, not works. Only titles are imported
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer commentedThe .csv I had to work with had no langcode column and I wouldn't be allowed to add one for the specific task I was undergoing. I found removing the “langcode” parts of the code in the module on worked fine when it came to generating nodes. I was using core 8.3.7
Comment #6
M.E.B. CreditAttribution: M.E.B. commentedWhen using the `Content_Import_Sample.csv` for the article content type you get the reported error because the sample CSV file is missing a langcode column. Adding this column and an appropriate language code like 'en' as the data allows for successful import of the sample file. Maybe update the sample CSV file to include a langcode column?
Comment #7
djilymbow01 CreditAttribution: djilymbow01 commentedtitle or langcode is missing in CSV file. Please add these fields and import again how to solve this problem ???
Comment #8
colinstables CreditAttribution: colinstables commentedHi, Can some one please help I'm pulling my hair out here. I have used the example file and my own CSV file and still get the error message: "title or langcode is missing in CSV file. Please add these fields and import again"
Fixed it was the delimiter :)
Comment #9
colinstables CreditAttribution: colinstables commentedComment #10
StephanieFuda CreditAttribution: StephanieFuda as a volunteer commentedI'm also having this issue - The sample file I downloaded has both title and langcode columns but the file will not load.
I'm on Drupal 8.5.6 and php 7.27. Is there anything else I should try?
Thanks!
Comment #11
dejahvuuu CreditAttribution: dejahvuuu as a volunteer commentedHi,
I also had the problem and it worked for me:
based on the answer of this issue:
https://www.drupal.org/project/contentimport/issues/2940753
Place the following in my csv file downloaded from the example file that the module generates:
File CSV:
-------------------------------------------------- ----------------------------
title, langcode, promote, field_ciudades, field_direccion
-------------------------------------------------- ----------------------------
,,,,
-------------------------------------------------- ----------------------------
Colombian Optics Éxito América, es, On, cities: Bogotá, Avénida # 68 A- 94
----------------------------------------------------------------------------------
Óptica Colombiana Éxito 80, es, On, cities: Bogotá, Carrera 59 A # 79 - 30
The second column with the empty spaces makes it work
It is a solution
Comment #12
Kwadz CreditAttribution: Kwadz commentedJust took the generated file and added a new line WITH title and langcode. I got the error "title or langcode is missing in CSV file. Please add these fields and import again".
Please find attached the file, there is something wrong.
Using Drupal 8.5.6
Comment #13
drupalnesia CreditAttribution: drupalnesia commentedThis issue happen pn 8.x-3.2. I just try 8.x-4.1 and working file.
The module instruction was wrong:
You don't need to specify Content Type machine name at first row.
Just download sample CSV. Look at my example CSV like this:
title,langcode,promote,body
Anchor,en,0,
Arrow,en,0,
Avery Publishing Group,en,0,
Back Bay Books,en,0,
Bloomsbury,en,0,
Bluebird - Pan Macmillan,en,0,
Broadway Books,en,0,
Clarkson Potter Publishers,en,0
Comment #15
Javier del Pozo CreditAttribution: Javier del Pozo as a volunteer commentedHi, I have drupal 8.6.10
when Idownload a template for a content type, this template include nid,type,uid,status,langcode, and the rest of the elements of my content tipe,
but I down now what info put in this fields, and only register the title when import the cvs to drupal :( I reed all the issues but i cant solve, someone have a issue like this?
sry, my english is not good