extension_builder icon indicating copy to clipboard operation
extension_builder copied to clipboard

[BUG] 🐛 Error saving relations Typo 12.4

Open sevensix opened this issue 1 year ago • 3 comments

When i create a relation and save the extension, i get this error and the changes are not saved (no relations were saved inside the model.php e.g.)

when i remove the relation, i can save without eror.

Typo3 12.4.11 Extension_builder 12.0.0-beta.1 PHP 8.2 ############## Successfull saved but ...

... Something went wrong on server side

{"error":"PHP Warning: Undefined array key "excludeField" in [SERVERPATH] /typo3conf/ext/extension_builder/Classes/Service/ObjectSchemaBuilder.php line 165"} ###################

sevensix avatar Mar 04 '24 12:03 sevensix

info: i can save the relations when i am using Extension_builder 12.0.0-alpha.5

sevensix avatar Mar 04 '24 19:03 sevensix

with the branch (not Tag !!!) dev-typo3-12-reactjs this issue never seems to occur, so I suppose it's not relevant anymore.

DavidBruchmann avatar Mar 29 '24 13:03 DavidBruchmann

Typo3 v12.4.14 (inside ddev docker container with "settings > debug settings: debug") Extension_builder 12.0.0-beta.2 PHP 8.2.15

########### I got the same error. Opening an existing extension (originaly build with extension builder v12 beta2) and got the error on save after not changing anything. Even if I change something the files are not updated. So it isn't "Successfull saved but ..." and a breaking for me at the moment.

Successfull saved but ... {"error":"PHP Warning: Undefined array key \"excludeField\" in /var/www/html/vendor/friendsoftypo3/extension-builder/Classes/Service/ObjectSchemaBuilder.php line 165"} ###########

Edit: after switching to "debug settings: live" everything works because the php warnings are supressed

rolf-thomas avatar Jun 26 '24 08:06 rolf-thomas