バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

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

その他

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
tkm12121
投稿日時: 2020/4/28 11:43
対応状況: 確認中
半人前
登録日: 2020/3/19
居住地:
投稿: 13
移動前の認証キーを入力しましたら、エラーが起きてしました。
eccube4を別のドメインに移行の際、移動前のプラグイン認証キーを入力しましたら、エラーが起きてしまいました。

データベースの認証キーを削除しましたが、元にもどりません。
どうしたらよろしいでしょうか?

下記エラー内容となります。よろしくお願いいたします。

(2/2) FileLoaderLoadException
Expected to find class "Eccube\Form\Type\ItemType" in file "/home/nagoyacase/nagoya-case.co.jp/public_html/ec/src/Eccube/Form/Type/ItemType.php" while importing services from resource "../../../src/Eccube/*", but it was not found! Check the namespace prefix used with the resource in /home/nagoyacase/nagoya-case.co.jp/public_html/ec/app/config/eccube/services.yaml (which is loaded in resource "/home/nagoyacase/nagoya-case.co.jp/public_html/ec/app/config/eccube/services.yaml").

in FileLoader.php line 168
at FileLoader->doImport('/home/nagoyacase/nagoya-case.co.jp/public_html/ec/app/config/eccube/services.yaml', null, false, null)
in FileLoader.php line 90
at FileLoader->import('/home/nagoyacase/nagoya-case.co.jp/public_html/ec/app/config/eccube/services.yaml')
in GlobFileLoader.php line 27
at GlobFileLoader->load('/home/nagoyacase/nagoya-case.co.jp/public_html/ec/app/config/eccube/services.{php,xml,yaml,yml}', 'glob')
in DelegatingLoader.php line 40
at DelegatingLoader->load('/home/nagoyacase/nagoya-case.co.jp/public_html/ec/app/config/eccube/services.{php,xml,yaml,yml}', 'glob')
in Kernel.php line 119
at Kernel->configureContainer(object(ContainerBuilder), object(DelegatingLoader))
in MicroKernelTrait.php line 80
at Kernel->Symfony\Bundle\FrameworkBundle\Kernel\{closure}(object(ContainerBuilder))
in ClosureLoader.php line 38
at ClosureLoader->load(object(Closure), null)
in DelegatingLoader.php line 40
at DelegatingLoader->load(object(Closure))
in MicroKernelTrait.php line 83
at Kernel->registerContainerConfiguration(object(DelegatingLoader))
in Kernel.php line 770
at Kernel->buildContainer()
in Kernel.php line 636
at Kernel->initializeContainer()
in Kernel.php line 135
at Kernel->boot()
in Kernel.php line 89
at Kernel->boot()
in Kernel.php line 195
at Kernel->handle(object(Request))
in index.php line 76



(1/2) InvalidArgumentException
Expected to find class "Eccube\Form\Type\ItemType" in file "/home/nagoyacase/nagoya-case.co.jp/public_html/ec/src/Eccube/Form/Type/ItemType.php" while importing services from resource "../../../src/Eccube/*", but it was not found! Check the namespace prefix used with the resource.

in FileLoader.php line 163
at FileLoader->findClasses('Eccube\\', '../../../src/Eccube/*', '../../../src/Eccube/{Annotation,Common,Entity,Exception,Log,Plugin,ServiceProvider,Resource,Doctrine/ORM/tools/}')
in FileLoader.php line 57
at FileLoader->registerClasses(object(Definition), 'Eccube\\', '../../../src/Eccube/*', '../../../src/Eccube/{Annotation,Common,Entity,Exception,Log,Plugin,ServiceProvider,Resource,Doctrine/ORM/tools/}')
in YamlFileLoader.php line 584
at YamlFileLoader->parseDefinition('Eccube\\', array('resource' => '../../../src/Eccube/*', 'exclude' => '../../../src/Eccube/{Annotation,Common,Entity,Exception,Log,Plugin,ServiceProvider,Resource,Doctrine/ORM/tools/}'), '/home/nagoyacase/nagoya-case.co.jp/public_html/ec/app/config/eccube/services.yaml', array('autowire' => true, 'autoconfigure' => true, 'public' => false, 'bind' => array('$cartPurchaseFlow' => object(BoundArgument), '$shoppingPurchaseFlow' => object(BoundArgument), '$orderPurchaseFlow' => object(BoundArgument), '$_orderStateMachine' => object(BoundArgument))))
in YamlFileLoader.php line 239
at YamlFileLoader->parseDefinitions(array('parameters' => array('container.dumper.inline_class_loader' => true, 'env(ECCUBE_LOCALE)' => 'ja', 'env(ECCUBE_TIMEZONE)' => 'Asia/Tokyo', 'env(ECCUBE_CURRENCY)' => 'JPY', 'locale' => '%env(ECCUBE_LOCALE)%', 'timezone' => '%env(ECCUBE_TIMEZONE)%', 'currency' => '%env(ECCUBE_CURRENCY)%'), 'services' => array('Eccube\' => array('resource' => '../../../src/Eccube/*', 'exclude' => '../../../src/Eccube/{Annotation,Common,Entity,Exception,Log,Plugin,ServiceProvider,Resource,Doctrine/ORM/tools/}'), 'Eccube\Common\EccubeConfig' => array('public' => true), 'Eccube\Service\TaxRuleService' => array('lazy' => true, 'public' => true), 'Eccube\Repository\TaxRuleRepository' => array('lazy' => true), 'Eccube\Service\CartService' => array('lazy' => true), 'Eccube\Service\SystemService' => array('lazy' => true, 'public' => true), 'Eccube\Service\Composer\ComposerProcessService' => array('lazy' => true), 'Eccube\Service\Composer\ComposerServiceInterface' => array('factory' => array('Eccube\\Service\\Composer\\ComposerServiceFactory', 'createService')), 'Eccube\Controller\' => array('resource' => '../../../src/Eccube/Controller', 'tags' => array('controller.service_arguments')), 'Eccube\Twig\Extension\EccubeBlockExtension' => array('tags' => array('twig.extension'), 'bind' => array('$blockTemplates' => '%eccube_twig_block_templates%')), 'Plugin\' => array('resource' => '../../../app/Plugin/*', 'exclude' => '../../../app/Plugin/*/{Entity,Resource,ServiceProvider,Tests,DoctrineMigrations}'), 'Customize\' => array('resource' => '../../../app/Customize/*', 'exclude' => '../../../app/Customize/{Entity,Resource,Tests}'), 'Customize\Controller\' => array('resource' => '../../../app/Customize/Controller', 'tags' => array('controller.service_arguments')), 'twig.extension.stringloader' => array('class' => 'Twig_Extension_StringLoader', 'tags' => array('twig.extension')), 'eccube.collector.core' => array('class' => 'Eccube\\DataCollector\\EccubeDataCollector', 'tags' => array(array('name' => 'data_collector', 'template' => '@toolbar/eccube.html.twig', 'id' => 'eccube_core', 'priority' => -512))), 'eccube.security.success_handler' => array('class' => 'Eccube\\Security\\Http\\Authentication\\EccubeAuthenticationSuccessHandler'), 'eccube.security.failure_handler' => array('class' => 'Eccube\\Security\\Http\\Authentication\\EccubeAuthenticationFailureHandler'), 'eccube.logger' => array('class' => 'Eccube\\Log\\Logger', 'arguments' => array('@Eccube\\Request\\Context', '@monolog.logger', '@monolog.logger.front', '@monolog.logger.admin'), 'lazy' => true, 'public' => true), 'eccube.log.formatter.line' => array('class' => 'Monolog\\Formatter\\LineFormatter', 'arguments' => array('[%%datetime%%] %%channel%%.%%level_name%% [%%extra.session_id%%] [%%extra.uid%%] [%%extra.user_id%%] [%%extra.class%%:%%extra.function%%:%%extra.line%%] - %%message%% %%context%% [%%extra.http_method%%, %%extra.url%%, %%extra.ip%%, %%extra.referrer%%, %%extra.user_agent%%]')), 'Eccube\Log\Processor\SessionProcessor' => array('tags' => array(array('name' => 'monolog.processor'))), 'Eccube\Log\Processor\TokenProcessor' => array('tags' => array(array('name' => 'monolog.processor'))), 'Monolog\Processor\UidProcessor' => array('tags' => array(array('name' => 'monolog.processor'))), 'Monolog\Processor\IntrospectionProcessor' => array('arguments' => array('!php/const:Monolog\\Logger::DEBUG', array('Eccube\\\\Log', 'Psr\\\\Log')), 'tags' => array(array('name' => 'monolog.processor'))), 'Symfony\Bridge\Monolog\Processor\WebProcessor' => array('arguments' => array(array('url' => 'REQUEST_URI', 'ip' => 'REMOTE_ADDR', 'http_method' => 'REQUEST_METHOD', 'server' => 'SERVER_NAME', 'referrer' => 'HTTP_REFERER', 'user_agent' => 'HTTP_USER_AGENT')), 'tags' => array(array('name' => 'monolog.processor'), array('name' => 'kernel.event_listener', 'event' => 'kernel.request', 'priority' => 1024))), 'Symfony\Component\HttpFoundation\ParameterBag' => null, 'Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension' => array('autoconfigure' => false))), '/home/nagoyacase/nagoya-case.co.jp/public_html/ec/app/config/eccube/services.yaml')
in YamlFileLoader.php line 148
at YamlFileLoader->load('/home/nagoyacase/nagoya-case.co.jp/public_html/ec/app/config/eccube/services.yaml', null)
in FileLoader.php line 153
at FileLoader->doImport('/home/nagoyacase/nagoya-case.co.jp/public_html/ec/app/config/eccube/services.yaml', null, false, null)
in FileLoader.php line 90
at FileLoader->import('/home/nagoyacase/nagoya-case.co.jp/public_html/ec/app/config/eccube/services.yaml')
in GlobFileLoader.php line 27
at GlobFileLoader->load('/home/nagoyacase/nagoya-case.co.jp/public_html/ec/app/config/eccube/services.{php,xml,yaml,yml}', 'glob')
in DelegatingLoader.php line 40
at DelegatingLoader->load('/home/nagoyacase/nagoya-case.co.jp/public_html/ec/app/config/eccube/services.{php,xml,yaml,yml}', 'glob')
in Kernel.php line 119
at Kernel->configureContainer(object(ContainerBuilder), object(DelegatingLoader))
in MicroKernelTrait.php line 80
at Kernel->Symfony\Bundle\FrameworkBundle\Kernel\{closure}(object(ContainerBuilder))
in ClosureLoader.php line 38
at ClosureLoader->load(object(Closure), null)
in DelegatingLoader.php line 40
at DelegatingLoader->load(object(Closure))
in MicroKernelTrait.php line 83
at Kernel->registerContainerConfiguration(object(DelegatingLoader))
in Kernel.php line 770
at Kernel->buildContainer()
in Kernel.php line 636
at Kernel->initializeContainer()
in Kernel.php line 135
at Kernel->boot()
in Kernel.php line 89
at Kernel->boot()
in Kernel.php line 195
at Kernel->handle(object(Request))
in index.php line 76
468
投稿日時: 2020/4/28 11:56
対応状況: −−−
登録日: 2008/10/26
居住地:
投稿: 3217
Re: 移動前の認証キーを入力しましたら、エラーが起きてしました。
エラーログを見ると
Eccube\Form\Type\ItemTypeクラスが見つからないといったエラーが出ているのではないかと思いますが
認証キーの入力に関係無く、移行時にファイルが不足している等といった原因はないでしょうか?

/ec/src/Eccube/Form/Type/ItemType.php
のファイルが無いというような事はありませんか?

別のドメインに移行とは、サーバ間のファイルコピーですか?
それともサーバは変更せずにDNSの変更のみによるドメインの変更ですか?


----------------
株式会社シロハチ
■ECCUBE2系、3系構築カスタマイズご相談ください。
EC-CUBE3マニュアル
blog

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の変更のみのドメイン変更です。
また移行時は移行前のサイトデータを、移行後のサイトに手入力でコピペしてやっており、なぜエラーが起きているのか状況が分からないです。
468
投稿日時: 2020/4/28 12:33
対応状況: −−−
登録日: 2008/10/26
居住地:
投稿: 3217
Re: 移動前の認証キーを入力しましたら、エラーが起きてしました。
認証コードを入力するまではエラーは発生していなかったのでしょうか?
実際にドメインの変更を行った事がないので、コレといった原因は分かりかねますが、
新しいドメインで認証コードを取得するもしくは、登録しているドメインを更新する必要があるのではないでしょうか?


----------------
株式会社シロハチ
■ECCUBE2系、3系構築カスタマイズご相談ください。
EC-CUBE3マニュアル
blog

tkm12121
投稿日時: 2020/4/28 12:44
対応状況: −−−
半人前
登録日: 2020/3/19
居住地:
投稿: 13
Re: 移動前の認証キーを入力しましたら、エラーが起きてしました。
そうですね、認証コードを入力してからおかしくなってしまいまして。。

新しいドメインにて、認証コードを再取得しましたが、動作しないですね。

また、ItemType.phpを削除するとサイトを表示することはできるのですが、それ以外の機能:商品追加等が全くできない状態になってしまいます。
468
投稿日時: 2020/4/28 17:37
対応状況: −−−
登録日: 2008/10/26
居住地:
投稿: 3217
Re: 移動前の認証キーを入力しましたら、エラーが起きてしました。
ItemType.phpはデフォルトには無いファイルかと思われますが
カスタマイズで追加されたものなのでしょうか?

ItemType.php自身に問題がありそうですが
namespaceの記述がおかしくなっていたり、
ファイルがBOM付きテキストになっている等
PHPファイルとして認識されないようなおかしな状態になっていませんか?


----------------
株式会社シロハチ
■ECCUBE2系、3系構築カスタマイズご相談ください。
EC-CUBE3マニュアル
blog

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


 



ログイン


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

統計情報

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

投稿数ランキング

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