バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > その他 > 急なFatalErrorExceptionエラー。

その他

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
COYS
投稿日時: 2020/12/22 13:25
対応状況: −−−
半人前
登録日: 2019/12/27
居住地:
投稿: 12
急なFatalErrorExceptionエラー。
▼テンプレート
[EC-CUBE] 4.0.3
[レンタルサーバ] XSERVER
[PHP] PHP7.3.16

[導入プラグインの有無] あり
[カスタマイズの有無] 定期購入のプラグインを使用しているため、プラグイン用の決済プラグインを使用

[現象] 本日から急に在庫の変更をするとシステムエラーになってしまい、のちにプラグイン(会員ランクアップ)のアップデートを行ったら以下のシステムエラーになってしまい、原因がわからず困っています。

アップデートの失敗かと思いキャッシュディレクトリの中のものは削除したのですが戻らず…

DEVツールで以下のエラーがでます。

FatalErrorException
Compile Error: Trait method __construct has not been applied, because there are collisions with other trait methods on Eccube\Entity\ProductClass

in ProductClass.php line 28


ProductClass.php line 28に該当する部分には

class ProductClass extends \Eccube\Entity\AbstractEntity
{
use \Plugin\FlashSale\Entity\FSProductClassTrait, \Plugin\QuantityDiscount\Entity\ProductClassTrait, \Plugin\IplPeriodicPurchase\Entity\ProductClassTrait, \Plugin\CustomerRank\Entity\ProductClassTrait;


と記載があります…

お忙しい時期にすみませんがご教授願います。


468
投稿日時: 2020/12/22 14:01
対応状況: −−−
登録日: 2008/10/26
居住地:
投稿: 3217
Re: 急なFatalErrorExceptionエラー。
Compile Error: Trait method __construct has not been applied, because there are collisions with other trait methods on Eccube\Entity\ProductClass

こちらのメッセージをgoogle翻訳にかけると

コンパイルエラー:Eccube \ Entity \ ProductClassの他のトレイトメソッドとの衝突があるため、トレイトメソッド__constructは適用されていません

とあります。
use \Plugin\FlashSale\Entity\FSProductClassTrait, \Plugin\QuantityDiscount\Entity\ProductClassTrait, \Plugin\IplPeriodicPurchase\Entity\ProductClassTrait, \Plugin\CustomerRank\Entity\ProductClassTrait;
で4つのプラグインのTraitを利用しようとしていますが
function ****の定義が同じ名称でダブっていたりするのではないでしょうか?

特に会員ランクアッププラグインをアップデートされた後に発生するようになったという事ですので
/Plugin/CustomerRank/Entity/ProductClassTraitの記述に何かあるのではないでしょうか?
プラグインの配布元のサポートを受けられるのが良いかと思います。


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

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


 



ログイン


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

統計情報

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

投稿数ランキング

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