バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > 管理機能 > git からソース更新するとクラスが存在しないエラー

管理機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
h_tanaka
投稿日時: 2019/10/7 22:53
対応状況: 解決済
仙人
登録日: 2016/7/22
居住地: 愛媛県
投稿: 940
git からソース更新するとクラスが存在しないエラー
さくらVPS
サーバー構成:ロードバランサー、WEB1、WEB2、FILE、DB
EC-CUBE 4.0.2
MySQL 5.7.27
PHP 7.1.32

FILEサーバーにEC-CUBEをクリーンインストールし、必要なプラグインをインストール・有効化しました。
この時点では特に問題なく動作していました。

その後、開発環境の git から git reset で最新のソースをデプロイしました。
デプロイ後、コンソールコマンドでマイグレーションやプロキシ更新を行おうとすると次のようなエラーになります。
ブラウザでサイトを見ようとすると 500エラーになります。
原因または解決方法わかりますでしょうか?

-----
$ php bin/console doctrine:migrations:migrate
PHP Warning: include(/var/www/toebisu.co.jp/htdocs/vendor/composer/../../app/proxy/entity/Shipping.php): failed to open stream: No such file or directory in /var/www/toebisu.co.jp/htdocs/vendor/composer/ClassLoader.php on line 444
PHP Warning: include(): Failed opening '/var/www/toebisu.co.jp/htdocs/vendor/composer/../../app/proxy/entity/Shipping.php' for inclusion (include_path='/var/www/toebisu.co.jp/htdocs/vendor/pear/archive_tar:/var/www/toebisu.co.jp/htdocs/vendor/pear/console_getopt:/var/www/toebisu.co.jp/htdocs/vendor/pear/pear-core-minimal/src:/var/www/toebisu.co.jp/htdocs/vendor/pear/pear_exception:.:/usr/share/pear:/usr/share/php') in /var/www/toebisu.co.jp/htdocs/vendor/composer/ClassLoader.php on line 444

In RegisterControllerArgumentLocatorsPass.php line 164:

Cannot determine controller argument for "Eccube\Controller\Admin\Order\OrderController::updateOrderStatus()": the $Shipping argument is type-hinted with the non-existent class or interface: "Eccube\Entity\Shipping".
-----


Entity が存在しないというような意味のエラーでしょうか。。

ちなみにクリーンインストールからやり直してみましたが、似たようなエラーになりました。

-----
Cannot determine controller argument for "Eccube\Controller\Admin\Customer\CustomerDeliveryEditController::edit()": the $Customer argument is type-hinted with the non-existent class or interface: "Eccube\Entity\Customer".
-----


----------------
EC-CUBE 《プラチナ》ランクパートナー
トエビス株式会社 田中 宏典
EC-CUBEの機能やデザインのカスタマイズ承ります。

h_tanaka
投稿日時: 2019/10/8 9:31
対応状況: −−−
仙人
登録日: 2016/7/22
居住地: 愛媛県
投稿: 940
Re: git からソース更新するとクラスが存在しないエラー
本件、問題は解消しました。

Entity まわりの問題だということはわかっていたので、試しに正常動作する環境の proxy ファイルをすべてコピーして上書き更新したところ、エラーが発生しなくなりました。

問題が発生していた原因はわかりません。。


----------------
EC-CUBE 《プラチナ》ランクパートナー
トエビス株式会社 田中 宏典
EC-CUBEの機能やデザインのカスタマイズ承ります。

nanasess
投稿日時: 2019/10/8 9:42
対応状況: −−−
登録日: 2006/9/9
居住地: 宝塚
投稿: 2016
Re: git からソース更新するとクラスが存在しないエラー
Composer の classmap がきちんと生成されていないとかですかね。

https://qiita.com/nanasess/items/583683eb94947aebea44#composer-クラスマップの再生成


----------------
大河内健太郎(Kentaro Ohkouchi)
EC-CUBE公式エバンジェリスト
スキルニル株式会社

EC-CUBE1系2系長期サポートホスティングサービス CUBE Lab
https://cubelab.info/

h_tanaka
投稿日時: 2019/10/8 10:37
対応状況: −−−
仙人
登録日: 2016/7/22
居住地: 愛媛県
投稿: 940
Re: git からソース更新するとクラスが存在しないエラー
nanasess さん

ありがとうございます!
次回、同様の問題が発生したときは試してみます。


----------------
EC-CUBE 《プラチナ》ランクパートナー
トエビス株式会社 田中 宏典
EC-CUBEの機能やデザインのカスタマイズ承ります。

adglevan
投稿日時: 2019/10/11 15:40
対応状況: −−−
新米
登録日: 2019/10/11
居住地:
投稿: 1
Bring Back The Elegance Of Your Home By Hiring The Best Interior Decorator In India
When it comes to interior decoration, creativity is the first word that goes through our minds. Yes, creating something amazing and unique of a boring and dull place is the core of interior decorating. For this, it needs imagination, aesthetic sense, and picking off as many ideas as possible. Primarily, interior decorating ideas can be contemporary, subtle, or exotic; it just depends upon your taste and environment you want to create. From a broader perspective, these ideas can quickly be taken from catalogs, brochures, internet, magazines, or promotional advertisements related by Interior Designers In Bangalore or designers.

But, before deciding upon any idea, you should focus on the aesthetic value of interior space. The next step is to check its feasibility, affordability, and flexibility. One should never go just by the appearance, but consider the appropriateness of the idea. Are you thinking of remodeling your home, but do not know how to go about it? If you are confused about it, you can hire a well experienced and creative Interior Designers In Bangalore who can provide you with interior decorating services to address your decorating and furnishing needs. Whether the need is furniture, window treatments, floor coverings, lighting, or accessories, you can rest be assured that you can set up a consultation with Interior Designers In Bangalore.

When Interior Designers In Bangalore steps into the process, he/she first evaluate and analyzes the space and ask you the environment you want to get created. Often, when remodeling is done, it doesn’t mean that you have to get rid of old things or furnishings. This is where a creative Interior Designers In Bangalore will show talent and rearrange them or try different layouts to create the look and feel you desire. Felicia for Lifestyle Design is a highly talented and creative Interior Designers In Bangalore in WA who loves to create beautiful home interiors and specializes in remodeling bathrooms and kitchens. She is a trained, well established Interior Designers In Bangalore and is always ready to assist in your decision making the process.

Felicia for Lifestyle Design is well renowned among her clients for suggesting original and innovative designs for lifestyle kitchens that are spacious, and elegance goes with the home decor. She carefully designs and gives attention to even minutest details.interior designers in bangalore|interior designers in kolkata|interior designers in faridabad|interior designers in ghaziabad|interior designers in londonYou can also look through her website to see award-winning bathrooms that gave a fresh, new look to a single place. For more details
adgroups
投稿日時: 2019/11/20 14:40
対応状況: −−−
新米
登録日: 2019/11/20
居住地:
投稿: 1
website designing company in delhi
website designing company in delhi, Mumbai or any other city for that matter are in vogue, riding the wave of the booming digital space, which adds millions of users of the internet every month. website designing company in delhi has, over time, created a niche for itself and spawned several firms and companies exclusively dedicated to strengthening the digital presence of companies and building their brands online. website designing company in delhi today is a thoroughly lucrative career which allows creative expression combined with technical expertise. The shortest way to start your career in website designing company in delhi is enrolling in a website designing company in delhi course in Mumbai or other cities. This article will talk about things that you need to know before enrolling in such a course.

Institute: When it comes to enrolling in an academic course, naturally institute becomes of prime importance. There are numerous website designing company in delhi courses in Navi Mumbai, Thane and other suburbs of Mumbai that are offered by various institutes. When enrolling in a class, you should try to find out the best in terms of reputation and proficiency. An excellent way to gauge what would be to look at the history including Alumni, their career paths, the antiquity of the institute, and any recognition by government or other certification bodies.

Specialization: When it comes to website designing company in delhi, there are several avenues you can specialize in like SEO (search engine optimization), SMO (social media optimization), Back end, Graphic designing, content etc. Like spending hours on social media sites like Facebook and twitter? Convert it into a profession by opting for an SMO course. Even if you decide to go for a general direction which covers all aspects of website designing company in delhi, you will have to, at some point in your career, specialize in a domain.

Pre-course preparation: Before you start your website designing company in delhi training in Navi Mumbai, there are a lot of things you can do on your own, to get a prerequisite familiarity with the world of websites and their online marketing. Reading articles and visiting sites is an excellent way to start, and in no time, you will begin understanding the science and art behind website designing company in delhi. This will also help you fully take advantage of the course that you have selected.website designing company in delhi|website development company in delhi|cheap website design|website designer in delhi|website developer in delhiis one of the premier institutes for website designing company in delhi in Mumbai. We are located at Vashi, Ghatkopar and Navi Mumbai. We offer the complete courses on Digital Media marketing, for those looking to make a career in this industry.
スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


EC-CUBEペイメント

公式ストアEC-CUBE4系デザインテンプレート続々リリース中

統計情報

総メンバー数は54,509名です
総投稿数は94,237件です

投稿数ランキング

1
seasoft
7332
2
AMUAMU
2712
3
nanasess
2016
4
468
1920
5
yuh
1610
6
umebius
1418
7
red
1376
8
h_tanaka
940
9
fukap
907
10
tsuji
856
11
shutta
835
12 ramrun 789
13
tao_s
781
14 karin 656
15 sumida 641
16
homan
633
17 DELIGHT 571
18
patapata
502
19
flealog
483
20 tonton 437


ネットショップの壺

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

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