Bug #98509
closed
TYPO3\CMS\Core\Error\Exception
Added by Claus Harup about 2 years ago.
Updated about 2 years ago.
Category:
Backend User Interface
Description
Running PHP 8.1:
PHP Warning: Undefined array key "uid" in /var/www/typo3_source/typo3_src-11.5.16/typo3/sysext/fluid/Classes/ViewHelpers/Be/PageInfoViewHelper.php line 77
if (is_array($pageRecord) && $pageRecord['uid']) {
Files
- Status changed from New to Needs Feedback
Hi Georg
ext:staticfilecache uses core viewhelper: ViewHelpers/Be/PageInfoViewHelper.php, so it is core related imo.
Simply just add isset():
if (is_array($pageRecord) && isset($pageRecord['uid'])) {
...
}
Hi
I also think it is core related. The screenshot is from the root page (no ID or not selectedable page in this context). The ViewHelper already has a "else" condition for a root page information. But the check is invalid. If an admin call the root page with ID 0, the "readPageAccess" will return "['_thePath' => '/']". This is an array, but there is no uid key. So I suggest extending the check in the core ViewHelper to be bulletproof.
Regards,
Tim
- Status changed from Needs Feedback to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF