Error because of language configuration

If I want to configure two languages in the Configuration/Settings.yaml I always get an error. I used the example I found in the official documentation.

ContentRepository:
    contentDimensions:
      'language':
        label: 'Language'
        icon: 'icon-language'
        default: 'en'
        defaultPreset: 'de'
        presets:
          'de':
            label: 'Deutsch'
            values: ['de']
            uriSegment: 'deutsch'
          'en':
            label: 'English'
            values: ['en', 'de']
            uriSegment: 'english'

These are the error messages I get in the backend and frontend:

No operation which satisfies the runtime constraints found for "parent".

Argument 1 passed to Neos\Neos\View\FusionView_Original::getFusionRuntime() must implement interface Neos\ContentRepository\Domain\Model\NodeInterface, null given, called in /Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_Neos_View_FusionView.php on line 82

It seems something is wrong but I have no idea what it could be.

Hello Bernhard

Please try another yaml syntax vor Array values.

`ContentRepository:
contentDimensions:
  'language':
    label: 'Language'
    icon: 'icon-language'
    default: 'en'
    defaultPreset: 'de'
    presets:
      'de':
        label: 'Deutsch'
        values: 
          - de
        uriSegment: 'deutsch'
      'en':
        label: 'English'
        values:
          - de
          - en
        uriSegment: 'english'`

I don’t know it this a copy-and-paste error, but the key ContentRepository need to be under Neos

For example, this is how my config look like:

Neos:
  ContentRepository:
    contentDimensions:
      language:
        default: de
        defaultPreset: de
        label: Sprache
        icon: icon-language
        presets:
          de:
            label: Deutsch
            values:
              - de
            uriSegment: de
          en:
            label: English
            values:
              - en
              - de
            uriSegment: en

Another question: Do you have already content on the site? (Even just the homepage) If yes, you need to migrate the content:

./flow node:migrate 20150716212459

See here for more infos:
http://neos.readthedocs.io/en/stable/CreatingASite/ContentDimensions.html#migration-of-existing-content

1 Like

If you write an array

values: ['en','de']

or

values:
  - en
  - de

this should make no difference. Both is an array…

Thank you Kathleen and Jon for your examples!

I tried both but I still get errors. I replaced the content of my Settings.yaml with the examples starting with “Neos:” on the first line and with correct indents. I don’t think it can be a copy&paste problem. Also the migrate or cache flush commands did not help.

With the example config from Jon I had this error:

Could not convert target type "Neos\ContentRepository\Domain\Model\NodeInterface": Runtime expression "flow_aop_expression_5e14a19ba51fbc58960ecc0a5c1081f1" does not exist.

Then I tried with the config example from Kathleen and I had only this messages anymore:

Call to a member function getContext() on null

Validation failed while trying to call Neos\Neos\Ui\Controller\BackendController->indexAction().

Also strange is that I get this error message after the command “node:repair”:
Could not find any site nodes in "/sites" root node

Btw. even if I use the same config example as from the Settings.yaml in the working Demo Site Package I got the same errors.

@bernhard did you run the core migration to add the dimension defaults to your existing content?

See here: http://neos.readthedocs.io/en/stable/CreatingASite/ContentDimensions.html#migration-of-existing-content

@beheist: Yes I did run this command after I changed the config:
./flow node:migrate 20150716212459

Can you paste your whole settings to a gist or share a repo?

Thanks Jon. Here is a gist of my config files Settings.yaml and NodeTypes.yaml. Are there other important setting files?

  • Remove the --- (Line 4) from NodeTypes.yaml
  • It would be better not to use the Neos.NodeTypes packages

I removed everything I had in the file NodeTypes.yaml but I get again the error message:
No operation which satisfies the runtime constraints found for "parent".

Now I tried the following. After a fresh installation of Neos with the command
composer create-project neos/neos-base-distribution neos
I copied the config example for translations from the documentation into my Settings.yaml file and run the node:migrate command. After that I got again the error:
Validation failed while trying to call Neos\Neos\Ui\Controller\BackendController->indexAction().

Is it possible for you to put your whole project into a Repo? If you don’t want to share it with everyone you can invite me to it: me@jonnitto.ch

1 Like

The problem was based on the wrong setup.
We change the setup based on Neos project mono repositories

1 Like

I have the same problem. Could you explain, what the problem was? The “wrong setup” was not enough hint for me to solve it myself.