cancel
Showing results for 
Search instead for 
Did you mean: 

Actualización de versiones

SOLVED

Actualización de versiones

Hola,

 

Tengo la versión 2.2.4 instalada mediante composer y vi que ayer han publicado la versión 2.2.5 por lo que he hecho:

 

php composer.phar update

Es suficiente con esto ? o debo realizar algún cambio también en mi composer.json ?

 

Gracias!

6 REPLIES

Re: Actualización de versiones

You need to replace below line in your composer.json file,

Replace,

"version": "2.2.4", to "version": "2.2.5",

and 

Replace,

"magento/product-community-edition": "2.2.4", to "magento/product-community-edition": "2.2.5",

Now run command from root of your magento,

composer update
If Issue Solved, Click Kudos/Accept As solutions.

Re: Actualización de versiones

Hola @ggallego,

 

Quizás es más prolijo, usando Composer, ejecutar lo siguiente:

 

composer require magento/product-community-edition 2.2.5 --no-update
composer update

Y luego lo validás con:

 

bin/magento --version
--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

Re: Actualización de versiones

Hola Damian,

Gracias por tu respuesta, he probado este comando que me dices y obtengo el siguiente mensaje:

 

[InvalidArgumentException]                                                                                                             
  Could not find a matching version of package magento/product-community-edition. Check the package spelling, your version constraint a  
  nd that the package is available in a stability which matches your minimum-stability (stable).

El comando de la versión me retorna "Magento CLI" sin indicarme la versión

 

Entiendo que algo habré hecho mal al actualizar de la versión 2.2.3 a la 2.2.4

 

De todas formas dejo mi composer.json por si os dais cuenta que es:

 

{
    "name": "magento/product-community-edition",
    "description": "Magento 2 (Open Source)",
    "type": "project",
    "version": "2.2.5",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/CopeX/PaypalFix.git"
        }
    ],
    "require": {
        "php": "7.0.2|7.0.4|~7.0.6|~7.1.0",
        "zendframework/zend-stdlib": "^2.7.7",
        "zendframework/zend-code": "~3.1.0",
        "zendframework/zend-server": "^2.6.1",
        "zendframework/zend-soap": "^2.6.0",
        "zendframework/zend-uri": "^2.5.1",
        "zendframework/zend-validator": "^2.6.0",
        "zendframework/zend-crypt": "^2.6.0",
        "zendframework/zend-console": "^2.6.0",
        "zendframework/zend-modulemanager": "^2.7",
        "zendframework/zend-mvc": "~2.7.12",
        "zendframework/zend-text": "^2.6.0",
        "zendframework/zend-i18n": "^2.7.3",
        "zendframework/zend-eventmanager": "^2.6.3",
        "zendframework/zend-view": "^2.8.1",
        "zendframework/zend-servicemanager": "^2.7.8",
        "zendframework/zend-json": "^2.6.1",
        "zendframework/zend-config": "^2.6.0",
        "zendframework/zend-form": "^2.10.0",
        "zendframework/zend-di": "^2.6.1",
"zendframework/zend-serializer": "^2.7.2",
        "zendframework/zend-log": "^2.9.1",
        "zendframework/zend-http": "^2.6.0",
        "zendframework/zend-db": "^2.8.2",
        "zendframework/zend-captcha": "^2.7.1",
        "zendframework/zend-session": "^2.7.3",
        "magento/zendframework1": "~1.13.0",
        "colinmollenhour/credis": "1.8.2",
        "colinmollenhour/php-redis-session-abstract": "1.3.4",
        "colinmollenhour/cache-backend-redis": "1.10.4",
        "colinmollenhour/cache-backend-file": "1.4",
        "composer/composer": "1.4.1",
        "monolog/monolog": "^1.17",
        "oyejorge/less.php": "~1.7.0",
        "pelago/emogrifier": "1.2.0",
        "tubalmartin/cssmin": "4.1.1",
        "magento/magento-composer-installer": ">=0.1.11",
        "braintree/braintree_php": "3.27.0",
        "symfony/console": "~2.3, !=2.7.0",
        "symfony/event-dispatcher": "~2.1",
        "symfony/process": "~2.1",
        "phpseclib/phpseclib": "2.0.*",
        "tedivm/jshrink": "~1.3.0",
        "magento/composer": "~1.2.0",
        "lib-libxml": "*",
        "ext-ctype": "*",
        "ext-gd": "*",
        "ext-spl": "*",
        "ext-dom": "*",
        "ext-simplexml": "*",
        "ext-mcrypt": "*",
        "ext-hash": "*",
        "ext-curl": "*",
        "ext-iconv": "*",
        "ext-intl": "*",
"ext-xsl": "*",
        "ext-mbstring": "*",
        "ext-openssl": "*",
        "ext-zip": "*",
        "ext-pdo_mysql": "*",
        "ext-soap": "*",
        "sjparkinson/static-review": "~4.1",
        "ramsey/uuid": "3.7.3",
        "codeko/magento2-redsys" : "dev-master",
        "imaginaerum/magento2-language-fr-fr": "^100.6",
        "magento/product-community-edition": "2.2.5",
        "staempfli/magento2-module-seo": "^1.6",
        "magento2translations/language_es_es": "dev-master",
        "copex/module-paypalfix": "dev-master",
        "springimport/magento2-module-catalog-sort-order-direction": "^0.1.1",
        "tobai/magento2-geo-ip2": "^1.0",
        "tobai/magento2-geo-store-switcher": "^2.0",
        "magepal/magento2-googletagmanager": "^2.2"
    },
    "require-dev": {
        "phpunit/phpunit": "~6.2.0",
        "squizlabs/php_codesniffer": "3.2.2",
        "phpmd/phpmd": "@stable",
        "pdepend/pdepend": "2.5.2",
        "friendsofphp/php-cs-fixer": "~2.2.0",
        "lusitanian/oauth": "~0.8.10",
        "sebastian/phpcpd": "2.0.4"
    },
    "replace": {
        "magento/module-marketplace": "100.2.0",
        "magento/module-admin-notification": "100.2.1",
        "magento/module-advanced-pricing-import-export": "100.2.1",
        "magento/module-analytics": "100.2.0",
        "magento/module-authorization": "100.2.0",
        "magento/module-authorizenet": "100.2.0",
        "magento/module-backend": "100.2.3",
"magento/module-backup": "100.2.2",
        "magento/module-braintree": "100.2.3",
        "magento/module-bundle": "100.2.2",
        "magento/module-bundle-import-export": "100.2.0",
        "magento/module-cache-invalidate": "100.2.0",
        "magento/module-captcha": "100.2.0",
        "magento/module-catalog": "102.0.3",
        "magento/module-catalog-analytics": "100.2.0",
        "magento/module-catalog-import-export": "100.2.2",
        "magento/module-catalog-inventory": "100.2.2",
        "magento/module-catalog-rule": "101.0.2",
        "magento/module-catalog-rule-configurable": "100.2.0",
        "magento/module-catalog-search": "100.2.2",
        "magento/module-catalog-url-rewrite": "100.2.2",
        "magento/module-catalog-widget": "100.2.0",
        "magento/module-checkout": "100.2.3",
        "magento/module-checkout-agreements": "100.2.0",
        "magento/module-cms": "102.0.3",
        "magento/module-cms-url-rewrite": "100.2.0",
        "magento/module-config": "101.0.3",
        "magento/module-configurable-import-export": "100.2.0",
        "magento/module-configurable-product": "100.2.3",
        "magento/module-configurable-product-sales": "100.2.0",
        "magento/module-contact": "100.2.1",
        "magento/module-cookie": "100.2.0",
        "magento/module-cron": "100.2.1",
        "magento/module-currency-symbol": "100.2.0",
        "magento/module-customer": "101.0.3",
        "magento/module-customer-analytics": "100.2.0",
        "magento/module-customer-import-export": "100.2.1",
        "magento/module-deploy": "100.2.2",
        "magento/module-developer": "100.2.1",
        "magento/module-dhl": "100.2.0",
        "magento/module-directory": "100.2.2",
        "magento/module-downloadable": "100.2.2",
        "magento/module-downloadable-import-export": "100.2.0",
"magento/language-de_de": "100.2.0",
        "magento/language-en_us": "100.2.0",
        "magento/language-es_es": "100.2.0",
        "magento/language-fr_fr": "100.2.0",
        "magento/language-pt_br": "100.2.0",
        "magento/framework": "101.0.3",
        "trentrichardson/jquery-timepicker-addon": "1.4.3",
        "components/jquery": "1.11.0",
        "blueimp/jquery-file-upload": "5.6.14",
        "components/jqueryui": "1.10.4",
        "twbs/bootstrap": "3.1.0",
        "tinymce/tinymce": "3.4.7"
    },
    "extra": {
        "component_paths": {
            "trentrichardson/jquery-timepicker-addon": "lib/web/jquery/jquery-ui-timepicker-addon.js",
            "components/jquery": [
                "lib/web/jquery.js",
                "lib/web/jquery/jquery.min.js",
                "lib/web/jquery/jquery-migrate.js"
            ],
            "blueimp/jquery-file-upload": "lib/web/jquery/fileUploader",
            "components/jqueryui": [
                "lib/web/jquery/jquery-ui.js"
            ],
            "twbs/bootstrap": [
                "lib/web/jquery/jquery.tabs.js"
            ],
"tinymce/tinymce": "lib/web/tiny_mce"
        }
    },
    "autoload": {
        "psr-4": {
            "Magento\\Framework\\": "lib/internal/Magento/Framework/",
            "Magento\\Setup\\": "setup/src/Magento/Setup/",
            "Magento\\": "app/code/Magento/"
        },
        "psr-0": {
            "": [
                "app/code/"
            ]
        },
        "files": [
            "app/etc/NonComposerComponentRegistration.php"
        ],
        "exclude-from-classmap": [
            "**/dev/**",
            "**/update/**",
            "**/Test/**"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
            "Magento\\Tools\\": "dev/tools/Magento/Tools/",
            "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
            "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
            "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
        }
    },
    "minimum-stability": "stable"
}

Gracias!

Re: Actualización de versiones

Hola @ggallego,

 

¿Modificaste manualmente el archivo .json antes de ejecutar el comando?

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

Re: Actualización de versiones

Si,

 

Cambié 2.2.4 por 2.2.5

 

Igual probé volviéndolo al 2.2.4 y sigue el mismo problema

 

Anteriormente tambien he hecho algunas otras modificaciones como agregar un repo privado

 

Saludos!

Re: Actualización de versiones

Hola @ggallego,

 

Acabo de probarlo con una instancia que se movió de 2.2.3, a 2.2.4 y de ahi a 2.2.5; usando el método que te he comentado, y sin problemas.

Lo que si, mi composer.json comienza así:

 

"name": "magento/project-community-edition",
    "description": "eCommerce Platform for Growth (Community Edition)",
    "type": "project",
    "version": "2.2.3",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
    "require": {
        "magento/product-community-edition": "2.2.5",
        "composer/composer": "@alpha"
    },

...
--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"