Wir erstellen gerade ein privates Bundle für ein Projekt und bekommen dieses nicht sauber über 'composer update' installiert.
Folgende Fehlermeldung:
Code:
[6.9MB/0.01s] Loading composer repositories with package information
[7.3MB/0.09s] Updating dependencies (including require-dev)
[613.4MB/14.96s] Package operations: 3 installs, 1 update, 0 removals
[613.4MB/14.96s] - Installing wa72/htmlpagedom (v1.3.0): [613.6MB/15.37s] Loading from cache[613.6MB/15.37s]
[613.6MB/15.48s] - Installing spatie/array-to-xml (2.7.0): [613.6MB/15.77s] Loading from cache[613.6MB/15.77s]
[613.6MB/15.82s] - Installing goat1000/svggraph (2.25.0): [613.6MB/15.86s] Loading from cache[613.6MB/15.86s]
[613.6MB/15.93s] - Removing aidesigner/contao-ospa-bundle (dev-master)
[613.7MB/15.96s] - Installing aidesigner/contao-ospa-bundle (dev-master): [613.7MB/15.96s] Symlinking from __aiDESIGNER/contao-ospa-bundle[613.7MB/15.96s]
[227.1MB/16.65s] wa72/htmlpagedom suggests installing wa72/html-pretty-min (Minify or indent HTML documents)
[227.1MB/16.66s] Writing lock file
[227.1MB/16.66s] Generating autoload files
[227.8MB/17.05s] > Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
[227.8MB/17.51s]
[227.8MB/17.51s] Added/updated the web/app_dev.php file.
[227.8MB/17.51s] Added/updated the web/app.php file.
[227.8MB/17.62s]
[227.8MB/17.62s] // Clearing the cache for the prod environment with debug
[227.8MB/17.62s] // false
[227.8MB/17.63s]
[227.8MB/17.63s] [OK] Cache for the "prod" environment (debug=false) was successfully cleared.
[227.8MB/17.63s]
[227.8MB/18.07s]
[227.8MB/18.07s] // Warming up the cache for the prod environment with debug
[227.8MB/18.07s] // false
[227.8MB/18.07s]
[227.8MB/19.23s] 12:53:06 ERROR [console] Error thrown while running command "--ansi cache:warmup --env=prod". Message: "Call to a member function get() on null" ["error" => Error { …},"command" => "--ansi cache:warmup --env=prod","message" => "Call to a member function get() on null"] []
[227.8MB/19.23s]
[227.8MB/19.23s]
[227.8MB/19.23s] [Symfony\Component\Debug\Exception\FatalThrowableError]
Call to a member function get() on null
[227.8MB/19.23s]
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>
[227.8MB/19.23s]
[227.8MB/19.24s] Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-update-cmd event terminated with an exception
[RuntimeException]
An error occurred while executing the "cache:warmup" command: 12:53:06 ERROR [console] Error thrown while running command "--ansi cache:warmup --env=prod". Message: "Call to a member function get() on null" [ [38;5;208[39;49m
m"error" => Error { …},"command" => "--ansi cache:warmup --env=prod","message" => "Call to a member func
tion get() on null"] []
[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to a member function get() on null
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>
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
Uns ist die Fehlermeldung: "Call to a member function get() on null" nicht klar (zumindest nicht, wo sie herkommt).
- Contao 4.4.7
- Cache unter var/cache wurde vor dem Update manuell gelöscht
- Update ohne das private Bundle läuft problemlos durch
Lesezeichen