質問 > フロント機能 > 会員でログインした状態で購入画面に進むとエラーになる |
フロント機能
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
odeko |
投稿日時: 2022/10/2 9:22
対応状況: 確認中
|
新米 登録日: 2021/10/7 居住地: 投稿: 2 |
会員でログインした状態で購入画面に進むとエラーになる [EC-CUBE] EC-CUBE 4.0.5
[PHP] PHP Version 7.4.3 [現象] 会員でログインした状態で購入画面に進むとシステムエラーのページになります。 ログを確認したところ下記のメッセージが出てました。 エラーの原因と対処法がわかれば教えていただきたいです。 【ログ】 front.ERROR [748d36a2] [ddae81a] [3] [Eccube\Log\Logger:log:66] - システムエラーが発生しました。 ["Call to a member function getId() on null","/var/www/html/ec-cube/app/Plugin/YamatoPayment4/Form/Extension/CvsExtension.php",59,"#0 /var/www/html/ec-cube/vendor/symfony/event-dispatcher/EventDispatcher.php(214): Plugin\\YamatoPayment4\\Form\\Extension\\CvsExtension->Plugin\\YamatoPayment4\\Form\\Extension\\{closure}()\n#1 /var/www/html/ec-cube/vendor/symfony/event-dispatcher/EventDispatcher.php(44): Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch()\n#2 /var/www/html/ec-cube/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php(33): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch()\n#3 /var/www/html/ec-cube/vendor/symfony/form/Form.php(377): Symfony\\Component\\EventDispatcher\\ImmutableEventDispatcher->dispatch()\n#4 /var/www/html/ec-cube/vendor/symfony/form/Form.php(476): Symfony\\Component\\Form\\Form->setData()\n#5 /var/www/html/ec-cube/vendor/symfony/form/FormBuilder.php(210): Symfony\\Component\\Form\\Form->initialize()\n#6 /var/www/html/ec-cube/vendor/symfony/form/FormFactory.php(30): Symfony\\Component\\Form\\FormBuilder->getForm()\n#7 /var/www/html/ec-cube/vendor/symfony/framework-bundle/Controller/ControllerTrait.php(397): Symfony\\Component\\Form\\FormFactory->create()\n#8 /var/www/html/ec-cube/app/Plugin/ReferralCode/Controller/CustomizedShoppingController.php(156): Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller->createForm()\n#9 /var/www/html/ec-cube/vendor/symfony/http-kernel/HttpKernel.php(151): Plugin\\ReferralCode\\Controller\\CustomizedShoppingController->index()\n#10 /var/www/html/ec-cube/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()\n#11 /var/www/html/ec-cube/vendor/symfony/http-kernel/Kernel.php(200): Symfony\\Component\\HttpKernel\\HttpKernel->handle()\n#12 /var/www/html/ec-cube/index.php(79): Symfony\\Component\\HttpKernel\\Kernel->handle()\n#13 {main}"] |
h_tanaka |
投稿日時: 2022/10/6 14:37
対応状況: −−−
|
神 登録日: 2016/7/22 居住地: 愛媛県 投稿: 1646 |
Re: 会員でログインした状態で購入画面に進むとエラーになる エラーログに出ているとおり、
app/Plugin/YamatoPayment4/Form/Extension/CvsExtension.php の59行目を確認してみてください。 getId() を行っている変数が null になっているとのことです。
|
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |