Gernott / mask

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

Repeatingproblem - Nested Children colPos Invalid Value 999 #505

Closed ms-wa closed 2 years ago

ms-wa commented 2 years ago

Hello, i am using TYPO3 11.5.12 with PHP 8.0, when i want to use nested child-Elments with mask it shows the content correct in the front-end. But the backend shows "invalud value 999". What cat i do?

Bildschirmfoto 2022-08-09 um 17 19 49

nhovratov commented 2 years ago

This is strange. Mask adds allows the 999 colPos through a itemsProcFunc: $GLOBALS['TCA']['tt_content']['columns']['colPos']['config']['itemsProcFunc'] = 'MASK\Mask\ItemsProcFuncs\ColPosList->itemsProcFunc';

Can you check in your TCA, if it's maybe overriden by another extension?

ms-wa commented 2 years ago

Youre right, the container-Extension overrides it:

Does have the MASK-Extension problems with b13/container extension? We used it in the past and we had not a problem. I am using container extension v1.6.1

Bildschirmfoto 2022-08-09 um 17 37 59

nhovratov commented 2 years ago

Now I remember there was the same issue a while ago: https://github.com/Gernott/mask/issues/449 I though it was fixed, by adding container to the suggests list, so Mask will be called later. The problem really is, that itemProcFunc can only have one user function. I will investigate further on how this can be solved. Thanks!

nhovratov commented 2 years ago

Are you using legacy or composer mode? Can you check the loading order of your extensions? Mask should be installed after container.

ms-wa commented 2 years ago

I am using TYPO3 in composer mode.
Is the order of extension loading in my composer.json file?

"require": { "b13/container": "1.4.2", "friendsoftypo3/tt-address": "^6.1", "helhum/typo3-console": "^7.1", "itx/jobapplications": "^2.0", "mask/mask": "^7.2", "typo3/cms-backend": "^11.5.0", "typo3/cms-belog": "^11.5.0", "typo3/cms-beuser": "^11.5.0", "typo3/cms-core": "^11.5.0", "typo3/cms-dashboard": "^11.5.0", "typo3/cms-extbase": "^11.5.0", "typo3/cms-extensionmanager": "^11.5.0", "typo3/cms-felogin": "^11.5.0", "typo3/cms-filelist": "^11.5.0", "typo3/cms-fluid": "^11.5.0", "typo3/cms-fluid-styled-content": "^11.5.0", "typo3/cms-form": "^11.5.0", "typo3/cms-frontend": "^11.5.0", "typo3/cms-impexp": "^11.5.0", "typo3/cms-info": "^11.5.0", "typo3/cms-install": "^11.5.0", "typo3/cms-lowlevel": "^11.5", "typo3/cms-recordlist": "^11.5.0", "typo3/cms-rte-ckeditor": "^11.5.0", "typo3/cms-seo": "^11.5.0", "typo3/cms-setup": "^11.5.0", "typo3/cms-sys-note": "^11.5.0", "typo3/cms-t3editor": "^11.5.0", "typo3/cms-tstemplate": "^11.5.0", "typo3/cms-viewpage": "^11.5.0" },

nhovratov commented 2 years ago

No, the order is defined in vendor/typo3/PackageArtifact.php

It looks like this for me:

  'packageStatesConfiguration' => 
  array (
    'packages' => 
    array (
      'core' => 
      array (
      ),
      'extbase' => 
      array (
      ),
      'fluid' => 
      array (
      ),
      'frontend' => 
      array (
      ),
      'fluid_styled_content' => 
      array (
      ),
      'install' => 
      array (
      ),
      'recordlist' => 
      array (
      ),
      'backend' => 
      array (
      ),
      'seo' => 
      array (
      ),
      'filelist' => 
      array (
      ),
      'form' => 
      array (
      ),
      'setup' => 
      array (
      ),
      'rte_ckeditor' => 
      array (
      ),
      'belog' => 
      array (
      ),
      'beuser' => 
      array (
      ),
      'extensionmanager' => 
      array (
      ),
      'felogin' => 
      array (
      ),
      'info' => 
      array (
      ),
      'lowlevel' => 
      array (
      ),
      'reports' => 
      array (
      ),
      't3editor' => 
      array (
      ),
      'tstemplate' => 
      array (
      ),
      'workspaces' => 
      array (
      ),
      'container' => 
      array (
      ),
      'mask' => 
      array (
      ),
    ),
    'version' => 5,
  ),
nhovratov commented 2 years ago

I think it might be because of the missing suggest entry in the composer.json file. I will add a new release. Please try it out if it works for you.

nhovratov commented 2 years ago

You may also try to remove and install mask again to regenerate the package states

ms-wa commented 2 years ago

I reinstalled mask with Version 7.2.8. It works! Thank you @nhovratov.