バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > 管理機能 > 管理機能で新しくページ追加でエラーが発生

管理機能

新規スレッドを追加する

スレッド表示 | 古いものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
qwesa0
投稿日時: 2021/4/22 13:08
対応状況: −−−
半人前
登録日: 2021/3/24
居住地:
投稿: 12
Re: 管理機能で新しくページ追加でエラーが発生
自分で解決できました。
qwesa0
投稿日時: 2021/4/22 11:17
対応状況: 解決済
半人前
登録日: 2021/3/24
居住地:
投稿: 12
管理機能で新しくページ追加でエラーが発生
▼テンプレート
[EC-CUBE]3.0.16
[レンタルサーバ]AWS
[OS]centos7
[PHP]7.1.8
[ブラウザ]chrome
[データベース]postresql

管理機能で新しくページを追加しています。
開発環境では問題なく表示できますが、テスト環境に反映したらエラーが表示されます。
「システムエラーが発生しました。」
色々試した結果、新しく作成したコントローラーで問題が発生するところまでわかりましたが、解決方法がわからない状況です。

コントローラーの中身を他のページのものですり替えると表示されますが、新しく作成した内容だけ問題になっております。

ご教授いただけますと幸いです。
宜しくお願いいたします。
既存のページを入れ替えて表示可能なソース

<?php
namespace Plugin\Custom\Controller\Admin;

use Eccube\Application;
use Symfony\Component\HttpFoundation\Request;
use Plugin\Custom\Common\CommonUploader;
use Plugin\Custom\Common\S3NoViewBacketCommandFactory;

class FeeFreeController
{
    public function index(Application $app, Request $request){
        $builder = $app['form.factory']->createBuilder('admin_payment_maint');
        $form = $builder->getForm();
        $form->handleRequest($request);



        return $app->render('Custom/Resource/template/admin/Maint/payment_maint.twig', array(
            'form' => $form->createView(),
        ));
    }
}


テスト環境でエラーが出ている状態のソース
<?php
namespace Plugin\Custom\Controller\Admin;

use Eccube\Application;
use Symfony\Component\HttpFoundation\Request;
use Plugin\Custom\Common\CommonUploader;
use Plugin\Custom\Common\S3NoViewBacketCommandFactory;

class FeeFreeController
{

    public function index(Application $app, Request $request){
        $builder = $app['form.factory']->createBuilder('admin_fee_free');
        $form = $builder->getForm();
        $form->handleRequest($request);

        return $app->render('Custom/Resource/template/admin/free/fee_free.twig', array(
            'form' => $form->createView(),
        ));
    }
}


fee_free.twigの中身です。
{#
This file is part of EC-CUBE

Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.

http://www.lockon.co.jp/

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#}
{% extends 'default_frame.twig' %}

{% set menus = ['setting', 'shop', 'fee_free'] %}

{% block title %}基本情報設定{% endblock %}
{% block sub_title %}手数料設定{% endblock %}

{% form_theme form 'Form/bootstrap_3_horizontal_layout.html.twig' %}


{% block stylesheet %}
{% endblock stylesheet %}

{% block javascript %}
{% endblock javascript %}

{% block main %}
<div class="row" id="aside_wrap">
    <form name="form" method="post" action="?">

    </form>
</div>
{% endblock %}
スレッド表示 | 古いものから 前のトピック | 次のトピック | トップ


 



ログイン


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

統計情報

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

投稿数ランキング

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
1286
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.