バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > フロント機能 > システムエラーの修復方法をおしえてください。

フロント機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
total
投稿日時: 2015/3/24 11:52
対応状況: −−−
半人前
登録日: 2010/10/3
居住地:
投稿: 11
システムエラーの修復方法をおしえてください。
EC-CUBEバージョン2.12.6
PHPバージョンPHP 5.3.19
DBバージョンMySQL 5.0.67-log

お世話になります。

管理画面>デザイン管理>PC>から
商品購入/お支払方法・お届け時間等の指定
商品購入/ご入力内容のご確認
MYページ/購入履歴詳細

の3ページを修正していたのですが、保存後

「システムエラーが発生しました。
大変お手数ですが、サイト管理者までご連絡ください。」

と出るようになってしまいました。

修復方法がわかる方がいればご教授していただければ幸いです。
よろしくお願いします。

エラーログです
/shopping/payment.php



Fatal error(E_USER_ERROR): Smarty error: [in /virtual/www//data/Smarty/templates/default/shopping/payment.tpl line 223]: syntax error: mismatched tag {/foreach}. expected {/if} (opened line 209). (Smarty_Compiler.class.php, line 2338) on [/virtual/www/data/module/Smarty/libs/Smarty.class.php(1093)] from 122.18.115.227
customer_id = 1
/virtual/www/shopping/payment.php(34): LC_Page_Shopping_Payment_Ex->process
/virtual/www/data/class_extends/page_extends/shopping/LC_Page_Shopping_Payment_Ex.php(56): LC_Page_Shopping_Payment->process
/virtual/www/data/class/pages/shopping/LC_Page_Shopping_Payment.php(68): LC_Page->sendResponse
/virtual/www/data/class/pages/LC_Page.php(144): SC_Display->prepare
/virtual/www/data/class/SC_Display.php(77): SC_View->getResponse
/virtual/www/data/class/SC_View.php(100): Smarty->fetch
/virtual/www/data/module/Smarty/libs/Smarty.class.php(1263): include
/virtual/www/data/Smarty/templates_c/default/%%F1^F15^F158E3F4%%site_frame.tpl.php(102): Smarty->_smarty_include
/virtual/www/data/module/Smarty/libs/Smarty.class.php(1869): include
/virtual/www/data/Smarty/templates_c/default/%%58^587^5876E692%%site_main.tpl.php(135): Smarty->_smarty_include
/virtual/www/data/module/Smarty/libs/Smarty.class.php(1867): Smarty->_compile_resource
/virtual/www/data/module/Smarty/libs/Smarty.class.php(1422): Smarty->_compile_source
/virtual/www/data/module/Smarty/libs/Smarty.class.php(1489): Smarty_Compiler->_compile_file
/virtual/www/data/module/Smarty/libs/Smarty_Compiler.class.php(312): Smarty_Compiler->_compile_tag
/virtual/www/data/module/Smarty/libs/Smarty_Compiler.class.php(533): Smarty_Compiler->_pop_tag
/virtual/www/data/module/Smarty/libs/Smarty_Compiler.class.php(2338): Smarty_Compiler->_syntax_error
/virtual/www/data/module/Smarty/libs/Smarty_Compiler.class.php(2256): Smarty->_trigger_fatal_error
/virtual/www/data/module/Smarty/libs/Smarty.class.php(1815): Smarty->trigger_error
/virtual/www/data/module/Smarty/libs/Smarty.class.php(1093): trigger_error
red
投稿日時: 2015/3/24 12:37
対応状況: −−−
登録日: 2010/2/15
居住地: 東京都
投稿: 1570
Re: システムエラーの修復方法をおしえてください。
syntax error: mismatched tag {/foreach}. expected {/if} (opened line 209)

だそうです


----------------
EC-CUBEのカスタマイズ、トラブル解決承ります
お気軽にお問い合わせ下さい
https://www.ec-cube.net/integrate/partner/partner.php?partner_id=690

total
投稿日時: 2015/3/24 13:01
対応状況: −−−
半人前
登録日: 2010/10/3
居住地:
投稿: 11
Re: システムエラーの修復方法をおしえてください。
回答ありがとうございます。

ログの見方に疎いもので、この中のどこかを修正したら良いということでしょうか?


shopping/payment.php の209〜223行です。

<!--{if $is_multiple}-->
<span class="st">▼<!--{$shippingItem.shipping_name01}--><!--{$shippingItem.shipping_name02}-->
<!--{$arrPref[$shippingItem.shipping_pref]}--><!--{$shippingItem.shipping_addr01}--><!--{$shippingItem.shipping_addr02}--></span><br/>
<!--{/if}-->
<!--★お届け日★-->
<!--{assign var=key value="deliv_date`$index`"}-->
<span class="attention"><!--{$arrErr[$key]}--></span>
お届け日:
<!--{if !$arrDelivDate}-->
ご指定頂けません。
<!--{else}-->
<select name="<!--{$key}-->" id="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
<option value="" selected="">指定なし</option>
<!--{assign var=shipping_date_value value=$arrForm[$key].value|default:$shippingItem.shipping_date}-->
<!--{html_options options=$arrDelivDate selected=$shipping_date_value}-->
yuh
投稿日時: 2015/3/25 0:52
対応状況: −−−
登録日: 2013/1/9
居住地: 大阪
投稿: 1819
Re: システムエラーの修復方法をおしえてください。
それだけだとわかんないので、もう少し記載してください。
tsuji
投稿日時: 2015/3/25 10:38
対応状況: −−−
仙人
登録日: 2013/11/19
居住地:
投稿: 958
Re: システムエラーの修復方法をおしえてください。
total 様

> ログの見方に疎いもので、この中のどこかを修正したら良いということでしょうか?

ログは英語で書かれているだけなので、翻訳サイトなどで翻訳して
みるとわかる時もありますよ。

今回で言えば、下記の部分の
引用:

Fatal error(E_USER_ERROR): Smarty error: [in /virtual/www//data/Smarty/templates/default/shopping/payment.tpl line 223]: syntax error: mismatched tag {/foreach}. expected {/if} (opened line 209). (Smarty_Compiler.class.php, line 2338) on [/virtual/www/data/module/Smarty/libs/Smarty.class.php(1093)] from 122.18.115.227
customer_id = 1


ここあたりでしょうか?
引用:

syntax error: mismatched tag {/foreach}. expected {/if} (opened line 209).


smartyの終了のタグとして{/if}を期待したが{/foreach}がきている
と書いてあります。なので、smartyの開始タグと終了タグが
ちゃんとあるかどうかをまずチェックしてみてください。

EC-CUBEデフォからあまりカスタマイズを加えていないのであれば、
デフォと比較をしてみるのも手です。


----------------
****************************************
株式会社システムフレンド
辻 拓也(takuya tsuji)
改造専門店・EC-CUBE工房
****************************************

スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


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

統計情報

総メンバー数は89,052名です
総投稿数は110,021件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1646
8
red
1570
9
mcontact
1296
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.