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

SocialNicheGuru’s picture

und is also LANGUAGE_NONE

robertdbailey’s picture

sorry 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!

SocialNicheGuru’s picture

I just went to view a page. No form.

banoodle’s picture

I 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

jbhovik’s picture

@SocialNicheGuru,

Is this still an issue for you? Are you still using version 7.00?