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.
Unsupported language detected: [und]FUNCTION: isSupportedLanguageARGS: ["und"]FILE: /modules/all/lingotek/lib/Drupal/lingotek/Lingotek.php:349
I get the above error in my logs when I edit/add content.
Comments
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedund is also LANGUAGE_NONE
Comment #2
robertdbailey CreditAttribution: robertdbailey at Lingotek commentedsorry for the delay, @SocialNicheGuru. Does this error happen when you load the node form or just when you submit? Also, are you marking the content as language-neutral, or are you assigning a source language to it? Thanks!
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI just went to view a page. No form.
Comment #4
banoodle CreditAttribution: banoodle at Molly Duggan Associates commentedI am seeing this also.
I think it's because for my source language (English), I don't have a "Path prefix language code" set (under /admin/config/regional/language/edit/en).
Because if I set it to 'en' I don't see the errors anymore. But I can't actually do this on the Live site because the client doesn't want to see example.com/en/contact-us etc. (it's gotta be example.com/contact-us). I think this is a pretty typical expectation for the source language.
The lack of the en in the path seems to be what triggers the error. The $drupal_language_code in line 349 is wrongly returning [und] (undefined or language neutral) on my English nodes because they don't have the en in their paths.
What's making that happen and how one would resolve this, are beyond me at this point I'm afraid, but I thought I'd share my findings in case it helps.
Anne
Comment #5
jbhovik CreditAttribution: jbhovik commented@SocialNicheGuru,
Is this still an issue for you? Are you still using version 7.00?