バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

プラグイン > その他 > 移動前の認証キーを入力しましたら、エラーが起きてしました。

その他

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
tkm12121
投稿日時: 2020/4/28 12:07
対応状況: −−−
半人前
登録日: 2020/3/19
居住地:
投稿: 13
Re: 移動前の認証キーを入力しましたら、エラーが起きてしました。
ItemType.phpファイルはリモートサーバー上にあがっております。
<?php

《ItemType.phpデータ》
/*
* This file is part of EC-CUBE
*
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
*
* http://www.ec-cube.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Eccube\Form\Type;

use Eccube\Common\EccubeConfig;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\Options;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Validator\Constraints as Assert;

/**
* Class PhoneNumberType
*/
class PhoneNumberType extends AbstractType
{
/**
* @var EccubeConfig
*/
protected $eccubeConfig;

/**
* PhoneNumberType constructor.
*
* @param EccubeConfig $eccubeConfig
*/
public function __construct(EccubeConfig $eccubeConfig)
{
$this->eccubeConfig = $eccubeConfig;
}

/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
// 全角英数を事前に半角にする
$builder->addEventSubscriber(new \Eccube\Form\EventListener\ConvertKanaListener());
$builder->addEventSubscriber(new \Eccube\Form\EventListener\TruncateHyphenListener());
}

/**
* {@inheritdoc}
*/
public function configureOptions(OptionsResolver $resolver)
{
$eccubeConfig = $this->eccubeConfig;
$constraints = function (Options $options) use ($eccubeConfig) {
$constraints = [];
// requiredがtrueに指定されている場合, NotBlankを追加
if (isset($options['required']) && true === $options['required']) {
$constraints[] = new Assert\NotBlank();
}

$constraints[] = new Assert\Length([
'max' => $eccubeConfig['eccube_tel_len_max'],
]);

$constraints[] = new Assert\Type([
'type' => 'numeric',
'message' => 'form_error.numeric_only',
]);

return $constraints;
};

$resolver->setDefaults([
'options' => ['constraints' => []],
'constraints' => $constraints,
'attr' => [
'placeholder' => 'common.phone_number_sample',
],
'trim' => true,
]);
}

/**
* {@inheritdoc}
*/
public function getParent()
{
return TextType::class;
}

/**
* {@inheritdoc}
*/
public function getBlockPrefix()
{
return 'phone_number';
}
}



サーバーは変更せず、DNSの変更のみのドメイン変更です。
また移行時は移行前のサイトデータを、移行後のサイトに手入力でコピペしてやっており、なぜエラーが起きているのか状況が分からないです。
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   移動前の認証キーを入力しましたら、エラーが起きてしました。 tkm12121 2020/4/28 11:43
     Re: 移動前の認証キーを入力しましたら、エラーが起きてしました。 468 2020/4/28 11:56
     » Re: 移動前の認証キーを入力しましたら、エラーが起きてしました。 tkm12121 2020/4/28 12:07
         Re: 移動前の認証キーを入力しましたら、エラーが起きてしました。 468 2020/4/28 12:33
           Re: 移動前の認証キーを入力しましたら、エラーが起きてしました。 tkm12121 2020/4/28 12:44
             Re: 移動前の認証キーを入力しましたら、エラーが起きてしました。 468 2020/4/28 17:37

 



ログイン


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

統計情報

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

投稿数ランキング

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