[SOLVED] Exception after adding a language dimension

Hi,

I added a language content dimension like described here:

https://docs.neos.io/cms/manual/content-repository/multiple-languages

Now I get this Exception in the frontend:

# An exception was thrown while Neos tried to render your page

Notice: Undefined index: en_US in /home/nils/workspace/zweifreunde/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_Neos_Fusion_DimensionsMenuItemsImplementation.php line 112

`root<Neos.Fusion:Case>/
 documentType<Neos.Fusion:Matcher>/
  element<ZF.Zweifreunde:Page>/
   head<Neos.Fusion:Array>/
    alternateLanguageLinks<Neos.Seo:AlternateLanguageLinks>/
     renderer<Neos.Fusion:Loop>/
      items<Neos.Neos:DimensionsMenuItems>/`

For a full stacktrace, open `Data/Logs/Exceptio`

This is my Settings.yaml:

Neos:
  Neos:
    fusion:
      autoInclude:
        ZF.Zweifreunde: true
  ContentRepository:
    contentDimensions:
      language:
        label: 'Language'
        default: de
        defaultPreset: de
        presets:
          de:
            label: German
            values:
              - de
            uriSegment: ''
          en:
            label: 'English (US)'
            values:
              - en_US
              - de
            uriSegment: 'en'

The content in the Backend is rendered without problems and I can switch between the languages.

I did
./flow flow:cache:flush
and
./flow node:migrate 20150716212459

Can someone help?

Found the error. My Setting.yaml is incorrect.

Index is en but under values it is en_US. Must be consistent.

1 Like