Skip to content

server fails to run on this tutorial #10152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

JohnyProkie
Copy link
Contributor

@JohnyProkie JohnyProkie commented Aug 5, 2018

I received error when following this tutorial:

  [Symfony\Component\DependencyInjection\Exception\OutOfBoundsException]
  Service "security.authentication.provider.wsse.wsse_secured": The argument "0" doesn't exist.

php bin/console server:run -v stack trace:
Exception trace:
 Symfony\Component\DependencyInjection\Definition->replaceArgument() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\ResolveChildDefinitionsPass.php:150
 Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->doResolveDefinition() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\ResolveChildDefinitionsPass.php:58
 Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->resolveDefinition() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\ResolveChildDefinitionsPass.php:39
 Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->processValue() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\AbstractRecursivePass.php:60
 Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\ResolveChildDefinitionsPass.php:31
 Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->processValue() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\AbstractRecursivePass.php:39
 Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->process() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\Compiler.php:95
 Symfony\Component\DependencyInjection\Compiler\Compiler->compile() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\ContainerBuilder.php:736
 Symfony\Component\DependencyInjection\ContainerBuilder->compile() at C:\xampp\htdocs\stopky\vendor\symfony\http-kernel\Kernel.php:519
 Symfony\Component\HttpKernel\Kernel->initializeContainer() at C:\xampp\htdocs\stopky\vendor\symfony\http-kernel\Kernel.php:123
 Symfony\Component\HttpKernel\Kernel->boot() at C:\xampp\htdocs\stopky\vendor\symfony\framework-bundle\Console\Application.php:65
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at C:\xampp\htdocs\stopky\vendor\symfony\console\Application.php:145
 Symfony\Component\Console\Application->run() at C:\xampp\htdocs\stopky\bin\console:39

Playing a bit and using search-fu I've made my way to this:
https://stackoverflow.com/a/46408007/7973475

I did not make the proposed change to services.yml (or services.yaml in my case) and server started, everything looks ok.

I received error when following this tutorial:
  [Symfony\Component\DependencyInjection\Exception\OutOfBoundsException]
  Service "security.authentication.provider.wsse.wsse_secured": The argument "0" doesn't exist.

php bin/console server:run -v stack trace:
Exception trace:
 Symfony\Component\DependencyInjection\Definition->replaceArgument() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\ResolveChildDefinitionsPass.php:150
 Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->doResolveDefinition() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\ResolveChildDefinitionsPass.php:58
 Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->resolveDefinition() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\ResolveChildDefinitionsPass.php:39
 Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->processValue() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\AbstractRecursivePass.php:60
 Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\ResolveChildDefinitionsPass.php:31
 Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->processValue() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\AbstractRecursivePass.php:39
 Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->process() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\Compiler.php:95
 Symfony\Component\DependencyInjection\Compiler\Compiler->compile() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\ContainerBuilder.php:736
 Symfony\Component\DependencyInjection\ContainerBuilder->compile() at C:\xampp\htdocs\stopky\vendor\symfony\http-kernel\Kernel.php:519
 Symfony\Component\HttpKernel\Kernel->initializeContainer() at C:\xampp\htdocs\stopky\vendor\symfony\http-kernel\Kernel.php:123
 Symfony\Component\HttpKernel\Kernel->boot() at C:\xampp\htdocs\stopky\vendor\symfony\framework-bundle\Console\Application.php:65
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at C:\xampp\htdocs\stopky\vendor\symfony\console\Application.php:145
 Symfony\Component\Console\Application->run() at C:\xampp\htdocs\stopky\bin\console:39


Playing a bit and using search-fu I've made my way to this:
https://stackoverflow.com/a/46408007/7973475

I did not make the proposed change to services.yml (or services.yaml in my case) and server started, everything looks ok.
@xabbuh xabbuh added this to the 3.4 milestone Aug 6, 2018
@xabbuh
Copy link
Member

xabbuh commented Aug 6, 2018

Further down, there is another spot where we use replaceArgument(). Can you update that too?

@javiereguiluz
Copy link
Member

@xabbuh should we update the two other occurrences of replaceArgument() or only the other single occurrence of replaceArgument(0, ...) ?

@xabbuh
Copy link
Member

xabbuh commented Aug 9, 2018

We should update both.

@javiereguiluz
Copy link
Member

@JohnyProkie thanks for fixing this error ... and congrats on your first Symfony Docs contribution!

javiereguiluz added a commit that referenced this pull request Aug 9, 2018
This PR was submitted for the 4.1 branch but it was merged into the 3.4 branch instead (closes #10152).

Discussion
----------

server fails to run on this tutorial

I received error when following this tutorial:

```
  [Symfony\Component\DependencyInjection\Exception\OutOfBoundsException]
  Service "security.authentication.provider.wsse.wsse_secured": The argument "0" doesn't exist.

php bin/console server:run -v stack trace:
Exception trace:
 Symfony\Component\DependencyInjection\Definition->replaceArgument() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\ResolveChildDefinitionsPass.php:150
 Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->doResolveDefinition() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\ResolveChildDefinitionsPass.php:58
 Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->resolveDefinition() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\ResolveChildDefinitionsPass.php:39
 Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->processValue() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\AbstractRecursivePass.php:60
 Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\ResolveChildDefinitionsPass.php:31
 Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->processValue() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\AbstractRecursivePass.php:39
 Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->process() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\Compiler\Compiler.php:95
 Symfony\Component\DependencyInjection\Compiler\Compiler->compile() at C:\xampp\htdocs\stopky\vendor\symfony\dependency-injection\ContainerBuilder.php:736
 Symfony\Component\DependencyInjection\ContainerBuilder->compile() at C:\xampp\htdocs\stopky\vendor\symfony\http-kernel\Kernel.php:519
 Symfony\Component\HttpKernel\Kernel->initializeContainer() at C:\xampp\htdocs\stopky\vendor\symfony\http-kernel\Kernel.php:123
 Symfony\Component\HttpKernel\Kernel->boot() at C:\xampp\htdocs\stopky\vendor\symfony\framework-bundle\Console\Application.php:65
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at C:\xampp\htdocs\stopky\vendor\symfony\console\Application.php:145
 Symfony\Component\Console\Application->run() at C:\xampp\htdocs\stopky\bin\console:39
```

Playing a bit and using search-fu I've made my way to this:
https://stackoverflow.com/a/46408007/7973475

I did not make the proposed change to services.yml (or services.yaml in my case) and server started, everything looks ok.

Commits
-------

201b938 server fails to run on this tutorial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants