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

TYPO3 12.4.10 - Multilingual - Undefined array key "colPos" #2151

Closed
Apen opened this issue Feb 5, 2024 · 2 comments
Closed

TYPO3 12.4.10 - Multilingual - Undefined array key "colPos" #2151

Apen opened this issue Feb 5, 2024 · 2 comments

Comments

@Apen
Copy link
Contributor

Apen commented Feb 5, 2024

I have a large website with a lot of languages.
Sometimes, when i edit a content, i have the following error message

(PHP Warning: Undefined array key "colPos" in xxx/Classes/Integration/Overrides/BackendLayoutView.php line 118

It happen when "BackendLayoutView->colPosListItemProcFunc" is called by the core with a "row" with only uid/pid.
Could it be possible to add a default value to this line (BackendLayoutView.php line 118) :

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

like

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

Except that, everything works fine in backend/frontend.

Thanks

@Apen
Copy link
Contributor Author

Apen commented Mar 25, 2024

PR here #2156

@NamelessCoder
Copy link
Member

Solved by #2156

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