Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined array key "foreign_match_fields" #616

Closed
bh-teufels opened this issue Jan 30, 2024 · 5 comments
Closed

Undefined array key "foreign_match_fields" #616

bh-teufels opened this issue Jan 30, 2024 · 5 comments

Comments

@bh-teufels
Copy link

TYPO3 12.4.10
PHP 8.3.2 (appears on 8.2 also)
mask 8.3.8

Error Log:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: MASK\Mask\Definition\TableDefinitionCollection::loadField(): Argument #2 ($fieldName) must be of type string, null given, called in [...]/vendor/mask/mask/Classes/ItemsProcFuncs/CTypeList.php on line 56 | TypeError thrown in file [...]/vendor/mask/mask/Classes/Definition/TableDefinitionCollection.php in line 193.

Core: Error handler (BE): PHP Warning: Trying to access array offset on null in [...]/vendor/mask/mask/Classes/ItemsProcFuncs/CTypeList.php line 47

Core: Error handler (BE): PHP Warning: Undefined array key "foreign_match_fields" in [...]/vendor/mask/mask/Classes/ItemsProcFuncs/CTypeList.php line 47

@nhovratov
Copy link
Collaborator

@bh-teufels Looks like you use field type "Content". Could you show me your json file(s)? One more question: Did you upgrade from an older version or did this happen on a new installation?

@bh-teufels
Copy link
Author

yes uses field type "content".
updated from TYPO3 11 to TYPO3 12

I don't had any CE in Maks. I had already exported these to own Extensions using maks_export. But keep the mask Extension. To resolve the Problem i uninstalled maks. so i cant provide the json.

@nhovratov
Copy link
Collaborator

Ah ok, so probably you have some Content Elements with colPos "999" left. But as you do not use the Mask Json anymore, this leads to the undefined array key warning.

@bh-teufels
Copy link
Author

bh-teufels commented Feb 1, 2024

okay so nothing which you can intercept with isset or something to provide running into this error?
then this can be closed because in this case I no longer use mask

Thank you

@nhovratov
Copy link
Collaborator

I think this can be fixed, but is really an edge-case. So keep this ticket open.

nhovratov added a commit that referenced this issue Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants