Currently I am in version 3-x-dev but I see that it has a version 4. There is no information on the module page. Can I upgrade from version 3 to version 4 without breaking my site ?

Comments

zenimagine created an issue. See original summary.

pepemty’s picture

The exact same question I was about to ask...
: )

José

cangurin limpiezas’s picture

i have the same question. before updating i see a notice in "admin/modules/update" that maybe have risk.
I update the module in localhost and apparently no problem but i want are sure that update in my online site.

Thanks

cangurin limpiezas’s picture

thalles’s picture

The module may break some things if you do not have Drupal updated.

thalles’s picture

thalles’s picture

Status: Active » Fixed
pepemty’s picture

@thalles
Thanks for the prompt reply.
Now, after I updated Drupal and everything else, I wonder how do I update advagg...?
I ran this:
composer update 'drupal/advagg:^4.0'
And of course my command was rejected.
Should I uninstall my current version and reinstall version 4.0...? That will mean I have to config everything again.

Muito obrigado.
Warm regards from México.

José

progzy’s picture

@thalles I don't see any explicit instructions about upgrade in the release notes so I wonder why you set this issue as fixed.

cangurin limpiezas’s picture

in the module file "advagg.info.yml" you can read

in dependencies:
- 'drupal:system (>= 8.6)'

i think that this is the requeriment in the notice :)

pepemty’s picture

I'm already on D8.7.3, and after running composer update everything is OK. Except advagg.

Guess I have no other option but to uninstall advagg, then run composer require 'drupal/advagg:^4.0' to have the new version and then config it one more time.

No worries, actually.

Warm regards.

José

thalles’s picture

@PepeMty, I changed my compositor.json and executed the composer update, my project was updated successfully.
out:

Dependency resolution completed in 0.001 seconds
Package operations: 0 installs, 1 update, 0 removals
Updates: drupal/advagg:4.0.0
  - Updating drupal/advagg (3.5.0 => 4.0.0): Reading /var/www/.composer/cache/files/drupal/advagg/81caf12788f4fe654bde982e15653c28577ff8dc.zip from cache
Loading from cacheExecuting command (CWD): unzip -qq  'modules/contrib/advagg/ccf0dcebbdf3b967bc60f5faf95cf363.zip' -d '/app/vendor/composer/3721a5a9'

    REASON: Required by the root package: Install command rule (install drupal/advagg 4.x-dev|install drupal/advagg 4.0.0)

On my composer.json I change "drupal/advagg": "^3.5" to "drupal/advagg": "^4.0"

PS: It's good to back up

thalles’s picture

@progzy, I add a observation on Release notes.
Thanks @Cangurin limpiezas for your explanation!

pepemty’s picture

Obrigado, @thalles.
But I already uninstalled version 3.5, then installed v.4.0 per composer, natuarlly.

Thanks for the tip, though.

¡Afectuosos saludos!

José

progzy’s picture

@thalles ok, thank you. But why not putting upgrade path on the project homepage to avoid any questioning from users?

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.