Reverted back to 10.3 and fixed the line in question by replacing curly braces with square brackets: $last = strtolower($size[strlen($size)-1]); Running PHP 8 in general is probably a bit risky at this point, especially in Joomla sites with a lot of...