PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Fehler im Frontend nach Masterupdate GX v4.6.0.0



gnervt
01.08.2022, 10:33
Wer nach dem Masterupdate v4.6.0.0 folgenden Fehler im Frontend bekommt:


Unexpected error occurred...
Argument 1 passed to DataCache::shorten_key() must be of the type string, null given, called in /system/core/caching/DataCache.inc.php on line 178

kann sich erstmal damit behelfen:

Die /system/core/caching/DataCache.inc.php ab Zeile 425 so anpassen:

/**
* @param $key
*
* @return string
*/
protected static function shorten_key($key): string
{
if (strlen($key) > 128) {
$hash = md5($key);
$key = substr($key, 0, 128 - strlen($hash) - 1);
$key .= '-' . $hash;
}

return (string) $key;
}
}