Hallo zusammen
Ich wollte eine Website auf PHP 8.1 anheben, weil der Hoster 7.4 nicht mehr unterstütz. Dabei habe ich ein Update von Eclipse 3.0.13 auf 4.3.3 gemacht. Die Contao-Version habe ich auf 4.9.22 auf 4.9.42. angehebt. Ich habe alle Eclipse Dateien neu hochgeladen und jetzt habe ich immer diesen Fehler beim Composer:
Wenn ich das Install-File aufrufe,zeigt es mir keine Änderungen an. Zudem habe ich auch schon bei Composer-Abhängigkeiten das Update ausgeführt und alle Pakete gleichzeitig aktualisiert. Es geht einfach nichts.
Im Var/Log erscheint diese Meldung:
[2023-09-03 14:33:23] console.CRITICAL: Error thrown while running command "cache:warmup --env=prod --no-ansi". Message: "array_map(): Argument #2 ($array) must be of type array, bool given" {"exception":"[object] (TypeError(code: 0): array_map(): Argument #2 ($array) must be of type array, bool given at /home/usikigag/www/contao49.sibylleoeschger.ch/system/modules/pct_theme_settings/PCT/License.php:89)","command":"cache:warmup --env=prod --no-ansi","message":"array_map(): Argument #2 ($array) must be of type array, bool given"} []
Im pct_Licence ist die Lizent korrekt angegeben.
Kann mir bitte jemand helfen?
Liebe Grüsse
Janine
Ich wollte eine Website auf PHP 8.1 anheben, weil der Hoster 7.4 nicht mehr unterstütz. Dabei habe ich ein Update von Eclipse 3.0.13 auf 4.3.3 gemacht. Die Contao-Version habe ich auf 4.9.22 auf 4.9.42. angehebt. Ich habe alle Eclipse Dateien neu hochgeladen und jetzt habe ich immer diesen Fehler beim Composer:
Code:
$ /usr/bin/php -q -dmax_execution_time=0 -dmemory_limit=-1 -ddisplay_errors=0 -ddisplay_startup_errors=0 -derror_reporting=0 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Zurich /home/usikigag/www/contao49.sibylleoeschger.ch/web/contao-manager.phar.php composer install --no-dev --no-progress --no-ansi --no-interaction --optimize-autoloader Installing dependencies from lock file Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Package contao-components/highlight is abandoned, you should avoid using it. No replacement was suggested. Package lexik/maintenance-bundle is abandoned, you should avoid using it. No replacement was suggested. Package patchwork/utf8 is abandoned, you should avoid using it. Use symfony/polyfill-mbstring or symfony/string instead. Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead. Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead. Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead. Package symfony/swiftmailer-bundle is abandoned, you should avoid using it. Use symfony/mailer instead. Package true/punycode is abandoned, you should avoid using it. No replacement was suggested. Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead. Generating optimized autoload files composer/package-versions-deprecated: Generating version class... composer/package-versions-deprecated: ...done generating version class contao/manager-plugin: Dumping generated plugins file... Class Contao\ManagerPlugin\PluginLoader located in ./vendor/contao/manager-plugin/src/Resources/PluginLoader.php does not comply with psr-4 autoloading standard. Skipping. 100 packages you are using are looking for funding. Use the `composer fund` command to find out more! contao/manager-plugin: ...done dumping generated plugins file > Contao\ManagerBundle\Composer\ScriptHandler::initi alizeApplication ! [NOTE] Secret is already set. Added the web/app.php file. Added the web/index.php file. Added the web/preview.php file. // Clearing the cache for the prod environment with debug // false [OK] Cache for the "prod" environment (debug=false) was successfully cleared. // Clearing the cache for the dev environment with debug // true [OK] Cache for the "dev" environment (debug=true) was successfully cleared. // Warming up the cache for the prod environment with debug // false 14:33:23 CRITICAL [console] Error thrown while running command "cache:warmup --env=prod --no-ansi". Message: "array_map(): Argument #2 ($array) must be of type array, bool given" ["exception" => TypeError { …},"command" => "cache:warmup --env=prod --no-ansi","message" => "array_map(): Argument #2 ($array) must be of type array, bool given"] In License.php line 89: array_map(): Argument #2 ($array) must be of type array, bool given cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--] <command> Script Contao\ManagerBundle\Composer\ScriptHandler::initi alizeApplication handling the post-install-cmd event terminated with an exception In ScriptHandler.php line 98: An error occurred while executing the "cache:warmup" command: 14:33:23 CRIT ICAL [console] Error thrown while running command "cache:warmup --env=prod --no-ansi". Message: "array_map(): Argument #2 ($array) must be of type ar ray, bool given" ["exception" => TypeError { …},"command" => "cache:warmup --env=prod --no-ansi","message" => "array_map(): Argument #2 ($array) must be of type array, bool given"] In License.php line 89: array_map(): Argument #2 ($array) must be of type array, bool given cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|-- verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--en v ENV] [--] <command> install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--download-only] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...] # Process terminated with exit code 1 # Result: General error
Im Var/Log erscheint diese Meldung:
[2023-09-03 14:33:23] console.CRITICAL: Error thrown while running command "cache:warmup --env=prod --no-ansi". Message: "array_map(): Argument #2 ($array) must be of type array, bool given" {"exception":"[object] (TypeError(code: 0): array_map(): Argument #2 ($array) must be of type array, bool given at /home/usikigag/www/contao49.sibylleoeschger.ch/system/modules/pct_theme_settings/PCT/License.php:89)","command":"cache:warmup --env=prod --no-ansi","message":"array_map(): Argument #2 ($array) must be of type array, bool given"} []
Im pct_Licence ist die Lizent korrekt angegeben.
Kann mir bitte jemand helfen?
Liebe Grüsse
Janine
Kommentar