extension_builder icon indicating copy to clipboard operation
extension_builder copied to clipboard

🐛 [BUG] Error while saving: Server responded with Status-Code: 500 Statustext: Internal Server Error

Open fixpunkt-systeme opened this issue 3 years ago • 6 comments

Describe the bug An error occurs when saving an extension. Error while saving: Server responded with Status-Code: 500 Statustext: Internal Server Error Resonse:

Oops, an error occurred! Argument 1 passed to EBT\ExtensionBuilder\Service\ExtensionSchemaBuilder::build() must be of the type array, null given, called in C:\xampp\htdocs\git\typo3-musikrat\public\typo3conf\ext\extension_builder\Classes\Service\RoundTrip.php on line 170

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Domain Modelling'
  2. Create an extension
  3. Click on the save button
  4. See error

Expected behavior Save successfull.

Screenshots yes

TYPO3 Version 10.4.32

Extension Builder Version: Git-branch v. 10.0.5

error-extension-builder

fixpunkt-systeme avatar Nov 22 '22 13:11 fixpunkt-systeme

It seem that a first save works, but all following saves doesn´t work anymore.

fixpunkt-systeme avatar Nov 22 '22 14:11 fixpunkt-systeme

Hello @fixpunkt-systeme I cannot reproduce this issue. Can you maybe send me your extension via Slack? You can find me there with the name "treupo".

PKuhlmay avatar Nov 24 '22 16:11 PKuhlmay

I don´t think its the extension itself. I tried 2 extensions. I think its the combination of a windows-system (with XAMPP) and the composer- & git-version of extension_builder

fixpunkt-systeme avatar Nov 24 '22 16:11 fixpunkt-systeme

I will try this with a Windows VM, as I don't have a physical windows computer to test it.

PKuhlmay avatar Nov 30 '22 11:11 PKuhlmay

I got the 500er error shown when I renamed a model name. The detailed message is a bit different then, it says that it can't stringify an object. A workaround is to rename the model in ExtensionBuilder.json and load it new in the extensionBuilder. I'm not sure now if it can also happen if the extension key or vendor is renamed.

DavidBruchmann avatar Mar 16 '23 23:03 DavidBruchmann

And the message from @fixpunkt-systeme looks like s/he left a model name blank perhaps, but usually it's not possible as there is another warning then.
Anyway, the description "Create an extension" is very vague and doesn't give any clue where exactly it could happen.

DavidBruchmann avatar Mar 17 '23 00:03 DavidBruchmann