LoginSignup
1
1

More than 1 year has passed since last update.

EC-CUBE4プラグインインストールでエラーが出る時の対処

Last updated at Posted at 2021-11-18

管理画面からのプラグインインストールでエラーとなる
symfonyのキャッシュクリア
コンソールからのプラグイン操作
コンソールからのプラグイン操作コマンド集
プラグインコードの調べ方
コンソールからのプラグイン操作
参考記事

管理画面からのプラグインインストールでエラーとなる

管理画面 > オーナーズストア > プラグイン

スクリーンショット 2021-11-18 10.09.58.png

symfonyのキャッシュクリア

# <ドメインルート>/bin/console cache:clear --no-warmup
# rm -rf /<ドメインルート>/var/cache/*

コンソールからのプラグイン操作コマンド集

インストール

bin/console eccube:plugin:install --code=<プラグインコード>

有効化

bin/console eccube:plugin:enable --code=<プラグインコード>

無効化

bin/console eccube:plugin:disable --code=<プラグインコード>

削除

bin/console eccube:plugin:uninstall --code=<プラグインコード>

削除(プラグインのファイルも削除する場合)

bin/console eccube:plugin:uninstall --code=<プラグインコード> --uninstall-force=true

プラグインコードの調べ方

ありか
<ドメインルート>/app/Plugin/<プラグイン>/composer.json

cat <ドメインルート>/app/Plugin/<プラグイン>/composer.json
{"name":"ec-cube\/<プラグイン>","version":"1.0.0","description":"<プラグイン>"        ,"type":"eccube-plugin","extra":{"code":"<プラグインコード>","id":****}}

コンソールからのプラグイン操作

ドメインルートへ移動

# cd /var/www/html/<ドメインルート>

操作エラーの場合

bin/console eccube:plugin:enable --code=<プラグインコード>

スクリーンショット 2021-11-18 9.21.20.png

操作成功の場合

bin/console eccube:plugin:enable --code=<プラグインコード>

gen -> /var/www/html/<ドメインルート>/app/proxy/entity/src/Eccube/Entity/CartItem.php
gen -> /var/www/html/<ドメインルート>/app/proxy/entity/src/Eccube/Entity/OrderItem.php
gen -> /var/www/html/<ドメインルート>/app/proxy/entity/src/Eccube/Entity/Cart.php
gen -> /var/www/html/<ドメインルート>/app/proxy/entity/src/Eccube/Entity/ProductClass.php
gen -> /var/www/html/<ドメインルート>/app/proxy/entity/src/Eccube/Entity/Order.php

スクリーンショット 2021-11-18 9.21.32.png


参考記事

https://doc4.ec-cube.net/plugin_install#%E3%81%9D%E3%81%AE%E4%BB%96%E3%81%AE%E6%93%8D%E4%BD%9C
https://jum11.com/2020/12/31/ec-cube4-plugin-install/
https://qiita.com/nanasess/items/583683eb94947aebea44

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1