プラグイン > バグ報告・利用に関する質問 > アップデートプラグイン4.0.5→4.0.6でエラーが出てアップデート出来ない |
バグ報告・利用に関する質問
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
usamimi |
投稿日時: 2021/7/7 20:07
対応状況: −−−
|
常連 登録日: 2018/8/17 居住地: 投稿: 64 |
Re: アップデートプラグイン4.0.5→4.0.6でエラーが出てアップデート出来ない ご返信いただきありがとうございます。
lsでフォルダ内にcomposer.pharがあることを確認した後 % php composer.phar selfupdate --1 を試してみましたが、同じエラーが出ました。 [RuntimeException] require.ec-cube/EccubeUpdater401to402 is invalid, it should not contain upp ercase characters. Please use ec-cube/eccubeupdater401to402 instead. どうにもこのプラグインが邪魔をしている気がするので管理画面から削除しようと思ったのですが、削除できました、との表示は出ものの、管理画面からはプラグインの表示も消えておらず、プラグインフォルダ内にもファイルが残ったままになっています。 こちらまだ試行錯誤しておりますので、また進展がありましたらご報告させてください。 |
usamimi |
投稿日時: 2021/7/7 20:22
対応状況: −−−
|
常連 登録日: 2018/8/17 居住地: 投稿: 64 |
Re: アップデートプラグイン4.0.5→4.0.6でエラーが出てアップデート出来ない ご返信いただきありがとうございます。
差分一式というのは無いのですね。 引用:
このファイルの入手場所がわからなかったので私も今回最新版を一式ダウンロードして置き換えを行ったのですが、結果的にこれで良かったのですね。 私の場合はカスタマイズはCSSのみだったのでCSSのみ書き換えを行ったのですが、それとは別に、フォルダを丸ごと入れ替えてしまったら画像が全て消えてしまったので、消えた画像のあったフォルダを元に戻す作業が必要でした。 ひとまず無事に管理画面にも入れるようになり、サイトも表示できるようになったのでほっとしています。 この度は誠にありがとうございました。 |
hkds |
投稿日時: 2021/7/7 21:30
対応状況: −−−
|
半人前 登録日: 2019/3/20 居住地: 投稿: 13 |
Re: アップデートプラグイン4.0.5→4.0.6でエラーが出てアップデート出来ない 引用:
それでいいと思います。私も最新版を一式ダウンロードしています。 私の場合は、その中から必要なファイルのみをアップしたという流れです。 引用:
カスタマイズしていない場合であっても、[html]以下は、[upload]や[user_data]など、管理画面からアップしたファイルがあると思いますので、ご自身で更新なファイルを確認しながらアップロードした方がいいはずです。4.0.5→4.0.6では更新がありませんでしたが、[html/template]以下のファイルが、バージョンアップによっては更新があるといった感じなんだと思います。 本件、私も問題解決したので良かったです。 nanasessさん、ありがとうございました。 |
nanasess |
投稿日時: 2021/7/8 9:11
対応状況: −−−
|
神 登録日: 2006/9/9 居住地: 投稿: 2314 |
Re: アップデートプラグイン4.0.5→4.0.6でエラーが出てアップデート出来ない 引用:
これは、EC-CUBE4.0系が Composer2 に対応していないことが原因ですので、composer.phar を一旦別のフォルダに移動して、再度実行してみてください |
usamimi |
投稿日時: 2021/7/8 20:59
対応状況: −−−
|
常連 登録日: 2018/8/17 居住地: 投稿: 64 |
Re: アップデートプラグイン4.0.5→4.0.6でエラーが出てアップデート出来ない ご返信いただきありがとうございます。
EC-CUBEをインストールしてあるフォルダの一つ上の階層にcomposer.pharを移動させて再度実行したところ % php composer.phar selfupdate --1 Warning: You forced the install of 1.10.22 via --1, but 2.1.3 is the latest stable version. Updating to it via composer self-update --stable is recommended. Upgrading to version 1.10.22 (1.x channel). Use composer self-update --rollback to return to version 2.1.3 % という表示がでました。 今度はちゃんとできたようです。 試しに以前教えていただいたコードを打ってみようと思ったのですが、現在は新しいバージョンにバージョンアップ済みの状態なので、このまま実行を試してみても問題無いのか迷っています。 また、移動させたフォルダにあるcomposer,pharを使用する際は ../composer.phar のように、ファイルのあるフォルダを指定してやれば良いのでしょうか。 |
nanasess |
投稿日時: 2021/7/9 20:50
対応状況: −−−
|
神 登録日: 2006/9/9 居住地: 投稿: 2314 |
Re: アップデートプラグイン4.0.5→4.0.6でエラーが出てアップデート出来ない 引用:
composer dumpautoload は殆ど悪影響出ませんので実行しても大丈夫です 引用:
はい、 composer.phar のあるフォルダを指定してください |
usamimi |
投稿日時: 2021/7/11 0:21
対応状況: −−−
|
常連 登録日: 2018/8/17 居住地: 投稿: 64 |
Re: アップデートプラグイン4.0.5→4.0.6でエラーが出てアップデート出来ない ご返信いただきありがとうございます。
返信が遅くなり申し訳ありません。 教えていただいたコマンドを実行したところ、今度はこのような何かしらが表示されました。 % php ../composer.phar dump-autoload Deprecation warning: require.ec-cube/MGSearchProduct is invalid, it should not contain uppercase characters. Please use ec-cube/mgsearchproduct instead. Make sure you fix this as Composer 2.0 will error. Deprecation warning: require.ec-cube/MailMagazine4 is invalid, it should not contain uppercase characters. Please use ec-cube/mailmagazine4 instead. Make sure you fix this as Composer 2.0 will error. Deprecation warning: require.ec-cube/Maker4 is invalid, it should not contain uppercase characters. Please use ec-cube/maker4 instead. Make sure you fix this as Composer 2.0 will error. Deprecation warning: require.ec-cube/Recommend4 is invalid, it should not contain uppercase characters. Please use ec-cube/recommend4 instead. Make sure you fix this as Composer 2.0 will error. Deprecation warning: require.ec-cube/SalesReport4 is invalid, it should not contain uppercase characters. Please use ec-cube/salesreport4 instead. Make sure you fix this as Composer 2.0 will error. Deprecation warning: require.ec-cube/SimpleMaintenance is invalid, it should not contain uppercase characters. Please use ec-cube/simplemaintenance instead. Make sure you fix this as Composer 2.0 will error. Generating optimized autoload files Deprecation Notice: Class Eccube\Entity\Product located in ./app/proxy/entity/src/Eccube/Entity/Product.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///path/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201 Deprecation Notice: Class Eccube\Entity\Customer located in ./app/proxy/entity/src/Eccube/Entity/Customer.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///path/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201 Warning: Ambiguous class resolution, "Eccube\Entity\Customer" was found 2x: in "/path/app/proxy/entity/src/Eccube/Entity/Customer.php" and "/path/src/Eccube/Entity/Customer.php", the first will be used. Warning: Ambiguous class resolution, "Eccube\Entity\Product" was found 2x: in "/path/app/proxy/entity/src/Eccube/Entity/Product.php" and "/path/src/Eccube/Entity/Product.php", the first will be used. Warning: Ambiguous class resolution, "Doctrine\Common\PropertyChangedListener" was found 2x: in "/path/vendor/doctrine/common/lib/Doctrine/Common/PropertyChangedListener.php" and "/path/vendor/doctrine/persistence/lib/Doctrine/Common/PropertyChangedListener.php", the first will be used. Warning: Ambiguous class resolution, "Doctrine\Common\NotifyPropertyChanged" was found 2x: in "/path/vendor/doctrine/common/lib/Doctrine/Common/NotifyPropertyChanged.php" and "/path/vendor/doctrine/persistence/lib/Doctrine/Common/NotifyPropertyChanged.php", the first will be used. Carbon 1 is deprecated, see how to migrate to Carbon 2. https://carbon.nesbot.com/docs/#api-carbon-2 You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it. composer/package-versions-deprecated: Generating version class... composer/package-versions-deprecated: ...done generating version class Generated optimized autoload files containing 5689 classes % Carbon 1 is deprecated, see how to migrate to Carbon 2. Carbon: Command not found. % https://carbon.nesbot.com/docs/#api-carbon-2 https://carbon.nesbot.com/docs/#api-carbon-2: Command not found. You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it. % You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it. You: Command not found. % composer/package-versions-deprecated: Generating version class... composer/package-versions-deprecated:: Too many arguments. % composer/package-versions-deprecated: ...done generating version class composer/package-versions-deprecated:: Too many arguments. % Generated optimized autoload files containing 5689 classes このまま翻訳にかけたところ、5689クラスを含む最適化された自動ロードファイルを生成、と最後に表示されているため何かしらに成功したのかなとは思うのですが、警告もたくさん表示されたため、これで良かったのかどうかの判断ができません。 composer,pharはちゃんと動作するようにはなったと思うのですが、大丈夫でしょうか。 |
« 1 (2) |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |