Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I face off an issue about updating the module.
The BO of Drupal(admin/reports/updates/update) said I need to update the module like this:
Viewfield 8.x-3.0-alpha3 8.x-3.0-beta4 (Notes de version)
But Composer find nothing to update. And Drush 9 return this information:
Field types Viewfield (viewfield) Enabled 8.x-3.0-alpha3
So how to update the module ?
Thanks
Comments
Comment #2
aiphesComment #3
xSDx CreditAttribution: xSDx at Websolutions Agency commented@aiphes can you share your composer.json file. Probably issue is there. I've just updated via composer on my project and it works fine.
Comment #4
aiphesThis is the line into my composer.json:
"drupal/viewfield": "^3.0@beta",
composer.lock:
Comment #5
jerdavisYour composer.lock suggests you have the correct beta version installed. You can verify this by navigating to your composer installed modules directory and checking for the following in viewfield.info.yml
If update status is still reporting an older version of Viewfield, you should double check that you don't have another copy installed somewhere in your file system that is overriding the version installed via composer. This could be in /modules/custom, sites/all/modules, or sites/example.com/modules.
Let us know if you continue to have issues.
Comment #6
aiphesThis is the content of
modules/contrib/viewfield/viewfield.info.yml
:So I try to reinstall the module:
Perhaps manually removing the module folder then reinstall it ?
Comment #7
jerdavisComposer is really what's in charge. You can delete the module folder and run composer install, but that may not sort it out. If you do that, verify that your composer.lock still says beta4.
You could also try composer update drupal/viewfield
Comment #8
aiphesSeem to be fixed:
Still be a mystery.
Comment #9
jerdavisGlad that got you going! Let us know if you have issues with the next update.