質問 > その他 > Service拡張を試したらページが開けなくなった |
その他
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
VKZ1286 |
投稿日時: 2022/3/12 19:06
対応状況: 確認中
|
半人前 登録日: 2022/2/2 居住地: 投稿: 29 |
Service拡張を試したらページが開けなくなった [EC-CUBE] 4.1.2
[PHP] 7.4 [データベース] MySQL 10.5 受注ステータス変更時の処理をカスタマイズするため、下記のサイトを参考にServiceクラスの拡張を試みましたところ、サイトが開けなくなってしまいました。 ▼EC-CUBE4のServiceクラスの拡張 https://kumahiyo.com/extend-service/ ▼EC-CUBE4 Serviceクラスのカスタマイズ方法 https://takelg.com/ec_cube4_service_class_customize/ ▼具体的に行った作業 /app/config/eccube/services.yaml 末尾に追記
/app/Customize/Service/にOrderStateMachine.phpを作成
上記2ファイルをサーバーにアップし、サイトにアクセスしたところ以下のエラーが表示されました。 引用: Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "security.logout_listener.admin" has a dependency on a non-existent service "eccube.security.logout.success_handler". in /home/ xxx/xxx.com/public_html/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:86 Stack trace: #0 /home/ xxx/xxx.com/public_html/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php(83): Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue(Object(Symfony\Component\DependencyInjection\Reference), false) #1 /home/ xxx/xxx.com/public_html/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(49): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue(Array, false) #2 /home/ xxx/xxx.com/public_html/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php(92): Symfony\Com in /home/ xxx/xxx.com/public_html/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php on line 86 そのため「/app/Customize/Service/にOrderStateMachine.php」を削除、「/app/config/eccube/services.yaml」を元に戻しましたが同じエラーが表示されてしまい、サイトにアクセスできません。 引用: Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "security.logout_listener.admin" has a dependency on a non-existent service "eccube.security.logout.success_handler". in /home/ xxx/xxx.com/public_html/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:86 Stack trace: #0 /home/ xxx/xxx.com/public_html/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php(83): Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue(Object(Symfony\Component\DependencyInjection\Reference), false) #1 /home/ xxx/xxx.com/public_html/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(49): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue(Array, false) #2 /home/ xxx/xxx.com/public_html/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php(92): Symfony\Com in /home/ xxx/xxx.com/public_html/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php on line 86 コマンド操作もできなくなってしまったので、「/var/cache/prod/」のキャッシュを削除しましたが状況は改善しません。 上記の作業で操作した以外のファイルが書き換えられたり壊れたりしてしまったのでしょうか? 解決法をお分かりの方いらっしゃいましたら、ヒントでも良いので助言いただけますと幸いです。 宜しくお願い致します。 |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
» Service拡張を試したらページが開けなくなった | VKZ1286 | 2022/3/12 19:06 |
Re: Service拡張を試したらページが開けなくなった | VKZ1286 | 2022/3/14 12:42 |