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.
On a freshly installed Aegir 3.x (from git) all packages show a version of 'Unknown'.
Tried creating a site and adding a module manually, while the version displays fine in the list of modules on that site, the same module's version appears as 'Unknown' on the hostmaster.
Tried digging around but I wasn't sure where the initial version value was being extracted from the .info file.
Any ideas on that?
Comments
Comment #1
ybabel CreditAttribution: ybabel commented+1
Comment #2
ybabel CreditAttribution: ybabel commentedSolution : in platform/drupal/packages_7.inc
line 127 change by
if (!isset($info->version))
and line 160 add
$module->version = $module->info['version'];
and line 181 add
$theme->version = $theme->info['version'];
I'll publish a patch later.
Comment #3
PascalAnimateur CreditAttribution: PascalAnimateur commentedThis works perfectly ! Remember to run the verify task to initially detect the versions.
I've created and submitted the patch here, closing this issue as duplicate since the patch applies to provision and not hosting.
Comment #4
helmo CreditAttribution: helmo at Initfour websolutions commentedThanks, committed via #2530904: Unknown package version in Drupal 7
Comment #5
ybabel CreditAttribution: ybabel commentedHo ! wait ...
this morning I found that platforms have the same problem with versions of modules and themes set to Unknown
in file platform/drupal/packages_7.inc line 42 add
$files[$name]->version = $files[$name]->info['version'];
in file /platform/provision_drupal.drush.inc line 698 add (almost at the end of _provision_drupal_find_modules)
$files[$name]->version = $files[$name]->info['version'];