coinbase / coinbase-magento2

DEPRECATED: Accept Bitcoin on your Magento2-powered website.
9 stars 12 forks source link

Upgrade to 2.1.0-rc2 not supported #1

Open joebusby opened 8 years ago

joebusby commented 8 years ago

Following the instructions to upgrade from 2.0.7:
http://devdocs.magento.com/guides/v2.0/release-notes/ReleaseNotes2.1_RC2CE.html#upgrade-rc-samp

fails since 2.1.0-rc2 is not available for coinbase in composer. I think a new listing like the ones that were added for the sample data: "composer require magento/module-bundle-sample-data:100.1.0-rc2" is needed to allow the upgrade to proceed. Otherwise errors relating to coinbase occur. Is there a work-around for this?

aianus commented 8 years ago

Can you paste the exact errors that you're getting, please?

joebusby commented 8 years ago

Through these steps:

cd /var/www/html/magento2

su magento_user

rm -rf /var/www/html/magento2/var/di/* /var/www/html/magento2/var/generation/* rm -rf /var/www/html/magento2/var/di/* /var/www/html/magento2/var/generation/*

bin/magento deploy:mode:set developer

composer require magento/product-community-edition 2.1.0-rc2 --no-update

composer require magento/module-bundle-sample-data:100.1.0-rc2 magento/module-widget-sample-data:100.1.0-rc2 magento/module-theme-sample-data:100.1.0-rc2 magento/module-catalog-sample-data:100.1.0-rc2 magento/module-customer-sample-data:100.1.0-rc2 magento/module-cms-sample-data:100.1.0-rc2 magento/module-catalog-rule-sample-data:100.1.0-rc2 magento/module-sales-rule-sample-data:100.1.0-rc2 magento/module-review-sample-data:100.1.0-rc2 magento/module-tax-sample-data:100.1.0-rc2 magento/module-sales-sample-data:100.1.0-rc2 magento/module-grouped-product-sample-data:100.1.0-rc2 magento/module-downloadable-sample-data:100.1.0-rc2 magento/module-msrp-sample-data:100.1.0-rc2 magento/module-configurable-sample-data:100.1.0-rc2 magento/module-product-links-sample-data:100.1.0-rc2 magento/module-wishlist-sample-data:100.1.0-rc2 magento/module-swatches-sample-data:100.1.0-rc2 magento/sample-data-media:100.1.0-rc2 magento/module-offline-shipping-sample-data:100.1.0-rc2 --no-update

composer update

Resulting error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - coinbase/module-coinbase-magento2-gateway 1.0.0 requires magento/framework 100.0.* -> satisfiable by magento/framework[100.0.9, 100.0.2, 100.0.3, 100.0.4, 100.0.5, 100.0.6, 100.0.7, 100.0.8].
    - coinbase/module-coinbase-magento2-gateway 1.0.0 requires magento/framework 100.0.* -> satisfiable by magento/framework[100.0.9, 100.0.2, 100.0.3, 100.0.4, 100.0.5, 100.0.6, 100.0.7, 100.0.8].
    - Can only install one of: magento/framework[100.1.0-rc2, 100.0.9].
    - Can only install one of: magento/framework[100.1.0-rc2, 100.0.2].
    - Can only install one of: magento/framework[100.1.0-rc2, 100.0.3].
    - Can only install one of: magento/framework[100.1.0-rc2, 100.0.4].
    - Can only install one of: magento/framework[100.1.0-rc2, 100.0.5].
    - Can only install one of: magento/framework[100.1.0-rc2, 100.0.6].
    - Can only install one of: magento/framework[100.1.0-rc2, 100.0.7].
    - Can only install one of: magento/framework[100.1.0-rc2, 100.0.8].
    - Can only install one of: magento/framework[100.1.0-rc2, 100.0.9].
    - magento/product-community-edition 2.1.0-rc2 requires magento/framework 100.1.0-rc2 -> satisfiable by magento/framework[100.1.0-rc2].
    - Installation request for magento/product-community-edition 2.1.0-rc2 -> satisfiable by magento/product-community-edition[2.1.0-rc2].
    - Installation request for coinbase/module-coinbase-magento2-gateway ~1.0 -> satisfiable by coinbase/module-coinbase-magento2-gateway[1.0.0].

The error above goes away if codebase lines are removed from composer.json, the sample data lines caused the same problem until someone added the "composer require magento/module-bundle-sample-data:100.1.0-rc2" lines to the instructions. It appears that codebase is not "satisfied" or something related to the composer configuration needs to be changed. Hope that helps.

joebusby commented 8 years ago

Any progress here? How about instructions to remove coinbase from magento 2.0.7 so I can upgrade and re-install when coinbase is ready for 2.1? Right now I am stuck.

aianus commented 8 years ago

We're working on this but please note Magento 2.1 has not been released and they specifically advise users not to upgrade their production sites to 2.1.

aianus commented 8 years ago

I attempted to get this working on Magento 2.1 but I am blocked on the following bug in Magento: https://github.com/magento/magento2/issues/4785

Once that bug is fixed I can release a new version of this library that supports Magento 2.1

aianus commented 8 years ago

In the meantime if you want to remove Coinbase, you can remove the line in composer.json under 'require' that has the word 'coinbase' somewhere in it. Then run

composer update &&\
  composer install &&\
  bin/magento setup:upgrade &&\
  bin/magento setup:static-content:deploy

in the root magento folder.

dodacvan commented 8 years ago

i have error . Class 'Coinbase\Wallet\Value\Money' not found . how to fix it.

martijnhovinga commented 8 years ago

Hi any updates on this? It seems that magento/magento2#4785 has been resolved already. I am upgrading to 2.1.2 now. Thanks very much for your update.

CreamyG31337 commented 7 years ago

are you able to fix it?

martijnhovinga commented 7 years ago

+1

martijnhovinga commented 7 years ago

I have contacted the developer and he replied that he is not working for Coinbase anymore. I also sent an email to Coinbase a week ago to fix this issue and have NOT received any reply. Recommend that this extension will be taken off Magento Market Place until this has been resolved. In the mean time, I consider to change provider to Coingate and hope that their Magento 2 extension works.

AdmiralOOM commented 7 years ago

I also reported the issue through Coinbase Support, they just closed my Support request :p So, this is most likely not on their priority list

Jeeva-Rathinam commented 6 years ago

I am trying to upgrade from 2.0.0 to 2.1.7, Anyone Help me, https://snag.gy/NQCJfx.jpg