バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > その他 > An open transaction is required for this operation.

その他

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
kenshi
投稿日時: 2021/7/11 23:22
対応状況: 開発中
一人前
登録日: 2020/6/29
居住地:
投稿: 83
An open transaction is required for this operation.
Command経由で注文ステータス変更

決済処理中 or 購入処理中 → キャンセル

$this->orderStateMachine->apply($Order, キャンセル)

In TransactionRequiredException.php line 38:
  An open transaction is required for this operation.


管理画面からは、問題なく「決済処理中 or 購入処理中 → キャンセル」可能
Command経由からはエラーが出る

調査中ですが、解決できる情報がなく困っています。
ご協力よろしくお願いいたします。
kiraD
投稿日時: 2021/7/28 16:07
対応状況: −−−
半人前
登録日: 2021/7/28
居住地:
投稿: 16
Re: An open transaction is required for this operation.
Command経由で実行する際に、トランザクションにロックがかかっているためそのようなエラーが出ていると思います。
どこかでflush()し忘れている箇所などないでしょうか?
もしくは、下記などを参考にし、lockModeを指定することで解決できるかもしれません。

https://stackoverflow.com/questions/22592582/using-find-from-repository-throwing-a-transactionrequiredexception
スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン



統計情報

総メンバー数は79,030名です
総投稿数は106,407件です

投稿数ランキング

1
seasoft
7334
2
468
3217
3
AMUAMU
2712
4
nanasess
2280
5
umebius
2085
6
yuh
1763
7
red
1558
8
h_tanaka
1308
9
tsuji
957
10
fukap
907
11
shutta
835
12
tao_s
794
13 ramrun 789
14 karin 689
15 sumida 641
16
homan
633
17 DELIGHT 572
18
patapata
502
19
flealog
485
20
mcontact
478


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.