-
-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling of Supertypes: Object instead of expected strings #2460
Comments
@lisakampert i have two questions:
|
@lisakampert the stacktrace in the logged exception logs would help aswell. I am not sure how exactly |
I added the
Yes, it works with version 4.0 and 4.1, but not with 4.2 and 4.3 |
Can you disable the code that is triggered by the |
Description
I think I found a bug in the Neos core, while modifying a custom CreationHandler 🙈
And I think, it came with this bugfix:
eae49fa
This might explain, why the CreationHandler works with Neos version 4.0, but not with an updated version 4.3.
The
array_key_exists
in line 322 expects a string as first parameter, but in our case, there is not given the NodeType name as string, but even the whole NodeType-element.I think, the error is in the NodeDataRepository: https://github.com/neos/neos-development-collection/blob/4.3.0/Neos.ContentRepository/Classes/Domain/Repository/NodeDataRepository.php#L1136 or more specific in the NodeTypeManager: https://github.com/neos/neos-development-collection/blob/4.3.0/Neos.ContentRepository/Classes/Domain/Service/NodeTypeManager.php. Here, the returned array contains NodeTypes, not only the NodeType names as string.
Code Example
createNode
-Method in the for-loop is the starting point and won't be executed correctly.Expected behavior
Node created sucessfully.
Actual behavior
Node is not created. Backend shows an error message:
array_key_exists expects string as first parameter
Any further more information in the logs.Affected Versions
Neos: 4.3.0 (works in 4.1.x)
Flow: 5.3.0
The text was updated successfully, but these errors were encountered: