Closed (fixed)
Project:
Slick Carousel
Version:
8.x-2.8
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 May 2023 at 08:06 UTC
Updated:
12 Jun 2023 at 02:49 UTC
Jump to comment: Most recent
Comments
Comment #2
dmudie commentedSame issue here. After composer update (composer require 'drupal/blazy:^2.15'), blazy.info.yml still showed "version: 8.x-2.x"
Curious as to why it left the 8.x version.
I resolved by removing blazy module entirely then re-adding.
Comment #3
bcobin commentedSame here, but the message is slightly different:
I'm on Drupal 10.
When you say "removed," do you mean uninstall and reinstall? I just ran composer require 'drupal/blazy:^2.15' and got the following:
But system reports:
Machine name: blazy
Version: 8.x-2.x
Any suggestions greatly appreciated!
Comment #4
gausarts commentedThank you.
Mind providing more details for a repro and project docs:
composer updatecommand line?require-devdirective from your composer.json?At slick.info.yml file:
#version: 8.x-2.xIgnore this, only concerns the one without
#.At /admin/modules:Version: 8.x-2.xshould be8.x-2.8, etc.git clone. Usecomposer require drupal/slick:^2.0instead. Composer will update it up to the latest versions within its constraints. Unless you want specific versions such as non-breaking versions./contribs/slick/slick.info.ymlfile.Just hints, take it with a grain of salts:
-wor-Walong with others to yourcomposer updateif not already.composer update -w -n....etc. As long as you have the correct or recommended constraints, things should update.require-devdirective, if anycomposer installorcomposer update --no-install(writing without downloading packages), and re-run yourcomposer updatewith needed params. Be sure to remove unneededrequire-devitems first, not all.drush updbanddrush cr, or use UI.Please verify against official docs in case I missed things above, and always do this first at local or staging environments for safety and little speed.
If you resolved it, consider sharing your solutions to benefit others.
Let me know?
Comment #5
kreatil commentedNo, I had not installed it by git clone. Just composer, nothing else.
I solved it by:
composer remove drupal/slick_views
composer require drupal/slick_views
This makes absolutely no sense, but it helps.
Comment #6
bcobin commentedBelow is my result from #4. Status: no change.
composer remove drupal/slick_views
composer require drupal/slick_views
Comment #7
gausarts commentedThank you.
Hm, #5 vs #6 had the same actions, but different results? This might explain unique problems per installs which should not happen under normal circumstances specific to the OP.
At least #5 did resolve, which is good, thanks.
I just updated two old sites with just
composer update -w -n....etc, and saw no evils.I don't bother requiring one module. Perhaps that is another suspect? If so, be sure to specify the caret ^ and explicit 2.0, etc.
If no joy, see #4.
That was why I asked about the entire single line of your
composer update...What are the other parameters you put in there? If they are the same with mine, but different results, we could narrow down to other specific stuffs mentioned in #4.
Comment #8
bcobin commentedThanks for responding, gausarts - much appreciated!
Various for the session. Here are the relevant commands and results, in order:
composer update drupal/slick
composer update drupal/blazy -W
See slick_views commands/results, above.
Not familiar with the commands - I'm just trying to get stuff to work!
Site still reports (five times):
Unresolved dependency
Blazy (Version >= 2.14 required)
Slick requires this module and version. Currently using Blazy version 2.x
Thanks again for taking the time - I really appreciate this...
Comment #9
kreatil commentedIn my case: Drupal 9.5.9, PHP 8.1, Composer version 2. When I run
composer updateI don't use the -w -n options, because I haven't any dev dependencies or scripts in my composer.json.Comment #10
gausarts commented@kreatil, thanks. Yes, should be fine under normal circumstances. However there are reports similar to @bcobin concerning failing updates:
https://www.drupal.org/docs/updating-drupal/updating-drupal-core-via-com...
@bcobin, try the flag
-w(--with-dependencies).More detailed steps:https://www.drupal.org/docs/updating-drupal/updating-modules-and-themes-...
Try:
composer update drupal/slick --with-all-dependenciesIf that doesn't work, please detail;
If you see the version at /admin/modules as expected, but reports say the opposite, and things work properly, it may not be your problem, likely core or composer issues as outlined above, not immediately synced. See the first link above in this comment.
If both admin pages are still outdated or out of sync, most likely your ends along with core and composer. You may want to do more troubleshootings if you like with the provided links. And back to #4.
The easiest is to update the entire site with
composer update -w -n...etc. The ...etc may be just--prefer-dist, but that all depends on your expected setups, that is why I left it out, see more:https://getcomposer.org/doc/03-cli.md
Comment #11
gausarts commented@bcobin, also try @dmudie at #2:
See the terminal for other sub-modules, if any, to re-add them back.
The only difference is the module name, not slick_views, but blazy in your case.
At worst, remove all slick, slick_views, blazy, like @kreatIL, and then re-add.
As to why, it is likely composer.lock not being synced. Removing will likely force updating the lock file better than just update.
That is why I said at #4 to remove composer.lock, and regenerate for the worst scenarios.
UPDATE: I updated the commands to account for dependency tree removal. You may want to add more if any other sub-modules by seeing the terminal messages.
Comment #12
gausarts commentedI could reproduce it:
Only if I git clone Blazy resulting in
version: 8.x-2.xOnce I use regular composer, things are OK.
I could not reproduce it:
Solutions:
blazy.info.ymlfile has this:version: 8.x-2.15with# version: 8.x-2.x, notversion: 8.x-2.x. If not, check below.Conclusions:
Nothing related to this module or Blazy.
It is PHP8.2, or likely composer.lock not being updated, or failing distros.
Things work properly, though. Harmless warnings.
Feel free to share your solutions. Thanks.
Comment #13
bcobin commentedblazy.info.yml says this:
version: 8.x-2.x
So I did the below. Still no change.
Result:
Drupal version: 10.0.9
PHP: 8.1.19
Composer version 2.5.1
Machine name: blazy Version: 8.x-2.x
composer remove drupal/blazy
Result:
Command: composer require drupal/blazy:^2.0 drupal/slick:^2.0 drupal/slick_views:^2.0
Result:
No change.
Comment #14
gausarts commentedHm, weird.
What is your Drupal profile installer?
Problems and solutions were already identified at #12 so this time it is likely your ends.
> Nothing change
In your case, I saw inconsistencies.
Different commands always say the same thing:
Running composer update ...Perhaps something wrong with your commands?
Or you pasted wrong commands and messages?
While it should say:
removinganddownloading, etc...Could you try again and screenshot it?
Aside from PHP8.2, PHP > 8.1 looks like having the same problem. No biggies here, already identified.
Comment #15
bcobin commentedThank you for responding so quickly!
Here's how the site was installed:
composer create-project drupal/recommended-project:10.0.0 ""
composer update "drupal/core-*" --with-all-dependencies
But...
On an unrelated issue, my host is currently having problems with the server node my sites are on and they need to migrate everything. They say it's best for me not to make any changes until we're on the new node - and I heartily agree. So I'll resume once everything's stable again - perhaps this evening or tomorrow morning. There's nothing more fun than dealing with stuff like this on a weekend... Gah! Thanks and until then...
Comment #16
gausarts commented> not to make any changes
Pretty much explained it. Your node must be in read mode, no write. That is why you see no changes :)
Comment #17
bcobin commentedNo - I don't think that's it - the advice was not to make any changes, but it was advisory only:
I'll get to the bottom of this, but it'll have to wait - thanks again!
Comment #18
bcobin commentedSite has been moved - end result is basically the same, though. Difference is with:
composer update drupal/slick --with-all-dependencies
The rest of it, staring with composer remove drupal/blazy is the same and the error remains. Thoughts? Thanks...
Comment #19
kreatil commented@bcobin: Did you already try to clear composer caches after removing drupal/blazy and before re-adding it?
composer ccYou could also run
composer diagnoseto see if there is a config issue with composer.Comment #20
bcobin commentedOK - here goes:
composer remove drupal/blazy
composer cc
composer require drupal/blazy:^2.0 drupal/slick:^2.0 drupal/slick_views:^2.0
composer diagnose
Result: no change.
Perhaps "Checking pubkeys: FAIL" is suspect?
I'll forward this thread along to my hosting company (Imageleet) and see what they think as opposed to running self-update from terminal. (I've never come up with a problem they haven't been able to solve - and that's been for 17 years now!)
Thanks again SO much for your input - I'll let you know what they say..
Comment #21
gausarts commentedNo other ideas :)
Just in case a miss, there is an option to fetch
sourcewhich is a wrapper forgit clone:https://getcomposer.org/doc/06-config.md#preferred-install
Or similar to
--prefer-sourceflag in your CLI.These will result in non-packaged installs like your issues similar to
git clone:Version: 8.x-2.xwhile should beVersion: 8.x-2.15Be sure to remove nor use them, if you did, unless you are planning to patch, etc. for dev purposes..
If you resolved, kindly share to benefit others.
Thanks.