PHP
Composer and PHP CI errors - resolved.
Fix PHP CI failures: Composer install and dependency errors, extension and version issues, and PHPUnit problems.
Composer
Install, resolution, autoload.
"Allowed memory size of X bytes exhausted"Fix Composer "Allowed memory size of X bytes exhausted" in CI - the resolver hit the PHP memory_limit.
"could not find package X"Fix Composer "The requested package X could not be found" in CI - the named package or version is not
"lock not compatible"Fix Composer "Your lock file does not contain a compatible set of packages" in CI - the locked packages
"lock file is not up to date"Fix Composer "The lock file is not up to date with the latest changes in composer.json" in CI - regenerate
"your php version (X) does not satisfy"Fix Composer "requires php >=8.x -> your php version (X) does not satisfy that requirement" in CI - the
"file could not be downloaded"Fix transient Composer "The \"https://...\" file could not be downloaded" and "curl error" failures in CI -
"lock does not contain a compatible set"Fix "Your lock file does not contain a compatible set of packages.
Runtime & extensions
Versions, missing extensions.
"log ... could not be opened"Fix Laravel "The stream or file storage/logs/laravel.log could not be opened in append mode" in CI - the logs
"memory exhausted (CLI)"Fix "PHP Fatal error: Allowed memory size of N bytes exhausted" running a PHP CLI script in CI - the process
"cURL error 60: SSL certificate"Fix "cURL error 60: SSL certificate problem: unable to get local issuer certificate" in CI - PHP/cURL has no
"Cannot redeclare"Fix "PHP Fatal error: Cannot redeclare X" in CI - a function or class is defined twice, usually from a double
"Cannot autowire service"Fix Symfony "Cannot autowire service X: argument $y references interface/class Z but no such service exists"
"Environment variable not found"Fix Symfony "Environment variable not found: X" in CI - a %env(X)% reference has no value because the env var
Testing
PHPUnit and tooling.
"cannot open bootstrap"Fix PHPUnit "Cannot open bootstrap script <path>" in CI - the bootstrap file configured in phpunit.xml is
"No coverage driver"Fix PHPUnit "No code coverage driver is available" in CI - enable pcov or Xdebug (with coverage mode), since
WebTestCase "kernel already booted"Fix Symfony WebTestCase "Booting the kernel ... a kernel has been booted already" in CI - createClient() was
Explore other topics
GitHub ActionsWorkflow, runner, and YAML errors - diagnosed and fixed.
Node.js & npmnpm, yarn, and pnpm failures in CI - solved.
DockerBuild, run, compose, and registry errors - explained.
Pythonpip, poetry, venv, and pytest failures - fixed.
Java & JVMMaven, Gradle, and JVM failures in CI - resolved.
GoGo build, module, and test failures - diagnosed.