プラグイン > バグ報告・利用に関する質問 > Securitychecker42 エラー |
バグ報告・利用に関する質問
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
Rights |
投稿日時: 2024/12/13 18:36
対応状況: −−−
|
一人前 登録日: 2019/3/12 居住地: 投稿: 123 |
Securitychecker42 エラー ▼テンプレート
[EC-CUBE]4.3.0新規インストール [レンタルサーバ]エックスサーバー(コントロールパネル内の簡単インストールから設定) [PHP]8.1.29 4.2.3で構築したサイトを、4.3.0に新規インストールする形でバージョンアップしようと考えています。 テストで試行していますが、新規インストールした時点でエラーが出ています。 4.2.3で使っているプラグインの認証キーを設定すると、導入済みで4.3.0に対応しているプラグインが一覧に表示されるかと思います。 Securitychecker42の有効化 → ○ Securitychecker42のセキュリティチェック → ○ SSLの強制が未設定のため、セキュリティ管理でSSLの強制のチェックとTRUSTED_HOSTSに ホスト名の入力 → 登録をクリックでシステムエラー 以後、セキュリティ管理にアクセスするとシステムエラーで設定ができない状態 です。 ※ログには、 ["Typed property Symfony\\Component\\Routing\\Attribute\\Route::$env must not be accessed before initialization","/home/public_html/test/vendor/symfony/routing/Attribute/Route.php",253,"#0 /home/public_html/test/vendor/symfony/routing/Loader/AttributeClassLoader.php(187): Symfony\\Component\\Routing\\Attribute\\Route->getEnv()\n#1 /home/public_html/test/vendor/symfony/routing/Loader/AttributeClassLoader.php(139): Symfony\\Component\\Routing\\Loader\\AttributeClassLoader->addRoute(Object(Symfony\\Component\\Routing\\RouteCollection), Object(Symfony\\Component\\Routing\\Attribute\\Route), Array, Object(ReflectionClass), Object(ReflectionMethod))\n#2 /home/public_html/test/vendor/symfony/routing/Loader/AttributeDirectoryLoader.php(57): Symfony\\Component\\Routing\\Loader\\AttributeClassLoader->load(Object(ReflectionClass), 'annotation')\n#3 /home/public_html/test/vendor/symfony/config/Loader/FileLoader.php(167): Symfony\\Component\\Routing\\Loader\\AttributeDirectoryLoader->load('/home/...', 'annotation')\n#4 /home/public_html/test/vendor/symfony/config/Loader/FileLoader.php(98): Symfony\\Component\\Config\\Loader\\FileLoader->doImport('/home/...', 'annotation', false, '/home/...')\n#5 /home/public_html/test/vendor/symfony/routing/Loader/YamlFileLoader.php(212): Symfony\\Component\\Config\\Loader\\FileLoader->import('../../../src/Ec...', 'annotation', false, '/home/...', NULL)\n#6 /home/public_html/test/vendor/symfony/routing/Loader/YamlFileLoader.php(99): Symfony\\Component\\Routing\\Loader\\YamlFileLoader->parseImport(Object(Symfony\\Component\\Routing\\RouteCollection), Array, '/home/...', '/home/...')\n#7 /home/public_html/test/vendor/symfony/config/Loader/FileLoader.php(167): Symfony\\Component\\Routing\\Loader\\YamlFileLoader->load('/home/...', NULL)\n#8 /home/public_html/test/vendor/symfony/config/Loader/FileLoader.php(87): Symfony\\Component\\Config\\Loader\\FileLoader->doImport('/home/...', NULL, false, '/home/...')\n#9 /home/public_html/test/vendor/symfony/routing/Loader/Configurator/RoutingConfigurator.php(45): Symfony\\Component\\Config\\Loader\\FileLoader->import('/home/...', NULL, false, '/home/...', NULL)\n#10 /home/public_html/test/src/Eccube/Kernel.php(203): Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator->import('/home/...')\n#11 /home/public_html/test/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php(213): Eccube\\Kernel->configureRoutes(Object(Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator))\n#12 /home/public_html/test/vendor/symfony/routing/Loader/ObjectLoader.php(55): Eccube\\Kernel->loadRoutes(Object(Symfony\\Component\\Routing\\Loader\\ContainerLoader), 'prod')\n#13 /home/public_html/test/vendor/symfony/config/Loader/DelegatingLoader.php(37): Symfony\\Component\\Routing\\Loader\\ObjectLoader->load('kernel::loadRou...', 'service')\n#14 /home/public_html/test/vendor/symfony/framework-bundle/Routing/DelegatingLoader.php(67): Symfony\\Component\\Config\\Loader\\DelegatingLoader->load('kernel::loadRou...', 'service')\n#15 /home/public_html/test/vendor/symfony/framework-bundle/Routing/Router.php(65): Symfony\\Bundle\\FrameworkBundle\\Routing\\DelegatingLoader->load('kernel::loadRou...', 'service')\n#16 /home/public_html/test/src/Eccube/Form/Type/Admin/SecurityType.php(225): Symfony\\Bundle\\FrameworkBundle\\Routing\\Router->getRouteCollection()\n#17 /home/public_html/test/src/Eccube/Form/Type/Admin/SecurityType.php(78): Eccube\\Form\\Type\\Admin\\SecurityType->getRouteCollection()\n#18 /home/public_html/test/vendor/symfony/form/ResolvedFormType.php(102): Eccube\\Form\\Type\\Admin\\SecurityType->buildForm(Object(Symfony\\Component\\Form\\FormBuilder), Array)\n#19 /home/public_html/test/vendor/symfony/form/FormFactory.php(58): Symfony\\Component\\Form\\ResolvedFormType->buildForm(Object(Symfony\\Component\\Form\\FormBuilder), Array)\n#20 /home/public_html/test/vendor/symfony/form/FormFactory.php(43): Symfony\\Component\\Form\\FormFactory->createNamedBuilder('admin_security', Object(Symfony\\Component\\Form\\ResolvedFormType), NULL, Array)\n#21 /home/public_html/test/src/Eccube/Controller/Admin/Setting/System/SecurityController.php(48): Symfony\\Component\\Form\\FormFactory->createBuilder('Eccube\\\\Form\\\\Typ...')\n#22 /home/public_html/test/vendor/symfony/http-kernel/HttpKernel.php(181): Eccube\\Controller\\Admin\\Setting\\System\\SecurityController->index(Object(Symfony\\Component\\HttpFoundation\\Request), Object(Eccube\\Util\\CacheUtil))\n#23 /home/public_html/test/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#24 /home/public_html/test/vendor/symfony/http-kernel/Kernel.php(197): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#25 /home/public_html/test/index.php(83): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#26 {main}"] [GET, /test/administrator/setting/system/security, xxx.xxx.xxx.xxx, https://test/administrator/setting/system/system, Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0] [2024-12-13T18:19:20.999042+09:00] php.CRITICAL [N/A] [bc95e80] [1] [Symfony\Component\ErrorHandler\ErrorHandler:handleException:519] - Uncaught Error: Typed property Symfony\Component\Routing\Attribute\Route::$env must not be accessed before initialization {"exception":"[object] (Error(code: 0): Typed property Symfony\\Component\\Routing\\Attribute\\Route::$env must not be accessed before initialization at /home/public_html/test/vendor/symfony/routing/Attribute/Route.php:253)"} [GET, /test/administrator/setting/system/security, xxx.xxx.xxx.xxx, https://test/administrator/setting/system/system, Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0] [2024-12-13T18:19:20.979185+09:00] app.DEBUG [8195a5da] [bc95e80] [1] [Eccube\EventListener\LogListener:onKernelController:111] - LOGIC START ["admin_setting_system_security"] [GET, /test/administrator/setting/system/security, xxx.xxx.xxx.xxx, https://test/administrator/setting/system/system, Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0] [2024-12-13T18:19:20.979013+09:00] admin.DEBUG [8195a5da] [bc95e80] [1] [Eccube\Log\Logger:log:64] - Begin Transaction. [] [GET, /test/administrator/setting/system/security, xxx.xxx.xxx.xxx, https://test/administrator/setting/system/system, Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0] [2024-12-13T18:19:20.978097+09:00] app.DEBUG [8195a5da] [bc95e80] [1] [Eccube\EventListener\LogListener:onKernelRequest:86] - PROCESS START ["admin_setting_system_security"] [GET, /test/administrator/setting/system/security, xxx.xxx.xxx.xxx, https://test/administrator/setting/system/system, Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0] [2024-12-13T18:19:20.973352+09:00] app.DEBUG [N/A] [bc95e80] [N/A] [Eccube\EventListener\LogListener:onKernelRequestEarly:73] - INIT [] [GET, /test/administrator/setting/system/security, xxx.xxx.xxx.xxx, https://test/administrator/setting/system/system, Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0] |
tattsu |
投稿日時: 2024/12/15 15:58
対応状況: −−−
|
仙人 登録日: 2023/12/23 居住地: 投稿: 379 |
Re: Securitychecker42 エラー 簡単インストールしてSecuritychecker42のインストール・実行以外は何かされましたか?
他のプラグインは導入されていますか?
|
Rights |
投稿日時: 2024/12/16 9:45
対応状況: −−−
|
一人前 登録日: 2019/3/12 居住地: 投稿: 123 |
Re: Securitychecker42 エラー 引用:
他のプラグインを導入していますが、導入済みプラグインの一覧に表示があるだけで、新規インストールの状態のため、app/Plugin 以下には、こちらで追加したプラグインのディレクトリ、ファイルは存在していない状態です。 |
Rights |
投稿日時: 2024/12/17 18:59
対応状況: −−−
|
一人前 登録日: 2019/3/12 居住地: 投稿: 123 |
Re: Securitychecker42 エラー その後、試行した点の追記です。
コンソールからキャッシュをクリアする事で、セキュリティ管理に再度入ることができました。 ただ、「SSLの強制」をチェックすると同様の現象が起き、何度かキャッシュのクリアを挟みながら、「SSLの強制」の有効化、セキュリティチェックでの「管理画面へのアクセスには常に SSL を利用しているか」と「TRUSTED_HOSTSを設定しているか」が問題なしとなりました。 単にキャッシュ(生成)の問題と認識してもよいのでしょうか? |
tattsu |
投稿日時: 2024/12/17 23:42
対応状況: −−−
|
仙人 登録日: 2023/12/23 居住地: 投稿: 379 |
Re: Securitychecker42 エラー EC-CUBEではないですが、EC-CUBEがベースとしているSymfonyアプリケーションで、同エラーに関してキャッシュクリアで解決したという報告もあるようです。
https://github.com/symfony/symfony/issues/45802#issuecomment-1076097966 phpのバージョンを上げて解決したというコメントもありますが、基本的にはキャッシュの問題のようですね。
|
Rights |
投稿日時: 2024/12/19 17:14
対応状況: 解決済
|
一人前 登録日: 2019/3/12 居住地: 投稿: 123 |
Re: Securitychecker42 エラー ありがとうございます。
承知いたしました。 |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |