I have created an install profile (http://github.org/lsolesen/larsolesen.dk). It installs correctly unless I try to include boxes, context and media. In their cases I receive the following error.

Project information for boxes retrieved.                             [ok]
Invalid version  for boxes.                                          [error]

Fatal error: Class 'DrushMakeProject_' not found in /home/lsolesen/drush/commands/drush_make/drush_make.drush.inc on line 142

Call Stack:
    0.0013     114432   1. {main}() /home/lsolesen/drush/drush.php:0
    0.0306    1523160   2. drush_main() /home/lsolesen/drush/drush.php:40
    0.1348    3907600   3. drush_dispatch() /home/lsolesen/drush/drush.php:90
    0.1349    3909724   4. call_user_func_array() /home/lsolesen/drush/includes/drush.inc:51
    0.1349    3910196   5. drush_command() /home/lsolesen/drush/includes/drush.inc:0
    0.1359    3913568   6. call_user_func_array() /home/lsolesen/drush/includes/command.inc:381
    0.1359    3913764   7. drush_invoke() /home/lsolesen/drush/includes/command.inc:0
    0.1377    3924388   8. call_user_func_array() /home/lsolesen/drush/includes/command.inc:330
    0.1377    3924868   9. drush_drush_make_make() /home/lsolesen/drush/includes/command.inc:0
    0.1413    3929136  10. drush_make_projects() /home/lsolesen/drush/commands/drush_make/drush_make.drush.inc:100
   27.1044    4137568  11. DrushMakeProject->make() /home/lsolesen/drush/commands/drush_make/drush_make.drush.inc:174
   33.1302    3938948  12. DrushMakeProject->recurse() /home/lsolesen/drush/commands/drush_make/drush_make.project.inc:35
   33.1338    3945132  13. drush_make_projects() /home/lsolesen/drush/commands/drush_make/drush_make.project.inc:224

Drush command could not be completed.                                [error]

Maybe I have set it up incorrectly, but regardless it should not probably not show the Fatal Error?

Comments

moshe weitzman’s picture

Project: Drush » Drush Make
Version: All-versions-3.x-dev » 6.x-2.x-dev
Component: Core Commands » Code
deviantintegral’s picture

I am running into this as well. In particular, it happens with nodequeue, and strangely, when I add a patch to apply to CCK. If I remove nodequeue, the error message for CCK doesn't even show the version in my make file.

api = 2
core = 7.x
projects[drupal][type] = core
projects[drupal][version] =  7.0-beta2
projects[drupal][patch][] = "http://drupal.org/files/issues/893880-hotfix.patch"
projects[drupal][patch][] = "http://drupal.org/files/issues/893880-field_dependency.patch"

projects[mollom] = 1.x-dev
projects[pathauto] = 1.x-dev
projects[token] = 1.x-dev
;projects[views] = 3.x-dev
;projects[views_bulk_operations] = 3.x-dev
projects[xmlsitemap] = 2.x-dev

; Releases in development
projects[field_group][type] = module
projects[field_group][download][type] = git
projects[field_group][download][url] = git://git.drupalcode.org/project/field_group.git

projects[link] = 1.x-dev
projects[nodequeue] = 2.x-dev
projects[codefilter] = 1.x-dev
projects[cck] = 2.x-dev
projects[cck][patch][] = "http://drupal.org/files/issues/870444-fatal-error.patch"

This results in:

Project information for drupal retrieved.                                                                                 [ok]
Project information for mollom retrieved.                                                                                 [ok]
Project information for pathauto retrieved.                                                                               [ok]
Project information for token retrieved.                                                                                  [ok]
Project information for xmlsitemap retrieved.                                                                             [ok]
Project information for link retrieved.                                                                                   [ok]
Project information for nodequeue retrieved.                                                                              [ok]
Invalid version 2.x-dev for nodequeue.                                                                                    [error]
PHP Fatal error:  Class 'DrushMakeProject_' not found in /opt/local/var/aegir/.drush/drush_make/drush_make.drush.inc on line 142

Fatal error: Class 'DrushMakeProject_' not found in /opt/local/var/aegir/.drush/drush_make/drush_make.drush.inc on line 142
Drush command could not be completed.
deviantintegral’s picture

Here's part of the problem - check out $releases from nodequeue. Looks like it's somehow creating 2.2-dev instead of 2.x-dev:

Array
(
    [2.2-dev] => Array
        (
            [file] => http://ftp.drupal.org/files/projects/nodequeue-7.x-2.x-dev.tar.gz
            [md5] => c175ab7ff781ba9bcdd76a9bb973e464
            [version] => 7.x-2.x-dev
            [major] => 2
            [patch] => 2
            [extra] => dev
        )

)
deviantintegral’s picture

I believe this is a problem with updates.drupal.org, and have filed #957840: version_patch is being defined for dev releases.

lsolesen’s picture

Anyone knows whether this has been resolved?

lsolesen’s picture

I am having problems with media, boxes and context.

geek-merlin’s picture

ugh, seems link i get this problem with l10n_update in 6.x tree

dmitrig01’s picture

Status: Active » Closed (duplicate)
nedjo’s picture

Note that the error message can result when there is no recommended_major value specified.

To see if this is the issue, visit the project's page and look for a recommended release in the version youi're working with, or else look at the XML for the particular project. E.g., currently, boxes has no recommended release for D7, http://updates.drupal.org/release-history/boxes/7.x

<api_version>7.x</api_version>
<supported_majors>1</supported_majors>
<default_major>1</default_major>
<project_status>published</project_status>

Compare to views, which does, http://updates.drupal.org/release-history/views/7.x

<api_version>7.x</api_version>
<recommended_major>3</recommended_major>
<supported_majors>3</supported_majors>
<default_major>3</default_major>
<project_status>published</project_status>
winston’s picture

Same problem with marinelli theme. It doesn't currently have a recommended release for 6.x so I'm getting the same reported behavior with a drupal 6.x make file that includes marinelli project.

jon pugh’s picture

Title: Invalid version for various projects » Invalid version errors for non-"recommended" projects
Status: Closed (duplicate) » Active

I'm not sure if this particular issue will be fixed by #957840: version_patch is being defined for dev releases... sorry if I am wrong but...

This is happening across the board, I can confirm nedjo's experience, it is because of the "recommended" flag on modules.

I am, sadly, trying to use make for an old 5.x site and it works, except for the modules that started dropping that flag from longstanding 5.x versions, like views, webform, votingapi, and some other critical modules.

I tried to include the specific version of each of those modules, to no avail. If its not marked "recommended" by a maintainer, it will not download, unless you add the CVS info for each project. Since I am trying to keep a clean build.make file generated from the site itself, changing all of those to CVS would be a pain. including the versions for just the modules that needs them worked for generating, but not for building the site.

Funny part is... drush dl still works fine for those modules when you specify the version. I would think it would be best to use the same behavior here?

Shouldn't drush_make force download if a specific version is added to a project? Either that or a "ignore-non-recommended-versions" option would be nice. I'm too swamped to worry about this much now, but it seems like it would be a permanent problem if drush make depends on maintainers keeping the versions of modules used by devs set as "recommended" ...

mxmilkiib’s picture

same problem when trying to pull in dev 2.x of Exportables.

both;

projects[exportables] = 6.x-2.x-dev

and

projects[exportables][version] = 6.x-2.x-dev

fail.

trying to use the above recommended cvs method fails with the revision as either DRUPAL-6--2.x, DRUPAL-6--2, or DRUPAL-6.x--2.x gives "Unable to download exportables from unspecified module."

then i tried the "get" method with the url of the tar.gz and it worked fine.

lsolesen’s picture

@milkmiruku: I think your code is wrong. You should do like this:

projects[exportables] = 2.x-dev
mxmilkiib’s picture

@lsolesen; you're correct, my bad, thank you :)

dmitrig01’s picture

Status: Active » Fixed

fixed

Status: Fixed » Closed (fixed)

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