質問 > フロント機能 > マイページ➡お気に入り一覧 閲覧時エラー |
フロント機能
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
be-s |
投稿日時: 2018/7/2 18:36
対応状況: −−−
|
一人前 登録日: 2016/2/2 居住地: São Paulo 投稿: 115 |
マイページ➡お気に入り一覧 閲覧時エラー ▼テンプレート
[EC-CUBE] 3.0.15、アップデート [レンタルサーバ] heteml [OS] Linux [PHP] PHP7.0.15 [データベース] mysql [WEBサーバ] apache [ブラウザ] chrome [現象] マイグレーションでバージョンアップ後に ログイン➡マイページ➡お気に入り一覧 閲覧時エラーにエラーが出るようになりました。 index_dev.php で下記のようにエラーが出ています。 INFO - INIT INFO - Matched route "mypage_favorite". Context: {"route_parameters":{"_controller":"\\Eccube\\Controller\\Mypage\\MypageController::favorite","_route":"mypage_favorite"},"request_uri":"https://www.tuscans.jp/version/index_dev.php/mypage/favorite"} INFO - PROCESS START Context: ["mypage_favorite"] INFO - > GET /version/index_dev.php/mypage/favorite INFO - LOGIC START Context: ["mypage_favorite"] INFO - Matched route "block_cart". Context: {"route_parameters":{"_controller":"\\Eccube\\Controller\\Block\\CartController::index","_route":"block_cart"},"request_uri":"https://www.tuscans.jp/version/index_dev.php/block/cart"} INFO - Matched route "block_search_product". Context: {"route_parameters":{"_controller":"\\Eccube\\Controller\\Block\\SearchProductController::index","_route":"block_search_product"},"request_uri":"https://www.tuscans.jp/version/index_dev.php/block/search_product"} ERROR - Twig_Error_Runtime: Variable "FavoriteProduct" does not exist in "__string_template__251bfe5ffeddf613d755cbbb351250c05b4e1f526e03aae395379f94b570a518" at line 42. (uncaught exception) at /home/sites/heteml/users/t/u/s/tuscans/web/tuscans.jp/version/vendor/twig/twig/lib/Twig/Template.php line 487 Context: {"exception":"Exception(Twig_Error_Runtime): Variable \"FavoriteProduct\" does not exist in \"__string_template__251bfe5ffeddf613d755cbbb351250c05b4e1f526e03aae395379f94b570a518\" at line 42."} CRITICAL - Twig_Error_Runtime: Variable "FavoriteProduct" does not exist in "__string_template__251bfe5ffeddf613d755cbbb351250c05b4e1f526e03aae395379f94b570a518" at line 42. (uncaught exception) at /home/sites/heteml/users/t/u/s/tuscans/web/tuscans.jp/version/vendor/twig/twig/lib/Twig/Template.php line 487 Context: {"exception":"Exception(Twig_Error_Runtime): Variable \"FavoriteProduct\" does not exist in \"__string_template__251bfe5ffeddf613d755cbbb351250c05b4e1f526e03aae395379f94b570a518\" at line 42."} INFO - LOGIC END Context: ["mypage_favorite"] INFO - < 500 INFO - PROCESS END お手数なのですが原因分かりますでしょうか? 宜しお願い致します。 |
468 |
投稿日時: 2018/7/3 2:40
対応状況: −−−
|
神 登録日: 2008/10/26 居住地: 投稿: 3217 |
Re: マイページ➡お気に入り一覧 閲覧時エラー twig内で「FavoriteProduct」が見つからないというエラーが発生しているようです。
/src/Eccube/Resource/template/default/Mypage/favorite.twigのFavoriteProductが記述されている位置を確認されてみては如何でしょうか?
|
be-s |
投稿日時: 2018/7/3 10:53
対応状況: 解決済
|
一人前 登録日: 2016/2/2 居住地: São Paulo 投稿: 115 |
Re: マイページ➡お気に入り一覧 閲覧時エラー ご対応ありがとうございます。
favorite.twig 修正しましたら解決できました。 大変助かりました。 |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |