質問編集履歴
3
質問を抽象化
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
PHPエラーでについて教えてください。
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Symfonyで、下記エラーが発生したのですが上手く読み解くことができなくて困っております。色々調べてみたんですがコンストラクタの引数の型(?)がおかしいみたいですがどこがおかしいかさっぱりです。
|
2
2
|
|
3
3
|
|
4
4
|
|
2
ログ修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,23 +14,25 @@
|
|
14
14
|
|
15
15
|
```
|
16
16
|
|
17
|
-
[2020-08-0
|
17
|
+
[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]
|
18
18
|
|
19
|
-
[2020-08-0
|
19
|
+
[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]
|
20
20
|
|
21
|
-
[2020-08-0
|
21
|
+
[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]
|
22
22
|
|
23
|
-
[2020-08-0
|
23
|
+
[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]
|
24
24
|
|
25
|
-
[2020-08-0
|
25
|
+
[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]
|
26
26
|
|
27
|
-
[2020-08-0
|
27
|
+
[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]
|
28
28
|
|
29
|
-
[2020-08-0
|
29
|
+
[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]
|
30
30
|
|
31
|
-
[2020-08-0
|
31
|
+
[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]
|
32
32
|
|
33
|
-
[2020-08-0
|
33
|
+
[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]
|
34
|
+
|
35
|
+
|
34
36
|
|
35
37
|
```
|
36
38
|
|
1
エラーログ追加
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
EC-Cubeのエラーで謎のエラーが出ました。
|
test
CHANGED
@@ -1,17 +1,45 @@
|
|
1
|
-
Symfonyの下記エラーが上手く読み解くことができなくて困っております。
|
2
|
-
|
3
|
-
色々調べてみたんですがコンストラクタの引数の型(?)がおかしいみたいですがどこがおかしいかさっぱりです。
|
1
|
+
EC-cubeというSymfonyのECサイト管理システムで、下記エラーが発生したのですが上手く読み解くことができなくて困っております。色々調べてみたんですがコンストラクタの引数の型(?)がおかしいみたいですがどこがおかしいかさっぱりです。
|
4
2
|
|
5
3
|
|
6
4
|
|
7
|
-
|
5
|
+
トップ画面右上にあるカートマークを押してカートに行こうとすると、システムエラーで止まってしまいます。
|
8
6
|
|
7
|
+
下記情報はログファイルです。
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
9
|
-
|
13
|
+
・front_site_2020_08_03.log
|
10
14
|
|
11
15
|
```
|
12
16
|
|
13
|
-
|
17
|
+
[2020-08-03 22:27:48] front.INFO [N/A] [c339286] [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]
|
18
|
+
|
19
|
+
[2020-08-03 22:27:48] front.INFO [f68f4bba] [c339286] [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]
|
20
|
+
|
21
|
+
[2020-08-03 22:27:48] front.DEBUG [f68f4bba] [c339286] [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]
|
22
|
+
|
23
|
+
[2020-08-03 22:27:48] php.CRITICAL [f68f4bba] [c339286] [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]
|
24
|
+
|
25
|
+
[2020-08-03 22:27:48] front.ERROR [f68f4bba] [c339286] [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]
|
26
|
+
|
27
|
+
[2020-08-03 22:27:48] front.INFO [f68f4bba] [c339286] [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]
|
28
|
+
|
29
|
+
[2020-08-03 22:27:48] app.INFO [N/A] [c339286] [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]
|
30
|
+
|
31
|
+
[2020-08-03 22:27:48] app.DEBUG [N/A] [c339286] [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]
|
32
|
+
|
33
|
+
[2020-08-03 22:27:48] app.ERROR [N/A] [c339286] [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]
|
34
|
+
|
35
|
+
```
|
14
36
|
|
15
37
|
|
16
38
|
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
17
|
-
|
43
|
+
お詳しい方がいらっしゃいましたらよろしくお願いします。
|
44
|
+
|
45
|
+
合わせてこういうエラーに遭遇した時はどこにポイントを置いて予想を立てればいいか教えていただければとも思います。
|