バージョン選択

フォーラム

メニュー

オンライン状況

60 人のユーザが現在オンラインです。 (43 人のユーザが フォーラム を参照しています。)
登録ユーザ: 4
ゲスト: 56
tattsu kmorita red h_tanaka もっと...

サイト内検索

質問 > フロント機能 > フロント表示でシステムエラー

フロント機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
h_tanaka
投稿日時: 2018/12/4 10:23
対応状況: −−−
登録日: 2016/7/22
居住地: 愛媛県
投稿: 1638
オンライン
フロント表示でシステムエラー
EC-CUBE3.0.15

本番環境から検証環境を作成しました。
管理画面の表示は問題なかったのですが、フロントでシステムエラーが発生しました。
なぜかデバッグモードではエラーが発生しませんでした。
エラーログを見たところ、エラーの原因となる処理がキャッシュファイル内にあったので、そこをコメントアウトすると正常に表示されるようになりました。

しかしキャッシュファイルの修正なので当然ながらキャッシュを削除するとエラーが再発してしまいます。
エラーを根本解決するには、どのソースを修正すればよいでしょうか?

■修正ソース
app/cache/twig/production/08211630/8f/8f7e278b2f5f3cb908d3a530656c85468ac63908e9efb244687643c6984f1a21.php
    // line 54
    public function block_choice_widget_collapsed($context, array $blocks = array())
    {
        // line 55
        if (((((($context["required"] ?? null) && (null === ($context["placeholder"] ?? null))) &&  !($context["placeholder_in_choices"] ?? null)) &&  !($context["multiple"] ?? null)) && ( !$this->getAttribute(($context["attr"] ?? null), "size", array(), "any", true, true) || ($this->getAttribute(($context["attr"] ?? null), "size", array()) <= 1)))) {
            // line 56
            $context["required"] = false;
        }
        // line 58
        echo "<select ";
        $this->displayBlock("widget_attributes", $context, $blocks);
        if (($context["multiple"] ?? null)) {
            echo " multiple=\"multiple\"";
        }
        echo ">";
        // line 59
        if ( !(null === ($context["placeholder"] ?? null))) {
            // line 60
            echo "<option value=\"\"";
            if ((($context["required"] ?? null) && twig_test_empty(($context["value"] ?? null)))) {
                echo " selected=\"selected\"";
            }
            echo ">";
            // ★↓ここをコメントアウト
            // echo twig_escape_filter($this->env, (((($context["placeholder"] ?? null) != "")) ? ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["placeholder"] ?? null), array(), ($context["translation_domain"] ?? null))) : ("")), "html", null, true);
            echo "</option>";
        }
        // line 62
        if ((twig_length_filter($this->env, ($context["preferred_choices"] ?? null)) > 0)) {
            // line 63
            $context["options"] = ($context["preferred_choices"] ?? null);
            // line 64
            $this->displayBlock("choice_widget_options", $context, $blocks);
            // line 65
            if (((twig_length_filter($this->env, ($context["choices"] ?? null)) > 0) &&  !(null === ($context["separator"] ?? null)))) {
                // line 66
                echo "<option disabled=\"disabled\">";
                echo twig_escape_filter($this->env, ($context["separator"] ?? null), "html", null, true);
                echo "</option>";
            }
        }
        // line 69
        $context["options"] = ($context["choices"] ?? null);
        // line 70
        $this->displayBlock("choice_widget_options", $context, $blocks);
        // line 71
        echo "</select>";
    }


■エラーログ
[2018-12-04 09:59:07,118326] front.ERROR [d2a562c6] [fa289ec1] [NULL] [EccubeExceptionHandler:handle:44] - Attempted to load class "ConfigCacheFactory" from namespace "Symfony\Component\Config".
Did you forget a "use" statement for another namespace? [{"namespace":"","short_class":"","class":"","type":"","function":"","file":"/home/toebisu729/public_html/test/vendor/symfony/translation/Translator.php","line":476,"args":[]},{"namespace":"Symfony\\Component\\Translation","short_class":"Translator","class":"Symfony\\Component\\Translation\\Translator","type":"->","function":"getConfigCacheFactory","file":"/home/toebisu729/public_html/test/vendor/symfony/translation/Translator.php","line":323,"args":[]},{"namespace":"Symfony\\Component\\Translation","short_class":"Translator","class":"Symfony\\Component\\Translation\\Translator","type":"->","function":"initializeCacheCatalogue","file":"/home/toebisu729/public_html/test/vendor/symfony/translation/Translator.php","line":290,"args":[["string","ja"]]},{"namespace":"Symfony\\Component\\Translation","short_class":"Translator","class":"Symfony\\Component\\Translation\\Translator","type":"->","function":"loadCatalogue","file":"/home/toebisu729/public_html/test/vendor/symfony/translation/Translator.php","line":248,"args":[["string","ja"]]},{"namespace":"Symfony\\Component\\Translation","short_class":"Translator","class":"Symfony\\Component\\Translation\\Translator","type":"->","function":"getCatalogue","file":"/home/toebisu729/public_html/test/vendor/symfony/translation/Translator.php","line":209,"args":[["string","ja"]]},{"namespace":"Symfony\\Component\\Translation","short_class":"Translator","class":"Symfony\\Component\\Translation\\Translator","type":"->","function":"trans","file":"/home/toebisu729/public_html/test/vendor/symfony/twig-bridge/Extension/TranslationExtension.php","line":93,"args":[["string","全ての商品"],["array",[]],["string","messages"],["null",null]]},{"namespace":"Symfony\\Bridge\\Twig\\Extension","short_class":"TranslationExtension","class":"Symfony\\Bridge\\Twig\\Extension\\TranslationExtension","type":"->","function":"trans","file":"/home/toebisu729/public_html/test/app/cache/twig/production/08211630/8f/8f7e278b2f5f3cb908d3a530656c85468ac63908e9efb244687643c6984f1a21.php","line":286,"args":[["string","全ての商品"],["array",[]],["null",null]]},{"namespace":"","short_class":"__TwigTemplate_c56c634b8a36f6f4dc990a76258c146ff950bb49f9437db87d4696ecbda8b03f","class":"__TwigTemplate_c56c634b8a36f6f4dc990a76258c146ff950bb49f9437db87d4696ecbda8b03f","type":"->","function":"block_choice_widget_collapsed","file":"/home/toebisu729/public_html/test/vendor/twig/twig/lib/Twig/Template.php","line":215,"args":[["array",{"value":["string",""],"attr":["array",{"class":["string","form-control"]}],"form":["object","Symfony\\Component\\Form\\FormView"],"id":["string","category_id"],"name":["string","category_id"],"full_name":["string","category_id"],"disabled":["boolean",false],"label":["string","商品カテゴリから選ぶ"],"label_format":["null",null],"multipart":["boolean",false],"block_prefixes":["array",[["string","form"],["string","choice"],["string","entity"],["string","_category_id"]]],"unique_block_prefix":["string","_category_id"],"translation_domain":["null",null],"cache_key":["string","_category_id_entity"],"read_only":["boolean",false],"errors":["object","Symfony\\Component\\Form\\FormErrorIterator"],"valid":["boolean",true],"data":["null",null],"required":["boolean",false],"max_length":["null",null],"pattern":["null",null],"size":["null",null],"label_attr":["array",[]],"compound":["boolean",false],"method":["string","POST"],"action":["string",""],"submitted":["boolean",false],"help":["null",null],"freeze":["boolean",false],"freeze_display_text":["boolean",true],"multiple":["boolean",false],"expanded":["boolean",false],"preferred_choices":["array",[]],"choices":["array",{"20":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"26":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"48":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"64":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"66":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"65":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"11":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"33":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"58":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"34":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"70":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"71":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"72":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"8":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"63":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"76":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"77":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"68":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"28":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"57":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"74":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"73":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"67":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"85":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"22":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"80":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"31":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"32":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"36":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"69":["object","Symfony\\Component\\Form\\ChoiceList\\View\\ChoiceView"],"84":
...(後略)
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
 » フロント表示でシステムエラー h_tanaka 2018/12/4 10:23

 



ログイン


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

統計情報

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

投稿数ランキング

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