You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CaughtException::fromException(new \RuntimeException(sprintf('Template requires type to be a non abstract NodeType. Got: "%s".', $template->getType()->getValue()), 1686417628976))
93
+
);
94
+
continue;
95
+
}
96
+
97
+
if (!$parentNode->getNodeType()->allowsChildNodeType($nodeType)) {
98
+
$caughtExceptions->add(
99
+
CaughtException::fromException(new \RuntimeException(sprintf('Node type "%s" is not allowed for child nodes of type %s', $template->getType()->getValue(), $parentNode->getNodeType()->getName()), 1686417627173))
100
+
);
101
+
continue;
102
+
}
103
+
104
+
// todo maybe check also explicitly for allowsGrandchildNodeType (we do this currently like below)
Copy file name to clipboardExpand all lines: Tests/Functional/Fixtures/WithEvaluationExceptions.messages.json
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,11 @@
80
80
"severity": "ERROR"
81
81
},
82
82
{
83
-
"message": "NodeConstraintException(Cannot create new node \"illegal\" of Type \"Neos.Neos:Document\" in Node \/sites\/test-site\/homepage\/main\/new-node@live[Flowpack.NodeTemplates:Content.WithEvaluationExceptions], 1400782413)",
83
+
"message": "RuntimeException(Template requires type to be a non abstract NodeType. Got: \"Neos.Neos:Node\"., 1686417628976)",
84
+
"severity": "ERROR"
85
+
},
86
+
{
87
+
"message": "RuntimeException(Node type \"Flowpack.NodeTemplates:Document.Page.Static\" is not allowed for child nodes of type Flowpack.NodeTemplates:Content.WithEvaluationExceptions, 1686417627173)",
0 commit comments