Symfonyで、下記エラーが発生したのですが上手く読み解くことができなくて困っております。色々調べてみたんですがコンストラクタの引数の型(?)がおかしいみたいですがどこがおかしいかさっぱりです。
トップ画面右上にあるカートマークを押してカートに行こうとすると、システムエラーで止まってしまいます。
下記情報はログファイルです。
・front_site_2020_08_03.log
[2020-08-04 12:30:37] front.INFO [N/A] [ead6d77] [N/A] [Eccube\Log\Logger:log:66] - INIT [] [GET, /cart, 172.25.0.1, http://localhost:8081/, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36] [2020-08-04 12:30:38] front.INFO [e2141776] [ead6d77] [anon.] [Eccube\Log\Logger:log:66] - PROCESS START ["cart"] [GET, /cart, 172.25.0.1, http://localhost:8081/, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36] [2020-08-04 12:30:38] front.DEBUG [e2141776] [ead6d77] [anon.] [Eccube\Log\Logger:log:66] - Begin Transaction. [] [GET, /cart, 172.25.0.1, http://localhost:8081/, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36] [2020-08-04 12:30:38] php.CRITICAL [e2141776] [ead6d77] [anon.] [Symfony\Component\Debug\ErrorHandler:handleException:584] - Type error: Argument 2 passed to Customize\Controller\CartController::__construct() must be an instance of Customize\Repository\ProductRepository, instance of CartService_9dde17f given, called in /var/www/html/var/cache/prod/ContainerUnyqalc/getCartControllerService.php on line 15 {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Type error: Argument 2 passed to Customize\Controller\CartController::__construct() must be an instance of Customize\Repository\ProductRepository, instance of CartService_9dde17f given, called in /var/www/html/var/cache/prod/ContainerUnyqalc/getCartControllerService.php on line 15 at /var/www/html/app/Customize/Controller/CartController.php:59)"} [GET, /cart, 172.25.0.1, http://localhost:8081/, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36] [2020-08-04 12:30:38] front.ERROR [e2141776] [ead6d77] [anon.] [Eccube\Log\Logger:log:66] - システムエラーが発生しました。 ["Type error: Argument 2 passed to Customize\Controller\CartController::__construct() must be an instance of Customize\Repository\ProductRepository, instance of CartService_9dde17f given, called in /var/www/html/var/cache/prod/ContainerUnyqalc/getCartControllerService.php on line 15","/var/www/html/app/Customize/Controller/CartController.php",59,"#0 /var/www/html/var/cache/prod/ContainerUnyqalc/getCartControllerService.php(15): Customize\Controller\CartController->__construct(Object(Eccube\Repository\ProductClassRepository), Object(CartService_9dde17f), Object(Eccube\Service\PurchaseFlow\PurchaseFlow), Object(Eccube\Repository\BaseInfoRepository))\n#1 /var/www/html/var/cache/prod/ContainerUnyqalc/EccubeProdProjectContainer.php(2196): require('/var/www/html/v...')\n#2 /var/www/html/vendor/symfony/dependency-injection/Container.php(304): ContainerUnyqalc\EccubeProdProjectContainer->load('getCartControll...')\n#3 /var/www/html/vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php(96): Symfony\Component\DependencyInjection\Container->get('Customize\\Contr...')\n#4 /var/www/html/vendor/symfony/framework-bundle/Controller/ControllerResolver.php(57): Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->instantiateController('Customize\\Contr...')\n#5 /var/www/html/vendor/symfony/http-kernel/Controller/ControllerResolver.php(182): Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver->instantiateController('Customize\\Contr...')\n#6 /var/www/html/vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php(63): Symfony\Component\HttpKernel\Controller\ControllerResolver->createController('Customize\\Contr...')\n#7 /var/www/html/vendor/symfony/framework-bundle/Controller/ControllerResolver.php(43): Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->createController('Customize\\Contr...')\n#8 /var/www/html/vendor/symfony/http-kernel/Controller/ControllerResolver.php(89): Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver->createController('Customize\\Contr...')\n#9 /var/www/html/vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php(41): Symfony\Component\HttpKernel\Controller\ControllerResolver->getController(Object(Symfony\Component\HttpFoundation\Request))\n#10 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(134): Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->getController(Object(Symfony\Component\HttpFoundation\Request))\n#11 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)\n#12 /var/www/html/vendor/symfony/http-kernel/Kernel.php(200): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)\n#13 /var/www/html/index.php(76): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))\n#14 {main}"] [GET, /cart, 172.25.0.1, http://localhost:8081/, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36] [2020-08-04 12:30:38] front.INFO [e2141776] [ead6d77] [anon.] [Eccube\Log\Logger:log:66] - LOGIC END ["cart"] [GET, /cart, 172.25.0.1, http://localhost:8081/, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36] [2020-08-04 12:30:38] app.INFO [N/A] [ead6d77] [anon.] [Eccube\Log\Logger:log:68] - PROCESS END ["cart"] [GET, /cart, 172.25.0.1, http://localhost:8081/, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36] [2020-08-04 12:30:38] app.DEBUG [N/A] [ead6d77] [anon.] [Eccube\Log\Logger:log:68] - Commit executed. [] [GET, /cart, 172.25.0.1, http://localhost:8081/, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36] [2020-08-04 12:30:38] app.ERROR [N/A] [ead6d77] [anon.] [Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener:onTerminate:64] - Exception occurred while flushing email queue: Connection could not be established with host localhost :stream_socket_client(): unable to connect to localhost:25 (Cannot assign requested address) [] [GET, /cart, 172.25.0.1, http://localhost:8081/, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36]
お詳しい方がいらっしゃいましたらよろしくお願いします。
合わせてこういうエラーに遭遇した時はどこにポイントを置いて予想を立てればいいか教えていただければとも思います。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。