Could there be any notes added on upgrading from 8.2.x to 8.3.x?

Even if nothing needs to be done and simply installing 8.3.x would work, a note confirming that would be very helpful.

(secretly hoping that it IS the case of "nothing needs to be done"!)

Thanks!

Comments

khaled.zaidan created an issue. See original summary.

othermachines’s picture

A maintainer should confirm this, but it should be almost as simple as a typical update. Caveats:

I had to first remove the module with composer (see #3 comment), then require the new branch as instructed on the project page:

composer require drupal/image_effects:^3.0

If you don't remove it, first, there will be dependency issues involving file_mdm.

After that a database update was required by file_mdm to "clear caches to discover service changes". After that I actually had to do a second cache rebuild with drush in order to resolve an error on the image_effects settings page (admin/config/media/image_effects). I'll paste it below for search engines in case anyone else has the same issue:

ArgumentCountError: Too few arguments to function Drupal\file_mdm\FileMetadataManager::__construct(), 5 passed in D:\---\web\core\lib\Drupal\Component\DependencyInjection\Container.php on line 259 and exactly 6 expected in Drupal\file_mdm\FileMetadataManager->__construct() (line 85 of D:\---\web\modules\contrib\file_mdm\src\FileMetadataManager.php)

Berdir’s picture

> If you don't remove it, first, there will be dependency issues involving file_mdm.

No need to remove it, just do the composer require for both modules at the same time. Or edit composer.json yourself and then composer update without arguments (that will update everything else within the defined constraints too).

othermachines’s picture

Thanks for clarifying. I've updated my comment.

hitesh.koli’s picture

The below option worked for me :

composer require 'drupal/image_effects:^3.0' --no-update
composer require 'drupal/file_mdm:^2.1' --no-update
composer update drupal/image_effects drupal/file_mdm --with-dependencies
anacolautti’s picture

Thank you very much hitesh.koli !!

desierto’s picture

Perhaps I am the only one, but I still can't get past this problem. Trying the solution above I get:

Problem 1
    - The requested package drupal/file_mdm_exif (locked at 1.1.0, required as ^2.1) is satisfiable by drupal/file_mdm_exif[1.1.0] but these conflict with your requirements or minimum-stability.

Anyone have any ideas?

mondrake’s picture

Status: Active » Closed (works as designed)