Gernott / mask

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

Broken Mask Configuration Backend #604

Closed fallefreundig closed 1 year ago

fallefreundig commented 1 year ago

A couple weeks ago I’ve upgraded a TYPO3 10 installation to TYPO3 11 and as part of this maintenance I’ve upgraded Mask to version 8, too. There was not a task in the Upgrade Wizard like this: https://docs.typo3.org/p/mask/mask/main/en-us/Upgrade/Index.html#from-v8-0-x-or-lower

The frontend was doing fine as well as adding or editing any of the existing Mask content elements. Today, I wanted to edit a Mask module, but the view is broken. The saving button is also not working, since it’s just showing the loading animation forever.

Bildschirmfoto 2023-11-10 um 14 24 31 Bildschirmfoto 2023-11-10 um 14 24 46

Is my problem related to the Upgrade Wizard? I’m not even sure if the bug is related to the recent upgrade, since I haven’t changed anything within the Mask configuration for a longer time.

I’m more than happy for any suggestions or help!

nhovratov commented 1 year ago

Hi, first of all you should download the german language pack for Mask, as there are missing labels everywhere. Some questions:

fallefreundig commented 1 year ago

Thank you so much for your super quick response. :)

OLD_mask.json LATEST_mask.json

nhovratov commented 1 year ago

works without problems on my development environment:

Screenshot 2023-11-10 at 15-04-53 Mask DEV TYPO3 CMS 11 5 32 Screenshot 2023-11-10 at 15-04-47 Mask DEV TYPO3 CMS 11 5 32

nhovratov commented 1 year ago

There is something else ill on your installation. Are there any console errors which might hint something?

fallefreundig commented 1 year ago

Well, thank you. Could it be related to this migration task, I’ve mentioned earlier?

There is only an error when clicking the Save-Button:

TypeError: Cannot read properties of undefined (reading 'iconPicker') at ii.getPostElement (AmdBundle.js?bust=1699626849:20:27543) at ii.save (AmdBundle.js?bust=1699626849:20:26478) at on (AmdBundle.js?bust=1699626849:7:19353) at HTMLButtonElement.n (AmdBundle.js?bust=1699626849:7:9284) at Ar.o._wrapper (AmdBundle.js?bust=1699626849:7:53238)

nhovratov commented 1 year ago

Well, thank you. Could it be related to this migration task, I’ve mentioned earlier?

I don't think it has something to do with the migration task, as it works in my installation without any migration.

Sorry, I've never encountered this error so far. Does anything else work fine in your TYPO3 instance? The Mask backend seems not to work at all. But it's unrelated to the json file. Why are all labels missing? This is not normal.

fallefreundig commented 1 year ago

Everything else is working perfectly. No errors, no issues adding new content, nothing. Re-installing Mask didn’t help either, of course.

I guess, for now the website is just not scalable anymore. :-(

fallefreundig commented 1 year ago

Thank you anyway very much for your effort!

nhovratov commented 1 year ago

I wish I could help somehow. As it is a non-profit site, I could offer you free support. You can contact me on Slack or via E-mail (in german) if you want.

nhovratov commented 1 year ago

Resolved.

The website in question defined:

module.tx_mask {
    view {
        templateRootPaths.0 = fileadmin/templates/mask/Resources/Private/Backend/Templates/
        partialRootPaths.0 = fileadmin/templates/mask/Resources/Private/Backend/Partials/
        layoutRootPaths.0 = fileadmin/templates/mask/Resources/Private/Backend/Layouts/
    }
}

which broke the Mask backend module. Removing this fixed the issue.