Skip to content
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

[Bug]: Error after updating to 4.1.0, when trying to finish order #2797

Open
JustMe69 opened this issue Feb 11, 2025 · 5 comments
Open

[Bug]: Error after updating to 4.1.0, when trying to finish order #2797

JustMe69 opened this issue Feb 11, 2025 · 5 comments

Comments

@JustMe69
Copy link
Contributor

JustMe69 commented Feb 11, 2025

Using pimcore 11.5.3 and coreshop 4.1.0

After updating from 4.0.11 to 4.1.0 and activating CoreShopFrontendBundle, when I try to complete order (quote) action, before thank-you page I get:

Symfony Exception
[ Symfony Docs](https://symfony.com/doc/6.4.18/index.html)
[RuntimeException](https://dev11.klio.com/de/shop/cart/quote#trace-box-1)
HTTP 500 Internal Server Error
Could not resolve argument $machineManager of "CoreShop\Bundle\FrontendBundle\Controller\CartController::createquoteaction()", maybe you forgot to register the controller as a service or missed tagging it with the "controller.service_arguments"?

Symfony\Component\DependencyInjection\Exception\
RuntimeException
in vendor/symfony/http-kernel/Controller/ArgumentResolver/NotTaggedControllerValueResolver.php (line 88)
in [vendor/symfony/http-kernel/Controller/ArgumentResolver/TraceableValueResolver.php ](file:///var/www/dev2/vendor/symfony/http-kernel/Controller/ArgumentResolver/TraceableValueResolver.php#L60)-> resolve (line 60)
in [vendor/symfony/http-kernel/Controller/ArgumentResolver.php ](file:///var/www/dev2/vendor/symfony/http-kernel/Controller/ArgumentResolver.php#L91)-> resolve (line 91)
in [vendor/symfony/http-kernel/Controller/TraceableArgumentResolver.php ](file:///var/www/dev2/vendor/symfony/http-kernel/Controller/TraceableArgumentResolver.php#L40)-> getArguments (line 40)
in [vendor/symfony/http-kernel/HttpKernel.php ](file:///var/www/dev2/vendor/symfony/http-kernel/HttpKernel.php#L173)-> getArguments (line 173)
in [vendor/symfony/http-kernel/HttpKernel.php ](file:///var/www/dev2/vendor/symfony/http-kernel/HttpKernel.php#L76)-> handleRaw (line 76)
in [vendor/symfony/http-kernel/Kernel.php ](file:///var/www/dev2/vendor/symfony/http-kernel/Kernel.php#L197)-> handle (line 197)
in [vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php ](file:///var/www/dev2/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php#L35)-> handle (line 35)
in [vendor/autoload_runtime.php ](file:///var/www/dev2/vendor/autoload_runtime.php#L29)-> run (line 29)
require_once('/var/www/dev2/vendor/autoload_runtime.php')
in [public/index.php ](file:///var/www/dev2/public/index.php#L19)(line 19)

Is there something I missed for updating?

In BE I can see cart-object.

Additional: We have our own FrontendBundle\Controller\CartController

Config:

    FrontendBundle\CoreShop\Controller\CartController:
        public: true
        tags:
            - 'controller.service_arguments'
            - 'container.service_subscriber'
        arguments:
          [ '@Psr\Container\ContainerInterface' ]

and

core_shop_frontend:
    controllers:
        index: FrontendBundle\CoreShop\Controller\IndexController
        register: FrontendBundle\CoreShop\Controller\RegisterController
        search: FrontendBundle\CoreShop\Controller\SearchController
        cart: FrontendBundle\CoreShop\Controller\CartController
        customer: FrontendBundle\Controller\CustomerController

the createQuoteAction function is identical to vendor/coreshop/core-shop/src/CoreShop/Bundle/FrontendBundle/Controller/CartController.php

@JustMe69
Copy link
Contributor Author

Any tips / workaround / help for the problem ?

@dpfaffenbauer
Copy link
Member

@JustMe69 haven't had time yet to look at it. probably this week.

@dpfaffenbauer
Copy link
Member

@JustMe69 Can you run the following? bin/console debug:container CoreShop\\Bundle\\FrontendBundle\\Controller\\CartController

@JustMe69
Copy link
Contributor Author

JustMe69 commented Feb 20, 2025

bin/console debug:container CoreShop\\Bundle\\FrontendBundle\\Controller\\CartController

Information for Service "CoreShop\Bundle\FrontendBundle\Controller\CartController"
==================================================================================

 ---------------- ----------------------------------------------------------
  Option           Value
 ---------------- ----------------------------------------------------------
  Service ID       CoreShop\Bundle\FrontendBundle\Controller\CartController
  Class            FrontendBundle\CoreShop\Controller\CartController
  Tags             controller.service_arguments
                   container.service_subscriber
                   container.service_subscriber
  Public           yes
  Synthetic        no
  Lazy             no
  Shared           yes
  Abstract         no
  Autowired        no
  Autoconfigured   no
  Usages           none
 ---------------- ----------------------------------------------------------
bin/console debug:container FrontendBundle\\CoreShop\\Controller\\CartController

Information for Service "FrontendBundle\CoreShop\Controller\CartController"
===========================================================================

 ---------------- ---------------------------------------------------
  Option           Value
 ---------------- ---------------------------------------------------
  Service ID       FrontendBundle\CoreShop\Controller\CartController
  Class            FrontendBundle\CoreShop\Controller\CartController
  Tags             controller.service_arguments
                   container.service_subscriber
                   container.service_subscriber
  Public           yes
  Synthetic        no
  Lazy             no
  Shared           yes
  Abstract         no
  Autowired        no
  Autoconfigured   no
  Usages           none
 ---------------- ---------------------------------------------------

@dpfaffenbauer
Copy link
Member

and for CoreShop\Bundle\FrontendBundle\Controller\CartController?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants