バージョン選択

フォーラム

メニュー

オンライン状況

47 人のユーザが現在オンラインです。 (42 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 47
もっと...

サイト内検索

バグ報告 > 管理機能 > 本人認証プラグインを使用すると管理画面のログアウトボタンでシステムエラーが発生

管理機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
kanaboon
投稿日時: 2024/2/9 11:19
対応状況: 確認中
新米
登録日: 2023/12/14
居住地:
投稿: 6
本人認証プラグインを使用すると管理画面のログアウトボタンでシステムエラーが発生
▼テンプレート
[EC-CUBE] 4.2.3
[レンタルサーバ] エックスサーバー
[PHP] 8.1.22
[データベース] MariaDB10.5
[ブラウザ] Chrome
[導入プラグインの有無] 本人認証プラグイン、SMS認証プラグイン

[現象]
管理画面からログアウトを押すと、
システムエラーが発生してログアウトできていない状態です。

本人認証プラグイン、SMS認証プラグインを停止するとログアウトできます。

ログに出力されたエラーメッセージ部分は下記になります。
ちなみにまだTwilioの「SID」「APIトークン」等の設定はしていない状態です。


[2024-02-09T10:51:51.481328+09:00] admin.ERROR [0947ea5c] [10f7433] [1] [Eccube\Log\Logger:log:64] - システムエラーが発生しました。 ["Plugin\\TwoFactorAuthCustomer42\\Repository\\TwoFactorAuthCustomerCookieRepository::deleteByCustomer(): Argument #1 ($customer) must be of type Eccube\\Entity\\Customer, Eccube\\Entity\\Member given, called in /home/●●●/◆◆◆/public_html/app/Plugin/TwoFactorAuthCustomer42/EventListener/CustomerTwoFactorAuthListener.php on line 211","/home/●●●/◆◆◆/public_html/app/Plugin/TwoFactorAuthCustomer42/Repository/TwoFactorAuthCustomerCookieRepository.php",137,"#0 /home/●●●/◆◆◆/public_html/app/Plugin/TwoFactorAuthCustomer42/EventListener/CustomerTwoFactorAuthListener.php(211): Plugin\\TwoFactorAuthCustomer42\\Repository\\TwoFactorAuthCustomerCookieRepository->deleteByCustomer(Object(Eccube\\Entity\\Member))\n#1 /home/●●●/◆◆◆/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(270): Plugin\\TwoFactorAuthCustomer42\\EventListener\\CustomerTwoFactorAuthListener->logoutEvent(Object(Symfony\\Component\\Security\\Http\\Event\\LogoutEvent), 'Symfony\\\\Compone...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\n#2 /home/●●●/◆◆◆/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(230): Symfony\\Component\\EventDispatcher\\EventDispatcher::Symfony\\Component\\EventDispatcher\\{closure}(Object(Symfony\\Component\\Security\\Http\\Event\\LogoutEvent), 'Symfony\\\\Compone...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\n#3 /home/●●●/◆◆◆/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(59): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners(Array, 'Symfony\\\\Compone...', Object(Symfony\\Component\\Security\\Http\\Event\\LogoutEvent))\n#4 /home/●●●/◆◆◆/public_html/vendor/symfony/security-http/Firewall/LogoutListener.php(122): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch(Object(Symfony\\Component\\Security\\Http\\Event\\LogoutEvent))\n#5 /home/●●●/◆◆◆/public_html/vendor/symfony/security-http/Firewall/AbstractListener.php(26): Symfony\\Component\\Security\\Http\\Firewall\\LogoutListener->authenticate(Object(Symfony\\Component\\HttpKernel\\Event\\RequestEvent))\n#6 /home/●●●/◆◆◆/public_html/vendor/symfony/security-http/Firewall.php(119): Symfony\\Component\\Security\\Http\\Firewall\\AbstractListener->__invoke(Object(Symfony\\Component\\HttpKernel\\Event\\RequestEvent))\n#7 /home/●●●/◆◆◆/public_html/vendor/symfony/security-http/Firewall.php(92): Symfony\\Component\\Security\\Http\\Firewall->callListeners(Object(Symfony\\Component\\HttpKernel\\Event\\RequestEvent), Object(Generator))\n#8 /home/●●●/◆◆◆/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(270): Symfony\\Component\\Security\\Http\\Firewall->onKernelRequest(Object(Symfony\\Component\\HttpKernel\\Event\\RequestEvent), 'kernel.request', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\n#9 /home/●●●/◆◆◆/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(230): Symfony\\Component\\EventDispatcher\\EventDispatcher::Symfony\\Component\\EventDispatcher\\{closure}(Object(Symfony\\Component\\HttpKernel\\Event\\RequestEvent), 'kernel.request', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\n#10 /home/●●●/◆◆◆/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(59): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners(Array, 'kernel.request', Object(Symfony\\Component\\HttpKernel\\Event\\RequestEvent))\n#11 /home/●●●/◆◆◆/public_html/vendor/symfony/http-kernel/HttpKernel.php(139): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch(Object(Symfony\\Component\\HttpKernel\\Event\\RequestEvent), 'kernel.request')\n#12 /home/●●●/◆◆◆/public_html/vendor/symfony/http-kernel/HttpKernel.php(75): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#13 /home/●●●/◆◆◆/public_html/vendor/symfony/http-kernel/Kernel.php(202): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#14 /home/●●●/◆◆◆/public_html/index.php(83): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#15 {main}"] [GET, /△△△/logout, 000.000.000.00, https://◆◆◆/△△△/product, Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36]
mcontact
投稿日時: 2024/2/9 11:26
対応状況: −−−
登録日: 2022/1/22
居住地:
投稿: 1295
Re: 本人認証プラグインを使用すると管理画面のログアウトボタンでシステムエラーが発生
> ログに出力されたエラーメッセージ部分は下記になります。
> ちなみにまだTwilioの「SID」「APIトークン」等の設定はしていない状態です。

プラグインのマニュアルに記載のあるTwilioの「SID」「APIトークン」「送信元電話番号」を設定してください。


----------------
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
EC-CUBEインテグレートパートナー【ゴールド】ランク
M&I Works
URL: https://miworks.biz/
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

tattsu
投稿日時: 2024/2/9 11:30
対応状況: −−−
長老
登録日: 2023/12/23
居住地:
投稿: 210
Re: 本人認証プラグインを使用すると管理画面のログアウトボタンでシステムエラーが発生
プラグインのソースコードを見てもこの書き方だとエラーになると思いますので、本人認証プラグインのバグだと思われます。

https://github.com/EC-CUBE/TwoFactorAuthCustomer42/blob/main/EventListener/CustomerTwoFactorAuthListener.php#L210

試してないのですが、このURLの行を
if ($Customer instanceof Customer) {
などに修正すればエラーにならないのではないかと思います。


その上あたりの
$this->customerTwoFactorAuthService->clear2AuthCookies($logoutEvent->getRequest(), $logoutEvent->getResponse());
も管理画面の場合は実行しなくてよさそうですが。


----------------
-------------------
EC-CUBEカスタマイズ・バージョンアップ・不具合修正 
気軽にご相談ください。ゴールドランクパートナー。

kanaboon
投稿日時: 2024/2/14 15:57
対応状況: 解決済
新米
登録日: 2023/12/14
居住地:
投稿: 6
Re: 本人認証プラグインを使用すると管理画面のログアウトボタンでシステムエラーが発生
tattsu様

ご連絡が遅くなり申し訳ありません。

教えていただいた通り修正しました所、問題無くログアウトができるようになりました。

ありがとうございました。
ゲスト
投稿日時: 2024/2/18 14:38
対応状況: −−−
Re: 本人認証プラグインを使用すると管理画面のログアウトボタンでシステムエラーが発生
iplwin login find out all the basic information on sports betting, and casino games at Iplwin. Get information on how to create an account at Iplwin India.

Welcome to iplwin IPLwin is committed to providing customers with a seamless and hassle-free experience.

iplwin auction view all available outright and match odds, plus get news, tips, free bets and money-back offers. All you need to bet.

iplwin cricket find best cricket betting apps in 2024 here. We rank & review all the top betting apps in India. Enjoy fast payments, great odds, and bonuses from you.

iplwin dream11 the team that wins the final match is crowned the Indian Premier League champion. Altogether, thirteen teams have played in the past ten seasons of the IPL 2024.

iplwin fantasy 5% cash back on bank card deposits and 3% on USDT deposits. Bonuses will be sent automatically, no application is required.

iplwin schedule matches. The cashback is automatically credited to the players.

Welcome to ipl winner 2022, IPLwin is committed to providing customers with a seamless and hassle-free experience.

ipl winner 2019 IPLWIN India app review: bet on cricket events through your Android, iOS. Download the new and current version of the IPLwin mobile application right now.

iplwin deposit download APP, get 45rs bonus immediately and enjoy more discounts! ... Welcome to IPLwin, IPLwin is committed to providing customers with a seamless.
スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,870名です
総投稿数は109,999件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2313
5
umebius
2085
6
yuh
1819
7
h_tanaka
1646
8
red
1570
9
mcontact
1295
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.