バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

 > 管理機能 > EC-CUBE3 支払方法管理と配送方法管理の新規入力ができません

管理機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
fresh
投稿日時: 2017/2/9 13:48
対応状況: −−−
半人前
登録日: 2016/11/29
居住地:
投稿: 24
EC-CUBE3 支払方法管理と配送方法管理の新規入力ができません
3.0.10です。

前はできたはずなんですが、気付いたら支払方法管理と配送方法管理の新規入力ができなくなっていました。

それぞれのindex_div.phpは

支払方法管理

ContextErrorException in Payment.php line 272:
Catchable Fatal Error: Argument 1 passed to Eccube\Entity\Payment::setCreator() must be an instance of Eccube\Entity\Member, null given, called in /home/*****/www/*****/ec/src/Eccube/Repository/PaymentRepository.php on line 59 and defined
1. in Payment.php line 272
2. at ErrorHandler->handleError('4096', 'Argument 1 passed to Eccube\Entity\Payment::setCreator() must be an instance of Eccube\Entity\Member, null given, called in /home/*****/www/*****ec/src/Eccube/Repository/PaymentRepository.php on line 59 and defined', '/home/*****/www/*****/ec/src/Eccube/Entity/Payment.php', '272', array('this' => object(Payment))) in Payment.php line 272
3. at Payment->setCreator(null) in PaymentRepository.php line 59
4. at PaymentRepository->findOrCreate(null) in PaymentController.php line 63
5. at PaymentController->edit(object(Application), object(Request), null)
6. at call_user_func_array(array(object(PaymentController), 'edit'), array(object(Application), object(Request), null)) in HttpKernel.php line 139
7. at HttpKernel->handleRaw(object(Request), '1') in HttpKernel.php line 62
8. at HttpKernel->handle(object(Request), '1', true) in Application.php line 586
9. at Application->handle(object(Request)) in Application.php line 563
10. at Application->run() in index_dev.php line 100



配送方法管理

ContextErrorException in Delivery.php line 390:
Catchable Fatal Error: Argument 1 passed to Eccube\Entity\Delivery::setCreator() must be an instance of Eccube\Entity\Member, null given, called in /home/*****/www/*****/ec/src/Eccube/Repository/DeliveryRepository.php on line 59 and defined
in Delivery.php line 390
at ErrorHandler->handleError('4096', 'Argument 1 passed to Eccube\Entity\Delivery::setCreator() must be an instance of Eccube\Entity\Member, null given, called in /home/*****/www/*****/ec/src/Eccube/Repository/DeliveryRepository.php on line 59 and defined', '/home/*****/www/*****/ec/src/Eccube/Entity/Delivery.php', '390', array('this' => object(Delivery))) in Delivery.php line 390
at Delivery->setCreator(null) in DeliveryRepository.php line 59
at DeliveryRepository->findOrCreate('0') in DeliveryController.php line 70
at DeliveryController->edit(object(Application), object(Request), '0')
at call_user_func_array(array(object(DeliveryController), 'edit'), array(object(Application), object(Request), '0')) in HttpKernel.php line 139
at HttpKernel->handleRaw(object(Request), '1') in HttpKernel.php line 62
at HttpKernel->handle(object(Request), '1', true) in Application.php line 586
at Application->handle(object(Request)) in Application.php line 563
at Application->run() in index_dev.php line 100



でした。。
全くもって心当たりがないのですが、上記に書かれてるようなファイルの該当箇所をみても
public function setCreator(\Eccube\Entity\Member $Creator)だの
->setCreator($Creator);だの
でそれがどうしたのかわかりません。。

ちなみに配送や支払いが関わりそうなプラグインは
GmoPaymentGateway、GmoPaymentGateway 定期購入プラグインです。
検索してみたのですが、解決方法がみつかりそうもなかったので、どなたかヘルプお願い致します。


よろしくお願い致します
umebius
投稿日時: 2017/2/9 13:52
対応状況: −−−
登録日: 2016/7/22
居住地:
投稿: 2085
Re: EC-CUBE3 支払方法管理と配送方法管理の新規入力ができません
dtb_memberテーブル(管理者情報)をのぞくことって可能でしょうか?
IDが2の管理者が存在しないのではないでしょうか。

管理者の追加・削除など行われましたか?


----------------
EC-CUBEカスタマイズ・高速化・脆弱性対策・SEO ご相談ください。

2系・3系から4系へのバージョンアップ実績豊富

umebius
投稿日時: 2017/2/9 13:55
対応状況: −−−
登録日: 2016/7/22
居住地:
投稿: 2085
Re: EC-CUBE3 支払方法管理と配送方法管理の新規入力ができません
/src/Eccube/Repository/DeliveryRepository.php
/src/Eccube/Repository/PaymentRepository.php
で、どちらも40行目前後にfind(2)という部分ありますか?

これをdtb_memberテーブルに存在しているmember_idに変更してやるのが一番簡単な修正かもしれません。

            $Creator = $em
                ->getRepository('\Eccube\Entity\Member')
                ->find(2);
// 「2」ではなく、dtb_memberテーブルに存在しているmember_idに変更


追記:存在していて、かつdel_flgが0の必要があるかもしれません。

追記:下記でも良いかも?

$Creators = $em
                ->getRepository('\Eccube\Entity\Member')
                ->findAll()
               ;
$Creator = $Creators[0];


[code]$Creator = $em
                ->getRepository('\Eccube\Entity\Member')
                ->findOneBy(array())
                ;
[/code]


----------------
EC-CUBEカスタマイズ・高速化・脆弱性対策・SEO ご相談ください。

2系・3系から4系へのバージョンアップ実績豊富

fresh
投稿日時: 2017/2/9 18:37
対応状況: −−−
半人前
登録日: 2016/11/29
居住地:
投稿: 24
Re: EC-CUBE3 支払方法管理と配送方法管理の新規入力ができません
umebius様

こんばんは、またまたありがとうございます。

はい、dtb_memberはみれます!

umebius様のレスをヒントにmember_idをみてみたところ、同じlogin_idで、member_id 2と8のがありまして、

member_id 2:rank0 del_flg1
member_id 8:rank1 del_flg0

になっていたので、

管理画面のメンバー管理のなかのソースコードを確認したら、私がログインしていた方はid="member_list__authority_name--8"だったので、

member_id 2:rank1 del_flg0
member_id 8:rank0 del_flg1

に変えてログインしてみたところ
id="member_list__authority_name--2"になり、それで追加してみたら、無事できました!

/src/Eccube/Repository/DeliveryRepository.php
/src/Eccube/Repository/PaymentRepository.php

はいじらずに、解決できましたが

メンバー追加はしましたが、重複して作った記憶がなかったですがこういうことで、エラーになってしまったりするんですね。
勉強になります!ありがとうございました。
スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


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

統計情報

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

投稿数ランキング

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