You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CONTAO Blocks Failure by opening a News Detailpage from the News listview.
request.CRITICAL: Uncaught PHP Exception TypeError: "Cannot access offset of type array on array" at Hooks.php line 71 {"exception":"[object] (TypeError(code: 0): Cannot access offset of type array on array at project/public/vendor/heimrichhannot/contao-blocks/src/Controller/Hooks.php:71)"}
if (is_array($arrItems) && !empty($arrItems)) {
end($arrItems); // Das letzte Element
$idxLastItem = key($arrItems); // Index des letzten Elements
// Letzte Element ein Array?
if (isset($arrItems[$idxLastItem]) && is_array($arrItems[$idxLastItem])) {
$arrItems[$idxLastItem]['href'] = Environment::get('request');
}
}
The text was updated successfully, but these errors were encountered:
Context
Contao version: 5.4.6
Bundle version: 2.0.1
PHP version: 8.3
CONTAO Blocks Failure by opening a News Detailpage from the News listview.
request.CRITICAL: Uncaught PHP Exception TypeError: "Cannot access offset of type array on array" at Hooks.php line 71 {"exception":"[object] (TypeError(code: 0): Cannot access offset of type array on array at project/public/vendor/heimrichhannot/contao-blocks/src/Controller/Hooks.php:71)"}
71: $arrItems[$idxLastItem]['href'] = Environment::get('request');
Scheinbare Lösung:
The text was updated successfully, but these errors were encountered: