Hallo Community,
Ich habe bei einer Contao 4.4 installation 2 Pakete mit composer update aktualisiert. Keine weiteren Abhängigkeiten etc. aktualisiert worden.
Nach der Aktualisierung kam folgende Fehler.
PHP-Code:
-bash-4.2$ /opt/plesk/php/7.4/bin/php -d memory_limit=-1 vendor/bin/contao-console cache:warmup --env=prod
PHP Warning: Module 'imagick' already loaded in Unknown on line 0
// Warming up the cache for the prod environment with debug false
22:56:20 ERROR [console] Error thrown while running command "cache:warmup --env=prod". Message: "The String class cannot be used in PHP 7.4.15. Use the StringUtil class instead." ["exception" => RuntimeException { …},"command" => "cache:warmup --env=prod","message" => "The String class cannot be used in PHP 7.4.15. Use the StringUtil class instead."]
In String.php line 15:
The String class cannot be used in PHP 7.4.15. Use the StringUtil class instead.
cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
Leider aus dem Fehler werde ich nicht schlau. Es steht nicht wo die String Klasse verwendet wird.
Hat jemand schonmal so ein Fehler gehabt? Was muss ich hier machen?
Lesezeichen