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.
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.
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:
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.
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().