neos-development-collection
neos-development-collection copied to clipboard
BUG Reload content in raw content mode is broken
Hey Neos team, I am checking out Neos for a project and am trying to understand the demo/example site.
Seems like going through the docker flow: https://docs.neos.io/guide/installation-development-setup/docker-and-docker-compose-setup
Will result in a demo page where you cannot create new Text nodes directly within the Main content area, although they are used in a few places without being contained within a column content wrapper.
Trying to create a new Text node within a column content will result in an error:
Neos\Neos\Fusion\Helper\ArrayHelper::sortByPropertyPath(): Argument neos/Neos.Demo#1 ($set) must be of type array, null given - Check the logs for details
The container logs just show accepted connections, so I am not quite sure where Neos is logging to for the detailed error description.
Found the logs :) neos-exception.txt
Thanks for attaching the log. It seems youre using the newer-ish raw content mode of Neos in the Ui rather than the 'normal' edit mode.
And this line:
https://github.com/neos/neos-development-collection/blob/f15a8c02475a1c1b624c3ff8b386e655903f3922/Neos.Neos/Resources/Private/Fusion/RawContent/NodeProperties.fusion#L4
Causes an error as node.nodeType.properties seems to be NULL.
I had this error on my todo stash - at least for the upcoming Neos version 9 which is still in beta.
Or are you using Neos 8 and its also a problem there?
I am a total Neos Noob, I just followed the docker example and ended up with: UI version: 8.3.11
Checking out Neos 9 is next on the todo list.
Good to hear a fix is already on it's way!
(Also: dang you guys are fast responding - here and in slack)
I had a look into this and it is related somehow to OutOfBandRendering. A full page reload works fine.
For some reason, during OutOfBandRendering there is no node in the context, which causes issues in different places.
- https://github.com/neos/neos-development-collection/blob/adb6713f1475bc7153f05c9268291fa1b3b39ca2/Neos.Neos/Resources/Private/Fusion/RawContent/NodeProperties.fusion#L4
- https://github.com/neos/neos-development-collection/blob/adb6713f1475bc7153f05c9268291fa1b3b39ca2/Neos.Neos/Resources/Private/Fusion/RawContent/NodeChildren.fusion#L3
Tested with Neos 8.3 latest dev
Thanks @dlubitz in that case there are two bugs :D one for Neos 8.3 (that i didnt know) and another for 9.0 :D