You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in the process of upgrading an app from Symfony 5.4 to 6.4. I'm fighting this error when I run any command:
In CheckReferenceValidityPass.php line 39:
[Symfony\Component\DependencyInjection\Exception\RuntimeException]
The definition ".service_locator.kV3NDIb" has a reference to an abstract de
finition "Symfony\Component\Config\Loader\LoaderInterface". Abstract defini
tions cannot be the target of references.
Exception trace:
at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/CheckReferenceValidityPass.php:39
Symfony\Component\DependencyInjection\Compiler\CheckReferenceValidityPass->processValue() at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:90
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/CheckReferenceValidityPass.php:43
Symfony\Component\DependencyInjection\Compiler\CheckReferenceValidityPass->processValue() at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:95
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/CheckReferenceValidityPass.php:43
Symfony\Component\DependencyInjection\Compiler\CheckReferenceValidityPass->processValue() at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:90
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/CheckReferenceValidityPass.php:43
Symfony\Component\DependencyInjection\Compiler\CheckReferenceValidityPass->processValue() at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:90
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/CheckReferenceValidityPass.php:43
Symfony\Component\DependencyInjection\Compiler\CheckReferenceValidityPass->processValue() at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:99
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/CheckReferenceValidityPass.php:43
Symfony\Component\DependencyInjection\Compiler\CheckReferenceValidityPass->processValue() at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:90
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/CheckReferenceValidityPass.php:43
Symfony\Component\DependencyInjection\Compiler\CheckReferenceValidityPass->processValue() at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:48
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->process() at /var/www/html/services/vendor/symfony/dependency-injection/Compiler/Compiler.php:80
Symfony\Component\DependencyInjection\Compiler\Compiler->compile() at /var/www/html/services/vendor/symfony/dependency-injection/ContainerBuilder.php:767
Symfony\Component\DependencyInjection\ContainerBuilder->compile() at /var/www/html/services/vendor/symfony/http-kernel/Kernel.php:507
Symfony\Component\HttpKernel\Kernel->initializeContainer() at /var/www/html/services/vendor/symfony/http-kernel/Kernel.php:772
Symfony\Component\HttpKernel\Kernel->preBoot() at /var/www/html/services/vendor/symfony/http-kernel/Kernel.php:126
Symfony\Component\HttpKernel\Kernel->boot() at /var/www/html/services/src/Kernel.php:41
My\Application\Kernel->boot() at /var/www/html/services/vendor/symfony/framework-bundle/Console/Application.php:190
Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands() at /var/www/html/services/vendor/symfony/framework-bundle/Console/Application.php:72
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/html/services/vendor/symfony/console/Application.php:175
Symfony\Component\Console\Application->run() at /var/www/html/services/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49
Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run() at /var/www/html/services/vendor/autoload_runtime.php:29
require_once() at /var/www/html/services/bin/console:16
First of all, I don't really know what it means and second: Where is the issue it has happening? Which YAML, Dependency, Class, ... is it? Are there any means to track this down?
I cannot really get xdebug working to break at the throw at the moment. Would this even help me to find out?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm in the process of upgrading an app from Symfony 5.4 to 6.4. I'm fighting this error when I run any command:
First of all, I don't really know what it means and second: Where is the issue it has happening? Which YAML, Dependency, Class, ... is it? Are there any means to track this down?
I cannot really get xdebug working to break at the throw at the moment. Would this even help me to find out?
Beta Was this translation helpful? Give feedback.
All reactions