Gernott / mask

TYPO3 Extension Mask
https://www.facebook.com/typo3mask
GNU General Public License v2.0
130 stars 86 forks source link

Error when trying to uninstall site package: Expected content_elements_folder to be a correct file system path. The value "" was given. #637

Open matin73 opened 3 months ago

matin73 commented 3 months ago

I have installed latest TYPO3 12 and Mask via composer. If I want to uninstall my site package via SSH command:

composer remove xx-xx/xxx-theme php vendor/bin/typo3 extension:setup

I get following error: Uncaught TYPO3 Exception #1639218892: Expected content_elements_folder to be a correct file system path. The value "" was given. thrown in file /usr/www/users/xx/xx/vendor/mask/mask/Classes/Loader/JsonSplitLoader.php in line 106

But there is imho correct setting: 'content_elements_folder' => 'EXT:xxx_theme/Configuration/Mask/ContentElements',

Mask is also working correct in frontend. All content elements are shown in frontend before trying to remove site package.

Martin

nhovratov commented 1 month ago

Hey, sorry for the late answer. I can reproduce it. However, this is correct behavior, as a composer remove removes your extension from the file system, so Mask can't load it anymore. The error message could be better for sure.

The correct way to do it, is to reset the Mask configuration, and after that remove the extension.