extension_builder icon indicating copy to clipboard operation
extension_builder copied to clipboard

PHP 8: Extension cannot be saved: overwriteSettings

Open franzholz opened this issue 2 years ago • 5 comments

When I use TYPO3 11.5.7 and PHP 8.0.15 and I click to save a newly created extension, then this fails in a warning:

Extension could not be saved: PHP Warning: Undefined array key "overwriteSettings" in /var/www/html/typo3conf/ext/extension_builder/Classes/Service/RoundTrip.php line 1024

franzholz avatar Feb 26 '22 12:02 franzholz

If I fix the above error, then I get more errors.

Extension could not be saved: PHP Warning: Undefined array key 500 in /var/www/html/typo3conf/ext/extension_builder/Classes/Controller/BuilderModuleController.php line 619

franzholz avatar Feb 26 '22 12:02 franzholz

https://github.com/FriendsOfTYPO3/extension_builder/pull/578

If I fix the above error, then it still fails.

Extension could not be saved: Could not create directory "/var/www/html/var/tx_extensionbuilder/backups/"!

https://github.com/FriendsOfTYPO3/extension_builder/pull/579

franzholz avatar Feb 26 '22 12:02 franzholz

These undefined array index warnings in PHP8 should be fixed fast. As it stands now, this extension is worthless in PHP8 environment...

benwick avatar Jun 10 '22 07:06 benwick

@franzholz the Bug #579 has nothing to do with PHP 8. Use composer and the error will be gone or disable the backup feature.

simonschaufi avatar Jun 10 '22 08:06 simonschaufi

@benwick would you please create a pull request and provide a fix? This project is not a one man show. Everybody can contribute! Unfortunately there is no budget from the association this year which means every contribution must be voluntary.

simonschaufi avatar Jun 10 '22 08:06 simonschaufi

This issue is fixed in version 11.0.3.

franzholz avatar Sep 08 '22 16:09 franzholz