When trying to edit simple text content or properties in the backend, the publish XHR fails with code 500. I managed to hunt down the exact line that fails. It is in the generated file
“/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_ContentRepository_Domain_Model_Workspace.php”:
protected function moveNodeVariantsInOtherWorkspaces($nodeIdentifier, $targetPath, Workspace $sourceWorkspace, Workspace $targetWorkspace): void
{
$nodeDataVariants = $this->nodeDataRepository->findByNodeIdentifier($nodeIdentifier);
/** @var NodeData $nodeDataVariant */
foreach ($nodeDataVariants as $nodeDataVariant) {
if (
$nodeDataVariant->getWorkspace()->getBaseWorkspace() === null ||
$nodeDataVariant->getPath() === $targetPath ||
$nodeDataVariant->getWorkspace() === $sourceWorkspace ||
$nodeDataVariant->getWorkspace() === $targetWorkspace
) {
continue;
}
$shadowNodeData = $this->nodeDataRepository->findOneByMovedTo($nodeDataVariant);
if ($shadowNodeData === null) {
$nodeDataVariant->setPath($targetPath);
}
}
}
The line $nodeDataVariant->getWorkspace()->getBaseWorkspace() === null
fails, since the workspace of the node data is null.
This issue is too deep within the Neos framework for me to solve it by myself. We had a little back and forth with node dimensions, since we didn’t know one needs to specify one in Settings.yaml for a custom site. However, this issue is about workspaces so I don’t think that’s the cause. Has any of you an idea what could be the issue?
Neos Version: 8.3 (Development context)