heimrichhannot / contao-news-pagination-bundle

Automatic or manual content pagination for news or other content in contao.
Other
2 stars 1 forks source link

Error: Cannot autowire service "HeimrichHannot\NewsPaginationBundle\Manager\ContentNavigationManager" #8

Closed zonky2 closed 1 year ago

zonky2 commented 1 year ago

beim Update und Aufruf der Seite - Contao 4.9.42 + PHP 7.4

Symfony\Component\DependencyInjection\Exception\RuntimeException:
Cannot autowire service "HeimrichHannot\NewsPaginationBundle\Manager\ContentNavigationManager": argument "$request" of method "__construct()" has type "HeimrichHannot\RequestBundle\Component\HttpFoundation\Request" but this class was not found.

at mywebsite/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php:54
at Symfony\Component\DependencyInjection\Compiler\DefinitionErrorExceptionPass->processValue()
(mywebsite/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:83)
at Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue()
(mywebsite/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php:32)
at Symfony\Component\DependencyInjection\Compiler\DefinitionErrorExceptionPass->processValue()
(mywebsite/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:47)
at Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->process()
(mywebsite/vendor/symfony/dependency-injection/Compiler/Compiler.php:94)
at Symfony\Component\DependencyInjection\Compiler\Compiler->compile()
(mywebsite/vendor/symfony/dependency-injection/ContainerBuilder.php:762)
at Symfony\Component\DependencyInjection\ContainerBuilder->compile()
(mywebsite/vendor/symfony/http-kernel/Kernel.php:594)
at Symfony\Component\HttpKernel\Kernel->initializeContainer()
(mywebsite/vendor/contao/manager-bundle/src/HttpKernel/ContaoKernel.php:326)
at Contao\ManagerBundle\HttpKernel\ContaoKernel->initializeContainer()
(mywebsite/vendor/symfony/http-kernel/Kernel.php:136)
at Symfony\Component\HttpKernel\Kernel->boot()
(mywebsite/vendor/symfony/http-kernel/Kernel.php:196)
at Symfony\Component\HttpKernel\Kernel->handle()
(mywebsite/web/index.php:31)      

soweit ich das sehen kann, wurde das Paket gar nicht aktualisiert sondern nur

  - Removing heimrichhannot/contao-request-bundle (1.3.1)
  - Upgrading heimrichhannot/contao-utils-bundle (2.227.1 => 2.229.4): Extracting archive
  - Upgrading heimrichhannot/contao-head-bundle (1.11.1 => 1.13.1): Extracting archive
  - Upgrading heimrichhannot/contao-multi-column-editor-bundle (2.14.1 => 2.16.0): Extracting archive

irgendjemand kickt das contao-request-bundle raus :(

zonky2 commented 1 year ago

jo... in heimrichhannot/contao-utils-bundle 2.227.1 wars noch mit bei

https://github.com/heimrichhannot/contao-utils-bundle/blob/a71af9ec729c3c80187b31a609fa03c88acd0875/composer.json#L14

zonky2 commented 1 year ago

workaround composer req heimrichhannot/contao-request-bundle

koertho commented 1 year ago

Yes, that's a missing dependency on request bundle, as we currently working on making request bundle obsolete. I will fix this soon.

koertho commented 1 year ago

Fixed in 2.5.7. Thanks for reporting!