質問 > 管理機能 > プラグインをインストールしていたのに、インストールしていない状態に戻っている。 |
管理機能
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
beginner99 |
投稿日時: 2024/11/6 11:27
対応状況: −−−
|
常連 ![]() ![]() 登録日: 2024/6/4 居住地: 投稿: 48 |
プラグインをインストールしていたのに、インストールしていない状態に戻っている。 ▼テンプレート
[EC-CUBE] EC-CUBEのバージョン:4.1 [レンタルサーバ] xammpローカル環境 [現象] https://www.ec-cube.net/products/detail.php?product_id=1804 複数人で作業しており、その際に「データ移行プラグイン」をインストールしました。 ソースはgitで共有し、データベースはカラム追加・プラグイン追加の際に 新しいデータベースを所有している人のデータベースをもらい、入れなおして作業しておりました。 作業中にインストールしたはずの 「データ移行プラグイン」 にインストールボタンが表示され、インストールされていない状態? になってるのに気が付きました。 キャッシュを削除してインストールしなおしたところ、 インストールボタンが表示されたままで、有効化にも無効化にもなっていません。 解消方法はありますでしょうか? インストール時のログは下記になります。 **************** DataMigration4 **************** Changed CWD to C:\xampp\htdocs\php\test Reading ./composer.json (C:\xampp\htdocs\php\test\composer.json) Loading config file ./composer.json (C:\xampp\htdocs\php\test\composer.json) Executing command (C:\xampp\htdocs\php\test): git branch -a --no-color --no-abbrev -v Executing command (C:\xampp\htdocs\php\test): git rev-list master..tahara/428 Failed to initialize global composer: Composer could not find the config file: C:\xampp\htdocs\php\test/app/Plugin/.composer/composer.json Reading C:\xampp\htdocs\php\test/vendor/composer/installed.json (C:\xampp\htdocs\php\test\vendor\composer\installed.json) Loading plugin PackageVersions\Installer_composer_tmp0 (from composer/package-versions-deprecated) Loading plugin Eccube\Composer\EccubePluginInstallerPlugin_composer_tmp1 (from ec-cube/plugin-installer) Loading plugin UpdateHelper\ComposerPlugin_composer_tmp2 (from kylekatarnls/update-helper) Loading plugin Symfony\Flex\Flex_composer_tmp3 (from symfony/flex) Running 2.1.3 (2021-06-09 16:31:20) with PHP 7.4.30 on Windows NT / 10.0 [52.3MiB/0.01s] Downloading https://package-api-c2.ec-cube.net/packages.json [52.5MiB/1.48s] [200] https://package-api-c2.ec-cube.net/packages.json [53.2MiB/1.48s] Writing C:\xampp\htdocs\php\test/app/Plugin/.composer/cache/repo/https---package-api-c2.ec-cube.net/packages.json into cache [53.6MiB/1.48s] Using version ^4.1 for ec-cube/datamigration4 [53.6MiB/1.49s] ./composer.json has been updated [54.0MiB/1.49s] Reading ./composer.json (C:\xampp\htdocs\php\test\composer.json) [54.0MiB/1.49s] Loading config file ./composer.json (C:\xampp\htdocs\php\test\composer.json) [54.0MiB/1.50s] Executing command (C:\xampp\htdocs\php\test): git branch -a --no-color --no-abbrev -v [54.0MiB/1.70s] Executing command (C:\xampp\htdocs\php\test): git rev-list master..tahara/428 [54.1MiB/1.91s] Failed to initialize global composer: Composer could not find the config file: C:\xampp\htdocs\php\test/app/Plugin/.composer/composer.json [54.1MiB/1.91s] Reading C:\xampp\htdocs\php\test/vendor/composer/installed.json (C:\xampp\htdocs\php\test\vendor\composer\installed.json) [56.3MiB/1.92s] Loading plugin PackageVersions\Installer_composer_tmp4 (from composer/package-versions-deprecated) [56.3MiB/1.92s] Loading plugin Eccube\Composer\EccubePluginInstallerPlugin_composer_tmp5 (from ec-cube/plugin-installer) [56.3MiB/1.92s] Loading plugin UpdateHelper\ComposerPlugin_composer_tmp6 (from kylekatarnls/update-helper) [56.5MiB/1.92s] Loading plugin Symfony\Flex\Flex_composer_tmp7 (from symfony/flex) [56.6MiB/1.97s] Running composer update ec-cube/datamigration4 --with-dependencies [56.7MiB/1.98s] Reading ./composer.lock (C:\xampp\htdocs\php\test\composer.lock) [57.0MiB/1.99s] > pre-update-cmd: Symfony\Flex\Flex_composer_tmp7->configureInstaller [57.6MiB/2.00s] Loading composer repositories with package information [58.0MiB/2.00s] Downloading https://package-api-c2.ec-cube.net/packages.json [58.1MiB/3.31s] [200] https://package-api-c2.ec-cube.net/packages.json [58.9MiB/3.31s] Writing C:\xampp\htdocs\php\test/app/Plugin/.composer/cache/repo/https---package-api-c2.ec-cube.net/packages.json into cache [59.2MiB/3.32s] <warning>Dependency "ec-cube/plugin-installer" is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.</warning> [59.3MiB/3.32s] Downloading https://repo.packagist.org/packages.json [59.3MiB/3.68s] [200] https://repo.packagist.org/packages.json [59.3MiB/3.68s] Writing C:\xampp\htdocs\php\test/app/Plugin/.composer/cache/repo/https---repo.packagist.org/packages.json into cache [59.3MiB/3.68s] Reading C:\xampp\htdocs\php\test/app/Plugin/.composer/cache/repo/https---repo.packagist.org/provider-pear~pear-core-minimal.json from cache [59.4MiB/3.68s] Downloading https://repo.packagist.org/p2/pear/pear-core-minimal.json if modified [59.4MiB/3.68s] Reading C:\xampp\htdocs\php\test/app/Plugin/.composer/cache/repo/https---repo.packagist.org/provider-pear~archive-tar.json from cache [59.5MiB/3.68s] Downloading https://repo.packagist.org/p2/pear/archive_tar.json if modified [59.5MiB/3.68s] Reading C:\xampp\htdocs\php\test/app/Plugin/.composer/cache/repo/https---repo.packagist.org/provider-wapmorgan~unified-archive.json from cache [59.6MiB/3.68s] Downloading https://repo.packagist.org/p2/wapmorgan/unified-archive.json if modified [59.6MiB/3.68s] Reading C:\xampp\htdocs\php\test/app/Plugin/.composer/cache/repo/https---repo.packagist.org/provider-nobuhiko~bulk-insert-query.json from cache [59.7MiB/3.68s] Downloading https://repo.packagist.org/p2/nobuhiko/bulk-insert-query.json if modified [59.7MiB/3.80s] [304] https://repo.packagist.org/p2/pear/pear-core-minimal.json [59.7MiB/3.80s] [304] https://repo.packagist.org/p2/pear/archive_tar.json [59.6MiB/3.80s] [304] https://repo.packagist.org/p2/wapmorgan/unified-archive.json [59.6MiB/3.80s] [304] https://repo.packagist.org/p2/nobuhiko/bulk-insert-query.json [59.5MiB/3.80s] Reading C:\xampp\htdocs\php\test/app/Plugin/.composer/cache/repo/https---repo.packagist.org/provider-pear~console-getopt.json from cache [59.5MiB/3.80s] Downloading https://repo.packagist.org/p2/pear/console_getopt.json if modified [59.5MiB/3.80s] Reading C:\xampp\htdocs\php\test/app/Plugin/.composer/cache/repo/https---repo.packagist.org/provider-pear~pear-exception.json from cache [59.6MiB/3.80s] Downloading https://repo.packagist.org/p2/pear/pear_exception.json if modified [59.6MiB/3.80s] Reading C:\xampp\htdocs\php\test/app/Plugin/.composer/cache/repo/https---repo.packagist.org/provider-rsky~pear-core-min.json from cache [59.6MiB/3.81s] Downloading https://repo.packagist.org/p2/rsky/pear-core-min.json if modified [59.6MiB/3.81s] Downloading https://repo.packagist.org/p2/wapmorgan/cam.json [59.6MiB/3.81s] Reading C:\xampp\htdocs\php\test/app/Plugin/.composer/cache/repo/https---repo.packagist.org/provider-pclzip~pclzip.json from cache [59.7MiB/3.81s] Downloading https://repo.packagist.org/p2/pclzip/pclzip.json if modified [59.7MiB/3.93s] [304] https://repo.packagist.org/p2/pear/console_getopt.json [59.7MiB/3.93s] [304] https://repo.packagist.org/p2/pear/pear_exception.json [59.7MiB/3.93s] [304] https://repo.packagist.org/p2/rsky/pear-core-min.json [59.6MiB/3.93s] [404] https://repo.packagist.org/p2/wapmorgan/cam.json [59.7MiB/3.93s] [304] https://repo.packagist.org/p2/pclzip/pclzip.json [59.8MiB/3.93s] > pre-pool-create: Symfony\Flex\Flex_composer_tmp7->truncatePackages [59.9MiB/3.94s] Updating dependencies [60.0MiB/3.94s] Generating rules [61.9MiB/3.95s] Resolving dependencies through SAT [62.0MiB/3.95s] Looking at all rules. [62.0MiB/3.95s] Something's changed, looking at all rules again (pass #1)[62.0MiB/3.95s] [62.0MiB/3.95s] Dependency resolution completed in 0.001 seconds [61.4MiB/3.96s] Analyzed 316 packages to resolve dependencies [61.4MiB/3.96s] Analyzed 902 rules to resolve dependencies [61.4MiB/3.96s] Nothing to modify in lock file [62.3MiB/3.96s] Generating rules [63.2MiB/3.97s] Resolving dependencies through SAT [63.3MiB/3.97s] Looking at all rules. [63.3MiB/3.97s] [63.3MiB/3.97s] Dependency resolution completed in 0.001 seconds [62.1MiB/3.98s] Installing dependencies from lock file (including require-dev) [62.9MiB/3.99s] Nothing to install, update or remove [63.1MiB/4.02s] <warning>Package doctrine/doctrine-cache-bundle is abandoned, you should avoid using it. No replacement was suggested.</warning> [63.1MiB/4.02s] <warning>Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.</warning> [63.1MiB/4.02s] <warning>Package easycorp/easy-log-handler is abandoned, you should avoid using it. No replacement was suggested.</warning> [63.1MiB/4.02s] <warning>Package setasign/fpdi-tcpdf is abandoned, you should avoid using it. No replacement was suggested.</warning> [63.1MiB/4.02s] <warning>Package symfony/inflector is abandoned, you should avoid using it. Use use `EnglishInflector` from the String component instead instead.</warning> [63.1MiB/4.02s] <warning>Package twig/extensions is abandoned, you should avoid using it. No replacement was suggested.</warning> [63.1MiB/4.02s] <warning>Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested.</warning> [63.1MiB/4.02s] <warning>Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.</warning> [63.1MiB/4.02s] Generating optimized autoload files [81.0MiB/16.36s] <warning>Class Eccube\Entity\Customer located in C:/xampp/htdocs/php/test/app/proxy/entity\src\Eccube\Entity\Customer.php does not comply with psr-4 autoloading standard. Skipping.</warning> [81.0MiB/16.36s] <warning>Class Eccube\Entity\Order located in C:/xampp/htdocs/php/test/app/proxy/entity\src\Eccube\Entity\Order.php does not comply with psr-4 autoloading standard. Skipping.</warning> [81.0MiB/16.36s] <warning>Class Eccube\Entity\Product located in C:/xampp/htdocs/php/test/app/proxy/entity\src\Eccube\Entity\Product.php does not comply with psr-4 autoloading standard. Skipping.</warning> [89.7MiB/19.28s] > post-autoload-dump: PackageVersions\Installer_composer_tmp4->dumpVersionsClass [89.8MiB/19.28s] composer/package-versions-deprecated: Generating version class... [89.8MiB/19.28s] composer/package-versions-deprecated: ...done generating version class [89.7MiB/19.28s] > post-autoload-dump: UpdateHelper\ComposerPlugin_composer_tmp6->onAutoloadDump [89.8MiB/19.35s] Carbon 1 is deprecated, see how to migrate to Carbon 2. [89.8MiB/19.35s] https://carbon.nesbot.com/docs/#api-carbon-2 [89.8MiB/19.35s] You can run ".\vendor\bin\upgrade-carbon" to get help in updating carbon and other frameworks and libraries that depend on it. [89.8MiB/19.35s] > post-autoload-dump: Symfony\Flex\Flex_composer_tmp7->updateAutoloadFile [73.2MiB/19.37s] 117 packages you are using are looking for funding. [73.2MiB/19.37s] Use the `composer fund` command to find out more! [73.2MiB/19.37s] > post-update-cmd: Symfony\Flex\Flex_composer_tmp7->update [73.2MiB/19.37s] [73.4MiB/19.37s] Run composer recipes at any time to see the status of your Symfony recipes. [73.4MiB/19.37s] [73.3MiB/19.37s] Memory usage: 73.31MiB (peak: 106.54MiB), time: 19.37s |
h_tanaka |
投稿日時: 2024/11/6 11:32
対応状況: −−−
|
神 ![]() ![]() 登録日: 2016/7/22 居住地: 愛媛県 投稿: 2021 |
Re: プラグインをインストールしていたのに、インストールしていない状態に戻っている。 コマンドラインからインストールと有効化を試してみてください。
https://qiita.com/nanasess/items/791c9ec98f69ada93ea0
|
beginner99 |
投稿日時: 2024/11/6 11:58
対応状況: −−−
|
常連 ![]() ![]() 登録日: 2024/6/4 居住地: 投稿: 48 |
Re: プラグインをインストールしていたのに、インストールしていない状態に戻っている。 返信ありがとうございます。
コマンドラインからインストールと有効化を試してみました。 インストールは 特に問題なさそうでしたが、 有効化が、「 [ERROR] Plugin `DataMigration4` is not found.」 と表示され、有効化できませんでした。 解消方法ありますでしょうか? |
h_tanaka |
投稿日時: 2024/11/6 12:04
対応状況: −−−
|
神 ![]() ![]() 登録日: 2016/7/22 居住地: 愛媛県 投稿: 2021 |
Re: プラグインをインストールしていたのに、インストールしていない状態に戻っている。 エラーメッセージからわかるとおり、プラグインが正常にインストールされていないようです。
一度、プラグインを強制的に削除してやり直してみてください。 ◆プラグインを強制削除 ・ dtb_plugin のプラグインの対象プラグインのレコードを削除する。 DELETE FROM `dtb_plugin` WHERE `code` = 'DataMigration4'; ・ app/Plugin 配下の対象プラグインのディレクトリを削除する。 $ rm -rf app/Plugin/DataMigration4 ・公開ディレクトリ直下の composer.json を開き、対象プラグインのコードを大文字小文字の区別なしで検索して、記述があれば削除する。 ・プロキシを再生成する。 念のため、 app/proxy/entity/src/Eccube/Entity 配下のファイルをバックアップしておく。 $ rm -f app/proxy/entity/src/Eccube/Entity/*.php $ composer dump-autoload $ php bin/console eccube:generate:proxies ・キャッシュを削除する。 $ php bin/console cache:clear --no-warmup
|
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |