[EC-CUBE4]:[error]proxyクラスを手動で削除

4月 20, 2021

気づいたのはFTPからtwigファイルを削除して再アップしたことでシステムエラーが発生したこと。
ログイン画面すら出なくなってしまった。
ちなみにエラーはこちら。

ReflectionException

Property Eccube\Entity\Order::$Transaction does not exist


product関連のphpファイルをいじった後に手動で商品詳細のtwigを消したのが原因。

今回は調べたらすぐ該当する事例があったので助かりました。


参考リンク(1):

https://github.com/EC-CUBE/ec-cube/issues/3470

参考リンク(2):

https://github.com/chihiro-adachi/ec-cube/commit/02a8af35253b7e144aef3af9efcf06744f02615c


解決方法はリンク(2)の方に記載されてるまま。

sshでログインして該当ディレクトリに移動、viでcomposer.jsonを編集

" exclude-from-classmap ":[

 " ** / Test / ** "、 " ** / Tests / ** "、 " ** / test / ** "、 " ** / tests / ** " 

 ]

この部分を消して、

"exclude-from-classmap": [ 

 "src/Eccube/Entity/**", 

 "app/proxy/entity/**", 

 "**/Test/**", "**/Tests/**", "**/test/**", "**/tests/**" 

]

に書き換える。

保存して、キャッシュクリアしてExitすれば終わり。

You Might Also Like

0 コメント

Popular Posts

About Me

Flickr Images