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

BUG: PHP Warning: Undefined array key "colPos" in /flux/Classes/Integration/Overrides/BackendLayoutView.php line 118) #2159

Closed
eckonator opened this issue Apr 11, 2024 · 2 comments

Comments

@eckonator
Copy link

eckonator commented Apr 11, 2024

I have checked that the bug exists in the dev-development branch
Yes

I have checked that there are no already open issues or recently closed issues about this bug
Yes

Describe the bug

  • TYPO3 v12.4.14
  • Flux v10.0.9
  • PHP 8.2.17 / Nginx 1.25.2

I got for each contentelement in listview this error:
PHP Warning: Undefined array key "colPos" in /flux/Classes/Integration/Overrides/BackendLayoutView.php line 118)

Screenshots
undefined_array_key_colpos

Additional context
This fixed the wrong behavior for me:

Original Code
$parentRecordUid = ColumnNumberUtility::calculateParentUid((integer) $this->record['colPos']);

Changed Code
$parentRecordUid = ColumnNumberUtility::calculateParentUid((int) ($this->record['colPos'] ?? 0));

Please merge it to next patch-level.

@kraemer-igroup
Copy link

I ran into the same issue, it is already fixed (development branch): issue #2151 / pull request #2156

@NamelessCoder
Copy link
Member

Flux 10.0.10 has been released which contains the mentioned fix.

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

3 participants